开发者

Show a TextView in front of a VideoView?

开发者_如何学Go

Is there a way to show a TextView in front of a VideoView?


You can stack widgets on the Z-axis using RelativeLayout. Have your VideoView be the first child of the RelativeLayout. Have your TextView be the second child. Have their android:layout_ rules set up such that they overlap in the X/Y coordinate plane. The TextView will appear to float over the VideoView.


If a Custom Toast is not enough you can try with a Dialog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜