android - how to align button at the bottom of the screen in LinearLayout -


I am using LinerLout as Paris and inside it I have two hair linear layouts. I have a previous linear layout I want to align the button at the bottom of the screen. Bottom of the buttons should match the margins below the main liner layout

   Android: Android: Android: Android: layout_width = "0dp" Android: layout_height = "wrap_content" android: layout_weight = "1" Android: text = "submit" /> Android: Android: Android: Android: Layout_Wind = "0 DP" Android: Layout_height = "wrap_ content" Android: layout_weight = "1" Android: text = "cancel" /> Android: Android: Android: Android: Layout_Wind = "0 DP" Android: Layout_Height = "Wrap-content" Android: Layout_Vet = "1" Android: Text = "Delete" /> Android: Android: Android: Android: layout_width = "0dp" Android: layout_height = "wrap_ content" Android: layout_weight = "1" Android: text = "reset" /> & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt;  

just reduce the text of text as it is a The row is not able to display the text, so the margin is getting distorted.

Here I have texted 11dp for each buttontext and for NexusOne size display

Perfect is>
  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "vertical" & gt; & Lt; ScrollView Android: layout_width = "match_parent" android: layout_height = "wrap_content" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_gravity = "top" Android: orientation = "vertical"> & Lt; / LinearLayout & gt; & Lt; / Scrollview & gt; & Lt; LinearLayout Android: ID = "@ + ID / Button" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: gravity = "bottom" Android: orientation = "horizontal" & gt; & Lt; Android: Layout = "id =" id = "Android": layout_width = "0dp" android: layout_height = "wrap_content" android: layout_weight = "1" Android: text = "save" Android: textSize = "11dp" /> ; & Lt; Android: layout = "id / present" Android: layout_width = "0dp" Android: layout_height = "wrap_content" android: layout_weight = "1" Android: text = "send" Android: textSize = "11dp" /> ; & Lt; Android: text = "Android": layout_width = "0dp" Android: layout_height = "wrap_content" Android: layout_weight = "1" Android: text = "cancel" Android: textSize = "11dp" / "Android" & Gt; & Lt; Android: text = "11dp" Android: text = "11dp" Android: text = "id =" / id = "@ + id / remove" Android: layout_width = "0dp" Android: layout_height = "wrap_content" android: layout_weight = "1" Android ; & Lt; Android: text = "11dp" Android: text = "reset" Android: text = "id =" 11dp "Android: layout_width =" 0dp "android: layout_height =" wrap_content "android: layout_weight =" 1 "Android: text =" reset " ; & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -