Search in sources :

Example 1 with DialogProgress

use of qwy.anenda.com.baselib.widget.DialogProgress in project CustomViews by AndroidStudy233.

the class BaseActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.savedInstanceState = savedInstanceState;
    // transparentNavigationBar();
    try {
        rxPermissions = new RxPermissions(this);
        AppManagerUtil.getAppManager().addActivity(this);
        setContentView(layoutId());
        // ButterKnife.bind(this);
        initToolbar();
        baseBundle = getIntent().getBundleExtra("bundle");
        initView();
        BindEvent();
        dialogProgress = new DialogProgress(this, R.style.DialogTheme);
        inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    } catch (Exception e) {
        e.printStackTrace();
    }
    loadProcess = new DialogProgress(this, R.style.DialogTheme);
}
Also used : RxPermissions(com.tbruyelle.rxpermissions2.RxPermissions) DialogProgress(qwy.anenda.com.baselib.widget.DialogProgress) InvocationTargetException(java.lang.reflect.InvocationTargetException)

Example 2 with DialogProgress

use of qwy.anenda.com.baselib.widget.DialogProgress in project CustomViews by AndroidStudy233.

the class BaseFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    this.mLayoutInflater = inflater;
    mRootView = onLayoutView(savedInstanceState, inflater, container);
    // ButterKnife.bind(this, mRootView);
    emptyView = mRootView.findViewById(R.id.rl_empty);
    initToolbar(mRootView);
    // userRolyType =  PreferenceUtil.readInt( Constant.USER_ROLE);
    init();
    initView();
    bindEvent();
    fillData();
    dialogProgress = new DialogProgress(mContext, R.style.DialogTheme);
    return mRootView;
}
Also used : DialogProgress(qwy.anenda.com.baselib.widget.DialogProgress)

Aggregations

DialogProgress (qwy.anenda.com.baselib.widget.DialogProgress)2 RxPermissions (com.tbruyelle.rxpermissions2.RxPermissions)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1