When you have a SubtitleView with custom layout measurement (Parent view has match_parent for both dims and SubtitleView has smaller size and positioned in center) SubtitlePainter will draw cues somewhere outside of SubtitleView's viewport and you'll see nothing.
Bug is probably located in SubtitlePainter in method setupTextLayout() on the line 346
textTop = parentBottom - textHeight - (int) (parentHeight * bottomPaddingFraction);
it's necessary to decrement parentTop as well.
Should be: textTop = parentBottom - parentTop - textHeight - (int) (parentHeight * bottomPaddingFraction);
Version 2.8.4
Thanks
When you have a
SubtitleViewwith custom layout measurement (Parent view has match_parent for both dims andSubtitleViewhas smaller size and positioned in center)SubtitlePainterwill draw cues somewhere outside ofSubtitleView's viewport and you'll see nothing.Bug is probably located in
SubtitlePainterin methodsetupTextLayout()on the line 346textTop = parentBottom - textHeight - (int) (parentHeight * bottomPaddingFraction);it's necessary to decrement
parentTopas well.Should be:
textTop = parentBottom - parentTop - textHeight - (int) (parentHeight * bottomPaddingFraction);Version 2.8.4
Thanks