Advertisement
Guest User

events_item_row.xml

a guest
Sep 13th, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="wrap_content"
  4.    android:layout_height="wrap_content"
  5.    android:background="#e8e8e8"
  6.    android:orientation="horizontal" >
  7.  
  8.     <LinearLayout
  9.        android:id="@+id/content"
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:layout_marginLeft="10dp"
  13.        android:layout_marginRight="10dp"
  14.        android:layout_marginTop="10dp"
  15.        android:background="#fff"
  16.        android:orientation="horizontal" >
  17.  
  18.         <LinearLayout
  19.            android:id="@+id/eventDetails"
  20.            android:layout_width="0dp"
  21.            android:layout_height="wrap_content"
  22.            android:layout_weight="70"
  23.            android:orientation="vertical" >
  24.  
  25.             <TextView
  26.                android:id="@+id/eventTeams"
  27.                android:layout_width="wrap_content"
  28.                android:layout_height="wrap_content"
  29.                android:text="Houston Astros @ Boston Red Sox"
  30.                android:textSize="15sp" />
  31.  
  32.             <TextView
  33.                android:id="@+id/eventDate"
  34.                android:layout_width="wrap_content"
  35.                android:layout_height="wrap_content"
  36.                android:text="Thursday, October 12th, 2013"
  37.                android:textSize="12sp" />
  38.         </LinearLayout>
  39.  
  40.         <LinearLayout
  41.            android:id="@+id/eventTimeSection"
  42.            android:layout_width="0dp"
  43.            android:layout_height="wrap_content"
  44.            android:layout_weight="30"
  45.            android:orientation="vertical" >
  46.  
  47.             <TextView
  48.                android:id="@+id/eventTime"
  49.                android:layout_width="match_parent"
  50.                android:layout_height="match_parent"
  51.                android:gravity="center"
  52.                android:text="7:05"
  53.                android:textSize="18sp" />
  54.  
  55.             <TextView
  56.                android:id="@+id/eventAMPM"
  57.                android:layout_width="match_parent"
  58.                android:layout_height="match_parent"
  59.                android:gravity="center"
  60.                android:text="PM"
  61.                android:textAlignment="center"
  62.                android:textSize="13sp" />
  63.         </LinearLayout>
  64.     </LinearLayout>
  65.  
  66. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement