Changeset View
Changeset View
Standalone View
Standalone View
res/layout/entry_bus_line_passage.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
android:layout_width="fill_parent" | android:layout_width="fill_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:paddingTop="8dip" | android:paddingTop="8dip" | ||||
android:paddingBottom="8dip" | android:paddingBottom="8dip" | ||||
android:paddingLeft="16dip" | android:paddingLeft="16dip" | ||||
android:paddingRight="16dip"> | android:paddingRight="16dip"> | ||||
<TextView | <TextView | ||||
android:id="@+id/routeID" | android:id="@+id/routeID" | ||||
android:layout_width="54dip" | android:layout_width="54dip" | ||||
android:layout_height="54dip" | android:layout_height="54dip" | ||||
android:background="@drawable/route_background_bus" | android:background="@drawable/route_background_bus" | ||||
android:gravity="center" | android:gravity="center" | ||||
android:textColor="@color/grey_100" | android:textColor="@color/grey_100" | ||||
android:textSize="21sp"> | android:textSize="21sp" | ||||
android:layout_marginEnd="4dp" | |||||
android:layout_marginRight="4dp"> | |||||
</TextView> | </TextView> | ||||
<!--the icon comes from setCompoundDrawables in PalinaAdapter --> | <!--the icon comes from setCompoundDrawables in PalinaAdapter --> | ||||
<!--android:drawableLeft="@drawable/bus" | <!--android:drawableLeft="@drawable/bus" | ||||
android:drawableStart="@drawable/bus" --> | android:drawableStart="@drawable/bus" --> | ||||
<TextView | <TextView | ||||
android:id="@+id/routeDestination" | android:id="@+id/routeDestination" | ||||
android:textAppearance="?android:attr/textAppearanceLarge" | android:textAppearance="?android:attr/textAppearanceLarge" | ||||
Show All 18 Lines | <TextView | ||||
android:layout_marginLeft="5dip" | android:layout_marginLeft="5dip" | ||||
android:layout_marginStart="5dip" | android:layout_marginStart="5dip" | ||||
android:layout_toEndOf="@id/routeID" | android:layout_toEndOf="@id/routeID" | ||||
android:layout_toRightOf="@id/routeID" | android:layout_toRightOf="@id/routeID" | ||||
android:layout_below="@id/routeDestination"> | android:layout_below="@id/routeDestination"> | ||||
</TextView> | </TextView> | ||||
</RelativeLayout> | </RelativeLayout> | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register