+ 2

How we use the relative layout and make the button one after next approx 4 button??

I use to make a app using android studio .for this I have to allign the button one after another vertical so that it look like in a systematic way so plz help me how I allign. write the code of XML which I use only that XML by which I allign line by line

10th Sep 2018, 4:29 PM
Shivani
Shivani - avatar
3 odpowiedzi
+ 3
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/world" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignTop="@+id/hello" android:layout_toRightOf="@+id/view" android:text="First" /> <View android:id="@+id/view" android:layout_width="0dp" android:layout_height="1dp" android:layout_centerHorizontal="true" /> <Button android:id="@+id/hello" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_toLeftOf="@+id/view" android:text="Second" /> </RelativeLayout>
29th Nov 2018, 7:52 AM
Mayur Beldar
Mayur Beldar - avatar
+ 1
like this
29th Nov 2018, 7:53 AM
Mayur Beldar
Mayur Beldar - avatar
0
Thanks
15th Jan 2019, 5:26 PM
Shivani
Shivani - avatar