本文整理汇总了Java中com.google.android.apps.muzei.util.PanScaleProxyView类的典型用法代码示例。如果您正苦于以下问题:Java PanScaleProxyView类的具体用法?Java PanScaleProxyView怎么用?Java PanScaleProxyView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PanScaleProxyView类属于com.google.android.apps.muzei.util包,在下文中一共展示了PanScaleProxyView类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupArtDetailModeUi
import com.google.android.apps.muzei.util.PanScaleProxyView; //导入依赖的package包/类
private void setupArtDetailModeUi() {
mChromeContainerView = findViewById(R.id.chrome_container);
mStatusBarScrimView = findViewById(R.id.statusbar_scrim);
mChromeContainerView.setBackground(ScrimUtil.makeCubicGradientScrimDrawable(
0xaa000000, 8, Gravity.TOP));
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
mStatusBarScrimView.setVisibility(View.GONE);
mStatusBarScrimView = null;
} else {
mStatusBarScrimView.setBackground(ScrimUtil.makeCubicGradientScrimDrawable(
0x44000000, 8, Gravity.TOP));
}
mMetadataView = findViewById(R.id.metadata);
mTitleView = (TextView) findViewById(R.id.title);
mBylineView = (TextView) findViewById(R.id.byline);
mPanScaleProxyView = (PanScaleProxyView) findViewById(R.id.pan_scale_proxy);
}