I need to bring 3 small circles at the bottom of the screen in the central location .. So, I did it: -
footer.xml
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "Fill_parent" Android: Layout_height = "Wrap_content" android: padding = "L5dip" android: background = "@ color / D_blue "Android: layout_gravity =" bottom "Android: orientation =" vertical "& gt; & Lt; Button Android: layout_height = "wrap_content" Android: layout_width = "wrap_content" android: id = "@ + id / btn1" Android: layout_centerHorizontal = "true" Android: layout_centerVertical = "true" android: background = "@ drawable / goals" /> & Lt; Button Android: layout_height = "wrap_content" Android: layout_width = "wrap_content" android: id = "" @ + id / btn2 Android: layout_toRightOf = "@ id / btn1" Android: layout_marginLeft = "5dip" Android: layout_centerHorizontal = "true" Android: Layout_centerVertical = "True" Android: Background = "@Picture / Round / Round" / gt; & Lt; Button Android: layout_height = "wrap_content" Android: layout_width = "wrap_content" android: id = "" @ + id / btn3 Android: layout_toRightOf = "@ id / btn2" Android: layout_marginLeft = "5dip" Android: layout_centerHorizontal = "true" Android: Layout_centerVertical = "True" Android: Background = "@Picture / Round / Round" / gt; & Lt; / RelativeLayout & gt;
and @ drawable / rounded.xml is: -
But this is not in the middle position .. How do I get 3 small circles in a middle position ??
Text after "div class =" itemprop = "text">
Use the power of LinearLayout
& lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" android: padding = "15dip" Android: background = "@color / D_blue "Android: layout_gravity =" bottom "Android: gravity =" center "& gt; & Lt; Android: layout_height = "wrap_content" Android: layout_width = "wrap_content" Android: id = "@ + id / btn1" Android: background = "@drawable / round" /> & Lt; Android: layout_height = "wrap_content" android: layout_width = "wrap_content" android: id = "@ + id / btn2" Android: layout_marginLeft = "5dip" Android: background = "@ drawable / round" /> & Lt; Android: layout_height = "wrap_content" android: layout_width = "wrap_content" android: id = "@ + id / btn3" Android: layout_marginLeft = "5dip" Android: background = "@ drawable / round" /> & Lt; / LinearLayout & gt;
Comments
Post a Comment