Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/res/layout/entry_bus_line_passage.xml
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | > | ||||
| android:text="231" | android:text="231" | ||||
| android:paddingStart="3dp" | android:paddingStart="3dp" | ||||
| android:paddingEnd="3dp" | android:paddingEnd="3dp" | ||||
| android:maxWidth="60sp" | android:maxWidth="60sp" | ||||
| > | > | ||||
| </TextView> | </TextView> | ||||
| </RelativeLayout> | </RelativeLayout> | ||||
| </androidx.cardview.widget.CardView> | </androidx.cardview.widget.CardView> | ||||
| <ImageView | |||||
| android:id="@+id/arrivalsBusIcon" | |||||
| android:layout_width="28dp" | |||||
| android:layout_height="28dp" | |||||
| android:layout_alignParentTop="true" | |||||
| android:layout_toEndOf="@id/routeCard" | |||||
| android:src="@drawable/ic_bus" | |||||
| android:scaleType="fitCenter" | |||||
| app:tint="@color/black_icon_text" | |||||
| /> | |||||
| <!--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" | ||||
| android:textColor="@color/grey_600" | android:textColor="@color/black_icon_text" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
| android:layout_toEndOf="@id/routeCard" | android:layout_toEndOf="@id/arrivalsBusIcon" | ||||
| android:layout_alignTop="@id/routeCard" | android:layout_alignTop="@id/routeCard" | ||||
| android:textSize="21sp" | |||||
| android:maxLines="1" | android:maxLines="1" | ||||
| android:drawablePadding="0dp" | android:drawablePadding="0dp" | ||||
| android:singleLine="true"> | android:singleLine="true"> | ||||
| </TextView> | </TextView> | ||||
| <!-- this can hold 3-4 timetable entries before overflowing into a second line. It's ugly but at least doesn't lose any information. --> | <!-- this can hold 3-4 timetable entries before overflowing into a second line. It's ugly but at least doesn't lose any information. --> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/routesThatStopHere" | android:id="@+id/routesThatStopHere" | ||||
| android:textAppearance="?android:attr/textAppearanceLarge" | android:textAppearance="?android:attr/textAppearanceLarge" | ||||
| android:textColor="@color/blue_500" | android:textColor="@color/blue_500" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
| android:layout_marginStart="5dip" | android:layout_marginStart="5dip" | ||||
| android:layout_toEndOf="@id/routeCard" | android:layout_toEndOf="@id/routeCard" | ||||
| 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