public static final class CaptioningManager.CaptionStyle
extends Object
java.lang.Object | |
↳ | android.view.accessibility.CaptioningManager.CaptionStyle |
指定视频标题的视觉属性,包括前景和背景颜色,边缘属性和字体。
Constants |
|
---|---|
int |
EDGE_TYPE_DEPRESSED 边缘类型值指定凹陷的斜角字符边缘。 |
int |
EDGE_TYPE_DROP_SHADOW 边缘类型值指定放映阴影字符边缘。 |
int |
EDGE_TYPE_NONE 边缘类型值指定没有字符边缘。 |
int |
EDGE_TYPE_OUTLINE 边缘类型值指定均匀轮廓的字符边缘。 |
int |
EDGE_TYPE_RAISED 指定凸起斜角字符边缘的边缘类型值。 |
int |
EDGE_TYPE_UNSPECIFIED 未指定的边缘类型值。 |
Fields |
|
---|---|
public final int |
backgroundColor 视频字幕的首选背景颜色。 |
public final int |
edgeColor 如果使用非 |
public final int |
edgeType 视频字幕的首选边缘类型,其中一种: |
public final int |
foregroundColor 视频字幕的首选前景色。 |
public final int |
windowColor 视频字幕的首选窗口颜色。 |
Public methods |
|
---|---|
Typeface |
getTypeface() |
boolean |
hasBackgroundColor() |
boolean |
hasEdgeColor() |
boolean |
hasEdgeType() |
boolean |
hasForegroundColor() |
boolean |
hasWindowColor() |
Inherited methods |
|
---|---|
From class java.lang.Object
|
int EDGE_TYPE_DEPRESSED
边缘类型值指定凹陷的斜角字符边缘。
常量值:4(0x00000004)
int EDGE_TYPE_DROP_SHADOW
边缘类型值指定放映阴影字符边缘。
常量值:2(0x00000002)
Typeface getTypeface ()
Returns | |
---|---|
Typeface |
the preferred Typeface for video captions, or null if not specified |
boolean hasBackgroundColor ()
Returns | |
---|---|
boolean |
true if the user has specified a background color that should override the application default, false otherwise |
boolean hasEdgeColor ()
Returns | |
---|---|
boolean |
true if the user has specified an edge color that should override the application default, false otherwise |
boolean hasEdgeType ()
Returns | |
---|---|
boolean |
true if the user has specified an edge type that should override the application default, false otherwise |
boolean hasForegroundColor ()
Returns | |
---|---|
boolean |
true if the user has specified a foreground color that should override the application default, false otherwise |
boolean hasWindowColor ()
Returns | |
---|---|
boolean |
true if the user has specified a window color that should override the application default, false otherwise |