Skip to content

Instantly share code, notes, and snippets.

@shaobin0604
Created November 24, 2009 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaobin0604/241994 to your computer and use it in GitHub Desktop.
Save shaobin0604/241994 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:src="@drawable/nba"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:layout_gravity="center_vertical">
<TextView
android:id="@+id/tv_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="dayofyear"
android:gravity="center_horizontal"
android:textSize="14.0dip" />
<TextView
android:id="@+id/tv_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:textSize="14.0dip" />
</LinearLayout>
<TextView
android:id="@+id/tv_time"
android:layout_width="50.0sp"
android:layout_height="wrap_content"
android:text="3"
android:gravity="right"
android:layout_gravity="center_vertical"
android:textSize="18.0dip"
android:layout_weight="1"/>
<TextView
android:id="@+id/tv_vs"
android:layout_width="140.0sp"
android:layout_height="wrap_content"
android:text="4" android:gravity="right"
android:layout_gravity="center_vertical"
android:textSize="18.0dip"
android:layout_weight="1"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment