Student
Student

Reputation: 28345

Show a TextView in front of a VideoView?

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

Upvotes: 5

Views: 4498

Answers (2)

CommonsWare
CommonsWare

Reputation: 1006614

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.

Upvotes: 5

Macarse
Macarse

Reputation: 93133

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

Upvotes: 0

Related Questions