Last active
December 15, 2015 21:28
-
-
Save leonguyen/5325537 to your computer and use it in GitHub Desktop.
Android Lab: Table Layout - Weather - Defining an XML Layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" > | |
| <TableRow> | |
| <TextView | |
| android:layout_span="6" | |
| android:gravity="center" | |
| android:text="Weather" | |
| android:textSize="25dp" /> | |
| </TableRow> | |
| <TableRow> | |
| <TextView android:text="" /> | |
| <TextView | |
| android:padding="5dp" | |
| android:text="Feb 7" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:padding="5dp" | |
| android:text="Feb 8" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:padding="5dp" | |
| android:text="Feb 9" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:padding="5dp" | |
| android:text="Feb 10" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:padding="5dp" | |
| android:text="Feb 11" | |
| android:textStyle="bold" /> | |
| </TableRow> | |
| <TableRow> | |
| <TextView | |
| android:text="Day Hight" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="28℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="26℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="23℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="17℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="19℃F" /> | |
| </TableRow> | |
| <TableRow> | |
| <TextView | |
| android:text="Day Low" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="15℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="14℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="3℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="5℃F" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="6℃F" /> | |
| </TableRow> | |
| <TableRow> | |
| <TextView | |
| android:text="Conditions" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="\?" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="\?" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="\?" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="\?" /> | |
| <TextView | |
| android:gravity="center" | |
| android:padding="5dp" | |
| android:text="\?" /> | |
| </TableRow> | |
| </TableLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment