本文整理汇总了Java中com.github.obsessive.library.loading.VaryViewHelperController类的典型用法代码示例。如果您正苦于以下问题:Java VaryViewHelperController类的具体用法?Java VaryViewHelperController怎么用?Java VaryViewHelperController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VaryViewHelperController类属于com.github.obsessive.library.loading包,在下文中一共展示了VaryViewHelperController类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onViewCreated
import com.github.obsessive.library.loading.VaryViewHelperController; //导入依赖的package包/类
@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();
}
示例2: setContentView
import com.github.obsessive.library.loading.VaryViewHelperController; //导入依赖的package包/类
@Override
public void setContentView(int layoutResID) {
super.setContentView(layoutResID);
ButterKnife.inject(this);
if (null != getLoadingTargetView()) {
mVaryViewHelperController = new VaryViewHelperController(getLoadingTargetView());
}
}