Advertisement
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"
- tools:context=".MainActivity"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TableLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/tbl1" >
- <!-- first row -->
- <TableRow
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/tbr1"
- android:padding="5dp">
- <TextView
- android:text="Column1"
- android:textSize="20dp" />
- <TextView
- android:text="Column2"
- android:textSize="20dp" />
- </TableRow>
- <!-- edit span 2 columns -->
- <TableRow
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/tbr2"
- android:padding="5dp">
- <EditText
- android:text="Column 1+2"
- android:layout_span="2"/>
- </TableRow>
- <View
- android:layout_height="2dp"
- android:background="@color/colorAccent"/>
- <Button
- android:text="Column3"
- android:textSize="20dp" />
- <Button
- android:text="Column2"
- android:textSize="20dp"
- android:layout_column="1" />
- </TableLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement