overlay - Put any View over a VideoView in Android -


Is it possible to have any view on any video view? (I.e. put a control button on the video, like in Vimeo) I'm trying to use it FrameLayout, but I have not found the way, and I'm still not sure what I'm trying to do is just Impossible.

I do this kind of thing with framelay, make sure you do what you need to do Control layouts are under the video view in the editor.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; FrameLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: orientation = "vertical" Android: background = "@color / MenuTextNormal "& gt; & Lt; VideoView Android: ID = "@ + ID / Video View" Android: layout_height = "fill_parent" Android: layout_width = "fill_parent" /> & Lt; LinearLayout Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: id = "@ + id / controlLayout" Android: layout_gravity = "bottom | center_horizontal" & gt; & Lt; Android: Text = "@ + id / Button01" Android: id = "@ + id / Button01" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; Android: text = "@ + id / button02" Android: id = "@ + id / button02" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; Android: text = "@ + id / button03" Android: id = "@ + id / button03" android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; Android: text = "@ + id / button04" Android: id = "@ + id / button04" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; / LinearLayout & gt; & Lt; / FrameLayout & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -