Search in sources :

Example 1 with VaryViewHelperController

use of com.github.obsessive.library.loading.VaryViewHelperController in project SimplifyReader by chentao0707.

the class BaseFragmentActivity method setContentView.

@Override
public void setContentView(int layoutResID) {
    super.setContentView(layoutResID);
    ButterKnife.inject(this);
    if (null != getLoadingTargetView()) {
        mVaryViewHelperController = new VaryViewHelperController(getLoadingTargetView());
    }
}
Also used : VaryViewHelperController(com.github.obsessive.library.loading.VaryViewHelperController)

Example 2 with VaryViewHelperController

use of com.github.obsessive.library.loading.VaryViewHelperController in project SimplifyReader by chentao0707.

the class BaseLazyFragment method onViewCreated.

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    ButterKnife.inject(this, view);
    if (null != getLoadingTargetView()) {
        mVaryViewHelperController = new VaryViewHelperController(getLoadingTargetView());
    }
    DisplayMetrics displayMetrics = new DisplayMetrics();
    getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
    mScreenDensity = displayMetrics.density;
    mScreenHeight = displayMetrics.heightPixels;
    mScreenWidth = displayMetrics.widthPixels;
    initViewsAndEvents();
}
Also used : VaryViewHelperController(com.github.obsessive.library.loading.VaryViewHelperController) DisplayMetrics(android.util.DisplayMetrics)

Example 3 with VaryViewHelperController

use of com.github.obsessive.library.loading.VaryViewHelperController in project SimplifyReader by chentao0707.

the class BaseAppCompatActivity method setContentView.

@Override
public void setContentView(int layoutResID) {
    super.setContentView(layoutResID);
    ButterKnife.inject(this);
    if (null != getLoadingTargetView()) {
        mVaryViewHelperController = new VaryViewHelperController(getLoadingTargetView());
    }
}
Also used : VaryViewHelperController(com.github.obsessive.library.loading.VaryViewHelperController)

Example 4 with VaryViewHelperController

use of com.github.obsessive.library.loading.VaryViewHelperController in project SimplifyReader by chentao0707.

the class BasePlayerActivity method setContentView.

@Override
public void setContentView(int layoutResID) {
    super.setContentView(layoutResID);
    ButterKnife.inject(this);
    if (null != getLoadingTargetView()) {
        mVaryViewHelperController = new VaryViewHelperController(getLoadingTargetView());
    }
}
Also used : VaryViewHelperController(com.github.obsessive.library.loading.VaryViewHelperController)

Aggregations

VaryViewHelperController (com.github.obsessive.library.loading.VaryViewHelperController)4 DisplayMetrics (android.util.DisplayMetrics)1