本文整理匯總了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());
}
}