Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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