本文整理了Java中android.widget.TextView.setImportantForAccessibility()
方法的一些代码示例,展示了TextView.setImportantForAccessibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.setImportantForAccessibility()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:setImportantForAccessibility
暂无
代码示例来源:origin: AlexMofer/ProjectX
mTitle.setPadding(size, 0, size, 0);
if (Build.VERSION.SDK_INT >= 16)
mTitle.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
mTitle.setLayoutParams(new LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT));
代码示例来源:origin: AlexMofer/ProjectX
mText.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
if (Build.VERSION.SDK_INT >= 16)
mText.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
addView(mText, new LayoutParams(LayoutParams.WRAP_CONTENT, size));
代码示例来源:origin: MoMoWait/LeanbackLauncher
protected void onFinishInflate() {
super.onFinishInflate();
this.mUninstallCircle = (ImageView) findViewById(R.id.uninstall_area_circle);
this.mUninstallIconCircle = (ImageView) findViewById(R.id.uninstall_icon_circle);
this.mUninstallIcon = (ImageView) findViewById(R.id.uninstall_icon);
this.mUninstallText = (TextView) findViewById(R.id.uninstall_text);
this.mFinishButton = (Button) findViewById(R.id.finish_button);
this.mUninstallApp = (ImageView) findViewById(R.id.uninstall_app_banner);
this.mFocusAnimator = new ViewFocusAnimator(this.mUninstallApp);
this.mFocusAnimator.setFocusImmediate(true);
float zDeltaIcon = (float) getResources().getDimensionPixelOffset(R.dimen.edit_uninstall_icon_z);
this.mUninstallApp.setZ((float) getResources().getDimensionPixelOffset(R.dimen.edit_app_banner_z));
this.mUninstallIconCircle.setZ(zDeltaIcon);
this.mUninstallIcon.setZ(zDeltaIcon);
this.mUninstallApp.setClipToOutline(true);
this.mFinishButton.setOnClickListener(this);
this.mUninstallText.setImportantForAccessibility(2);
setUninstallCircleLayout();
setUninstallIconCircleLayout();
setUninstallTextLayout();
this.mUninstallAnimation = new EditModeUninstallAnimationHolder(this);
}
代码示例来源:origin: rockon999/LeanbackLauncher
protected void onFinishInflate() {
super.onFinishInflate();
this.mUninstallCircle = (ImageView) findViewById(R.id.uninstall_area_circle);
this.mUninstallIconCircle = (ImageView) findViewById(R.id.uninstall_icon_circle);
this.mUninstallIcon = (ImageView) findViewById(R.id.uninstall_icon);
this.mUninstallText = (TextView) findViewById(R.id.uninstall_text);
this.mFinishButton = (Button) findViewById(R.id.finish_button);
this.mUninstallApp = (ImageView) findViewById(R.id.uninstall_app_banner);
this.mFocusAnimator = new ViewFocusAnimator(this.mUninstallApp);
this.mFocusAnimator.setFocusImmediate(true);
float zDeltaIcon = (float) getResources().getDimensionPixelOffset(R.dimen.edit_uninstall_icon_z);
this.mUninstallApp.setZ((float) getResources().getDimensionPixelOffset(R.dimen.edit_app_banner_z));
this.mUninstallIconCircle.setZ(zDeltaIcon);
this.mUninstallIcon.setZ(zDeltaIcon);
this.mUninstallApp.setClipToOutline(true);
this.mFinishButton.setOnClickListener(this);
this.mUninstallText.setImportantForAccessibility(2);
setUninstallCircleLayout();
setUninstallIconCircleLayout();
setUninstallTextLayout();
this.mUninstallAnimation = new EditModeUninstallAnimationHolder(this);
}
内容来源于网络,如有侵权,请联系作者删除!