Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/res/layout/entry_bus_stop.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" xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
| android:paddingTop="8dip" | android:paddingTop="8dip" | ||||
| android:paddingBottom="8dip" | android:paddingBottom="8dip" | ||||
| android:background="?android:attr/selectableItemBackground" | android:background="?android:attr/selectableItemBackground" | ||||
| > | > | ||||
| <TextView | <TextView | ||||
| android:id="@+id/busStopName" | android:id="@+id/busStopName" | ||||
| android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_marginLeft="16sp" | android:layout_marginLeft="16sp" | ||||
| Show All 19 Lines | <TextView | ||||
| android:layout_marginEnd="16sp" | android:layout_marginEnd="16sp" | ||||
| android:layout_below="@id/busStopName" | android:layout_below="@id/busStopName" | ||||
| android:layout_toLeftOf="@+id/busStopID" | android:layout_toLeftOf="@+id/busStopID" | ||||
| android:layout_toStartOf="@+id/busStopID" | android:layout_toStartOf="@+id/busStopID" | ||||
| android:layout_alignParentLeft="true" | android:layout_alignParentLeft="true" | ||||
| android:layout_alignParentStart="true" | android:layout_alignParentStart="true" | ||||
| android:textColor="@color/grey_600" | android:textColor="@color/grey_600" | ||||
| android:textAppearance="?android:attr/textAppearanceMedium"/> | android:textAppearance="?android:attr/textAppearanceMedium"/> | ||||
| <ImageView | |||||
| android:id="@+id/arrivalsBusIcon" | |||||
| android:layout_width="26dp" | |||||
| android:layout_height="26dp" | |||||
| android:layout_alignParentStart="true" | |||||
| android:layout_below="@id/busStopLocality" | |||||
| android:layout_marginStart="16sp" | |||||
| android:src="@drawable/ic_bus" | |||||
| android:scaleType="fitCenter" | |||||
| app:tint="@color/black_icon_text" | |||||
| /> | |||||
| <TextView | <TextView | ||||
| android:id="@+id/routesThatStopHere" | android:id="@+id/routesThatStopHere" | ||||
| android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_below="@id/busStopLocality" | android:layout_below="@id/busStopLocality" | ||||
| android:layout_marginLeft="16sp" | android:layout_marginStart="4dp" | ||||
| android:layout_marginStart="16sp" | android:layout_marginEnd="16dp" | ||||
| android:layout_marginRight="16sp" | |||||
| android:layout_marginEnd="16sp" | |||||
| android:gravity="center_vertical" | android:gravity="center_vertical" | ||||
| android:layout_toLeftOf="@id/busStopID" | |||||
| android:layout_toStartOf="@id/busStopID" | android:layout_toStartOf="@id/busStopID" | ||||
| android:layout_alignParentLeft="true" | android:layout_toEndOf="@id/arrivalsBusIcon" | ||||
| android:layout_alignParentStart="true" | android:layout_marginTop="3dp" | ||||
| android:textAppearance="?android:attr/textAppearanceSmall" | android:textAppearance="?android:attr/textAppearanceSmall" | ||||
| android:textColor="@color/grey_600"/> | android:textColor="@color/grey_600"/> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/busStopID" | android:id="@+id/busStopID" | ||||
| android:layout_width="70dip" | android:layout_width="70dip" | ||||
| android:layout_height="70dip" | android:layout_height="70dip" | ||||
| android:layout_marginRight="16sp" | android:layout_marginRight="16sp" | ||||
| android:layout_marginEnd="16sp" | android:layout_marginEnd="16sp" | ||||
| android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
| android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
| android:layout_alignTop="@id/busStopName" | android:layout_alignTop="@id/busStopName" | ||||
| android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
| android:background="@drawable/bus_stop_background" | android:background="@drawable/bus_stop_background" | ||||
| android:gravity="center" | android:gravity="center" | ||||
| android:textColor="@color/grey_100" | android:textColor="@color/grey_100" | ||||
| android:textSize="21sp"/> | android:textSize="21sp"/> | ||||
| </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