Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <!-- TextView1 alignParentTop. Button2 alignParentBottom. Button1 above button2. -->
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/layout1"
- android:layout_width = "match_parent"
- android:layout_height = "match_parent">
- <TextView
- android:id = "@+id/textView1"
- android:layout_width = "match_parent"
- android:layout_height = "wrap_content"
- android:text = "TextView1. "
- android:layout_alignParentTop ="true" />
- <Button
- android:id = "@+id/button2"
- android:layout_width = "match_parent"
- android:layout_height = "60dp"
- android:text = "Button2"
- android:layout_alignParentBottom = "true"
- android:onClick = "onClick" />
- <Button
- android:id = "@+id/button1"
- android:layout_width = "match_parent"
- android:layout_height = "60dp"
- android:text = "Button1"
- android:layout_above = "@+id/button2"
- android:onClick = "onClick" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement