There may be a little newbie question, but how can put the listview button below the image ... half of the screen below? Now half of the screen (upper half) with the image I want to put 2-3 buttons under the image, but when I put them, they go up the image. I use this xml
& Lt; Button android: id = "@ + id / Button2" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_above = "@ + id / Button1" Android: layout_alignParentLeft = "true" Android: layout_alignParentRight = "true "Android: Text =" Button "/> & Lt; Button android: id = "@ + id / Button3" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_above = "@ + id / Button2" Android: layout_alignParentLeft = "true" Android: layout_alignParentRight = "true "Android: Text =" Button "/> & Lt; / RelativeLayout & gt; & Lt; / LinearLayout & gt;
Which I take from another thread if I & lt; Relative layout & gt; I put the button outside of
, then they go behind the image and are hidden.
do this
& Lt; LinearLayout Android: Layout_width = "Match_parent" Android: layout_height = "0dp" Android: Leaut_vet = "0.5" android: orientation = "vertical" & gt; & Lt; Button Android: id = "@ + id / button1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: text = "button" /> & Lt; Android Android: id = "@ + id / button2" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: text = "button" /> & Lt; Button android: id = "@ + id / button3" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" android: text = "button" / & gt; & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt;
Comments
Post a Comment