---
updatedAt: 2026-06-17T09:41:17.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# SubtitleRendererView

com.bitmovin.player

# SubtitleRendererView

abstract class SubtitleRendererView : [FrameLayout](https://developer.android.com/reference/kotlin/android/widget/FrameLayout.html)

Base for Subtitle rendering Views.

#### Inheritors

|                                                                   |
| ----------------------------------------------------------------- |
| [SubtitleView](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-subtitle-view) |

## Constructors

|                      |                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SubtitleRendererView | constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), @[Nullable](https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html)attrs: [AttributeSet](https://developer.android.com/reference/kotlin/android/util/AttributeSet.html)) |

## Functions

| Name                      | Summary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| setApplyEmbeddedFontSizes | abstract fun setApplyEmbeddedFontSizes(applyEmbeddedFontSizes: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html))<br>Sets whether font sizes embedded within the cues should be applied.                                                                                                                                                                                                                                                                                                                                                        |
| setApplyEmbeddedStyles    | abstract fun setApplyEmbeddedStyles(applyEmbeddedStyles: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html))<br>Sets whether styling embedded within the cues should be applied.                                                                                                                                                                                                                                                                                                                                                                 |
| setBottomPaddingFraction  | abstract fun setBottomPaddingFraction(bottomPaddingFraction: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html))<br>Sets the bottom padding fraction to apply when getLine is DIMEN\_UNSET, as a fraction of the view's remaining height after its top and bottom padding have been subtracted.                                                                                                                                                                                                                                                      |
| setFixedTextSize          | abstract fun setFixedTextSize(unit: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), size: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html))<br>Set the text size to a given unit and value.                                                                                                                                                                                                                                                                                                                           |
| setFractionalTextSize     | abstract fun setFractionalTextSize(fractionOfHeight: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html))<br>Sets the text size to be a fraction of the views remaining height after its top and bottom padding have been subtracted.<br>abstract fun setFractionalTextSize(fractionOfHeight: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html), ignorePadding: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html))<br>Sets the text size to be a fraction of the height of this view. |
| setPlayer                 | abstract fun setPlayer(player: [Player](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-player))<br>Set the [Player](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-player) for which the [Cue](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-api-media-subtitle-cue)s should be rendered.                                                                                                                                                                                                                                                                                                                 |
| setStyle                  | abstract fun setStyle(style: [CaptionStyle](https://developer.bitmovin.com/playback/docs/android-api-com-bitmovin-player-caption-style))<br>Sets the caption style.                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setUserDefaultStyle       | abstract fun setUserDefaultStyle()<br>Sets the caption style to be equivalent to the one returned by [getUserStyle](https://developer.android.com/reference/kotlin/android/view/accessibility/CaptioningManager.html#getUserStyle\(\)), or to a default style before API level 19.                                                                                                                                                                                                                                                                                                |
| setUserDefaultTextSize    | abstract fun setUserDefaultTextSize()<br>Sets the text size to one derived from [getFontScale](https://developer.android.com/reference/kotlin/android/view/accessibility/CaptioningManager.html#getFontScale\(\)), or to a default size before API level 19.                                                                                                                                                                                                                                                                                                                      |