Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:weightSum="3"
- tools:context=".MainActivity">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello A"
- android:textSize="20sp"
- android:layout_weight="1"
- android:background="@color/colorPrimary"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello B"
- android:layout_weight="1"
- android:textSize="20sp"
- android:background="@color/colorAccent"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello C"
- android:layout_weight="1"
- android:textSize="20sp"
- android:background="#fadada"/>
- </LinearLayout>
Add Comment
Please, Sign In to add comment