Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

CaptioningManager.CaptionStyle

extends Object
java.lang.Object
   ↳ android.view.accessibility.CaptioningManager.CaptionStyle

Class Overview

Specifies visual properties for video captions, including foreground and background colors, edge properties, and typeface.

Summary

Constants
int EDGE_TYPE_DROP_SHADOW Edge type value specifying drop-shadowed character edges.
int EDGE_TYPE_NONE Edge type value specifying no character edges.
int EDGE_TYPE_OUTLINE Edge type value specifying uniformly outlined character edges.
Fields
public final int backgroundColor The preferred background color for video captions.
public final int edgeColor The preferred edge color for video captions, if using an edge type other than EDGE_TYPE_NONE .
public final int edgeType The preferred edge type for video captions, one of:
public final int foregroundColor The preferred foreground color for video captions.
Public Methods
Typeface getTypeface ()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int EDGE_TYPE_DROP_SHADOW

Edge type value specifying drop-shadowed character edges.

Constant Value: 2 (0x00000002)

public static final int EDGE_TYPE_NONE

Edge type value specifying no character edges.

Constant Value: 0 (0x00000000)

public static final int EDGE_TYPE_OUTLINE

Edge type value specifying uniformly outlined character edges.

Constant Value: 1 (0x00000001)

Fields

public final int backgroundColor

The preferred background color for video captions.

public final int edgeColor

The preferred edge color for video captions, if using an edge type other than EDGE_TYPE_NONE .

public final int edgeType

The preferred edge type for video captions, one of:

public final int foregroundColor

The preferred foreground color for video captions.

Public Methods

public Typeface getTypeface ()

Returns
  • the preferred Typeface for video captions, or null if not specified