Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity"
- android:orientation="horizontal"
- >
- <TextView
- android:layout_centerInParent="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_alignParentLeft="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_alignParentRight="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_alignParentBottom="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_centerHorizontal="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_centerVertical="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_centerVertical="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_alignParentRight="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView
- android:layout_centerInParent="true"
- android:layout_alignParentRight="true"
- android:text="hello world"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement