Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show a TextView in front of a VideoView?

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

like image 583
The Student Avatar asked Jul 13 '10 13:07

The Student


1 Answers

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.

like image 165
CommonsWare Avatar answered Sep 24 '22 06:09

CommonsWare