I want to set text to center of video, alignCenter() didn't do it. It's possible to center text if text width is measured after setStyle() then set x coordinate of text to (video_width-text_width)/2, but setXY() is only working before using setStyle().
I want to set text to center of video,
alignCenter()
didn't do it. It's possible to center text if text width is measured aftersetStyle()
then set x coordinate of text to(video_width-text_width)/2
, butsetXY()
is only working before usingsetStyle()
.