Android change subtitle background color

I am able to show subtitles/caption from android using SubtitleView. but I am facing some issue. From below image you can see, the subtitle is display with black “background”. Is there any where to change it to transparent or any other color.

I had try using SubtitleView.background. But this method is add one layer behind the subtitleView, It’s still can’t fix this issue.

Hi @gabrielchong,
you can try using SubtitleView.setStyle( CaptionStyleCompat ). The CaptionStyleCompat allows you to set back and foreground color as well as some other properties of the displayed captions.
API reference: SubtitleView

@matamegger thanks!.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.