BartRunnerAndroid/res/layout/favorite_listing.xml
2013-03-24 18:38:06 -07:00

59 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bart="http://schemas.android.com/apk/res/com.dougkeen.bart"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="5dp"
android:paddingRight="5dp" >
<ImageView
android:id="@+id/dragHandle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:contentDescription="Drag handle"
android:src="@drawable/drag_handle" />
<com.dougkeen.bart.controls.CountdownTextView
android:id="@+id/countdownText"
style="@style/DepartureCountdownText"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:gravity="right"
android:width="90dp"
bart:tickInterval="1" />
<com.dougkeen.bart.controls.TimedTextSwitcher
android:id="@+id/uncertainty"
style="@style/DepartureUncertaintyText"
android:layout_alignParentRight="true"
android:layout_below="@id/countdownText"
bart:tickInterval="1" />
<TextView
android:id="@+id/originText"
style="@style/FavoriteListingTextView"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@id/countdownText"
android:layout_toRightOf="@id/dragHandle"
android:text="Origin" />
<TextView
android:id="@+id/to"
style="@style/FavoriteListingTextView"
android:layout_below="@id/originText"
android:layout_toRightOf="@id/dragHandle"
android:paddingLeft="15dp"
android:paddingRight="8dp"
android:text="to" />
<TextView
android:id="@+id/destinationText"
style="@style/FavoriteListingTextView"
android:layout_below="@id/originText"
android:layout_toLeftOf="@id/countdownText"
android:layout_toRightOf="@id/to"
android:text="Destination" />
</RelativeLayout>