当前位置: 首页>>代码示例>>Java>>正文


Java CaptioningManager.getFontScale方法代码示例

本文整理汇总了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();
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:21,代码来源:CaptionWindowLayout.java

示例2: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
  CaptioningManager captioningManager =
      (CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE);
  return captioningManager.getFontScale();
}
 
开发者ID:yangchaojiang,项目名称:yjPlay,代码行数:7,代码来源:SubtitleView.java

示例3: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
	CaptioningManager captioningManager = (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
	return captioningManager.getFontScale();
}
 
开发者ID:vuthanhict,项目名称:ExoPlayerController,代码行数:6,代码来源:PlayerActivity.java

示例4: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
    CaptioningManager captioningManager =
            (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
    return captioningManager.getFontScale();
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:7,代码来源:PlayerActivity.java

示例5: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
    CaptioningManager captioningManager =
            (CaptioningManager) mContext.getSystemService(Context.CAPTIONING_SERVICE);
    return captioningManager.getFontScale();
}
 
开发者ID:nextux,项目名称:sbs-android-tv,代码行数:7,代码来源:VideoPlayerView.java

示例6: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
    CaptioningManager captioningManager =
            (CaptioningManager) activity.getSystemService(Context.CAPTIONING_SERVICE);
    return captioningManager.getFontScale();
}
 
开发者ID:cklar,项目名称:ExoPlayerWrapper,代码行数:7,代码来源:SimpleVideoPlayer.java

示例7: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
  CaptioningManager captioningManager =
      (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
  return captioningManager.getFontScale();
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:7,代码来源:FullPlayerActivity.java

示例8: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
	CaptioningManager captioningManager =
			(CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
	return captioningManager.getFontScale();
}
 
开发者ID:birdcopy,项目名称:Android-Birdcopy-Application,代码行数:7,代码来源:FlyingPlayerActivity.java

示例9: getUserCaptionFontScaleV19

import android.view.accessibility.CaptioningManager; //导入方法依赖的package包/类
@TargetApi(19)
private float getUserCaptionFontScaleV19() {
    CaptioningManager captioningManager =
            (CaptioningManager) getContext().getSystemService(Context.CAPTIONING_SERVICE);
    return captioningManager.getFontScale();
}
 
开发者ID:kaltura,项目名称:player-sdk-native-android,代码行数:7,代码来源:KExoPlayer.java


注:本文中的android.view.accessibility.CaptioningManager.getFontScale方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。