本文整理汇总了Java中android.view.accessibility.CaptioningManager.getFontScale方法的典型用法代码示例。如果您正苦于以下问题:Java CaptioningManager.getFontScale方法的具体用法?Java CaptioningManager.getFontScale怎么用?Java CaptioningManager.getFontScale使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.accessibility.CaptioningManager
的用法示例。
在下文中一共展示了CaptioningManager.getFontScale方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CaptionWindowLayout
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
public CaptionWindowLayout(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
// Add a subtitle view to the layout.
mSubtitleView = new SubtitleView(context);
LayoutParams params = new RelativeLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
addView(mSubtitleView, params);
// Set the system wide cc preferences to the subtitle view.
CaptioningManager captioningManager =
(CaptioningManager) context.getSystemService(Context.CAPTIONING_SERVICE);
mFontScale = captioningManager.getFontScale();
mCaptionStyleCompat =
CaptionStyleCompat.createFromCaptionStyle(captioningManager.getUserStyle());
mSubtitleView.setStyle(mCaptionStyleCompat);
mSubtitleView.setText("");
captioningManager.addCaptioningChangeListener(new SystemWideCaptioningChangeListener());
updateWidestChar();
}
示例2: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例3: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager = (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例4: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例5: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) mContext.getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例6: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) activity.getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例7: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例8: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}
示例9: getUserCaptionFontScaleV19
import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
CaptioningManager captioningManager =
(CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE);
return captioningManager.getFontScale();
}