Changeset View
Changeset View
Standalone View
Standalone View
res/layout/arrivals_nearby_card.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<androidx.cardview.widget.CardView | <androidx.cardview.widget.CardView | ||||
xmlns:card_view="http://schemas.android.com/apk/res-auto" | xmlns:card_view="http://schemas.android.com/apk/res-auto" | ||||
xmlns:android="http://schemas.android.com/apk/res/android" | xmlns:android="http://schemas.android.com/apk/res/android" | ||||
android:id="@+id/stop_cardView" | android:id="@+id/stop_cardView" | ||||
android:foreground="?android:attr/selectableItemBackground" | android:foreground="?android:attr/selectableItemBackground" | ||||
android:clickable="true" | android:clickable="true" | ||||
android:focusable="true" | android:focusable="true" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
card_view:cardCornerRadius="1dp" | card_view:cardCornerRadius="5dp" | ||||
android:layout_margin="8dp" android:padding="4dp"> | android:layout_margin="5dp" android:padding="6dp"> | ||||
<RelativeLayout | <RelativeLayout | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:paddingLeft="8dp" | android:paddingLeft="8dp" | ||||
> | > | ||||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | ||||
android:id="@+id/lineNameTextView" | android:id="@+id/lineNameTextView" | ||||
android:text="10" android:textSize="22sp" | android:text="10" android:textSize="22sp" | ||||
android:textColor="@color/orange_700" | android:textColor="@color/orange_700" | ||||
android:layout_marginLeft="20dp" | android:layout_marginLeft="10dp" | ||||
android:layout_marginStart="20dp" | android:layout_marginStart="10dp" | ||||
android:layout_alignParentLeft="true" | android:layout_alignParentLeft="true" | ||||
android:layout_margin="10dp" | android:gravity="center_vertical" | ||||
android:textStyle="normal" android:layout_marginRight="20dp" android:layout_marginEnd="20dp" | android:textStyle="normal" android:layout_marginRight="10dp" android:layout_marginEnd="10dp" | ||||
android:layout_marginBottom="20dp"/> | android:layout_marginBottom="10dp" android:layout_marginTop="10dp"/> | ||||
<TextView | <TextView | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:id="@+id/lineDirectionTextView" | android:id="@+id/lineDirectionTextView" | ||||
android:text="piazza statuto" | android:text="MADONNA DEL PILONE, LARGO TABACCHI" | ||||
android:textSize="20sp" | android:textSize="20sp" | ||||
android:textAppearance="?android:attr/textAppearanceLarge" | android:textAppearance="?android:attr/textAppearanceLarge" | ||||
android:layout_toLeftOf="@id/arrivalsDistanceTextView" | android:layout_toLeftOf="@id/arrivalsDistanceTextView" | ||||
android:layout_toRightOf="@id/lineNameTextView" | android:layout_toRightOf="@id/lineNameTextView" | ||||
android:layout_toEndOf="@id/lineNameTextView" | |||||
android:textStyle="normal" | android:textStyle="normal" | ||||
android:layout_marginRight="6dp" | android:layout_marginRight="6dp" | ||||
android:layout_marginEnd="6dp" | android:layout_marginEnd="6dp" | ||||
android:layout_alignBaseline="@id/lineNameTextView" | android:layout_alignBaseline="@id/lineNameTextView" | ||||
android:layout_marginLeft="10dp" | android:layout_marginLeft="10dp" | ||||
android:layout_marginTop="5dp" | android:layout_marginTop="5dp" | ||||
android:layout_marginStart="10dp" /> | android:layout_marginStart="10dp"/> | ||||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | ||||
android:layout_alignBaseline="@id/arrivalsTimeTextView" | android:layout_alignBaseline="@id/arrivalsTimeTextView" | ||||
android:textAppearance="?android:attr/textAppearanceMedium" | android:textAppearance="?android:attr/textAppearanceMedium" | ||||
android:id="@+id/arrivalsDescriptionTextView" android:text="@string/bus_arriving_at" | android:id="@+id/arrivalsDescriptionTextView" android:text="@string/bus_arriving_at" | ||||
android:textSize="@dimen/text_size_nearby_indicate" | android:textSize="@dimen/text_size_nearby_indicate" | ||||
android:layout_marginLeft="8dp" android:layout_marginTop="8dp" android:layout_marginStart="8dp" | android:layout_marginLeft="8dp" android:layout_marginTop="8dp" android:layout_marginStart="8dp" | ||||
android:layout_marginRight="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp"/> | android:layout_marginRight="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp"/> | ||||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | ||||
Show All 22 Lines | > | ||||
android:layout_below="@id/arrivalsTimeTextView" | android:layout_below="@id/arrivalsTimeTextView" | ||||
android:layout_marginBottom="10dp" | android:layout_marginBottom="10dp" | ||||
android:id="@+id/arrivalStopName" android:text="Prova prova" android:textSize="@dimen/text_size_nearby" | android:id="@+id/arrivalStopName" android:text="Prova prova" android:textSize="@dimen/text_size_nearby" | ||||
android:layout_marginLeft="10dp" | android:layout_marginLeft="10dp" | ||||
android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
android:textAppearance="?android:attr/textAppearanceLarge" | android:textAppearance="?android:attr/textAppearanceLarge" | ||||
/> | /> | ||||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" | ||||
android:layout_margin="@dimen/default_textView_margin" | android:layout_marginTop="12dp" | ||||
android:layout_marginBottom="10dp" | android:layout_marginBottom="10dp" | ||||
android:layout_marginEnd="15dp" | android:layout_marginEnd="12dp" | ||||
android:layout_marginRight="12dp" | |||||
android:id="@+id/arrivalsDistanceTextView" android:text="200 m" android:textSize="15sp" | android:id="@+id/arrivalsDistanceTextView" android:text="200 m" android:textSize="15sp" | ||||
android:layout_marginLeft="15dp" | android:layout_marginLeft="15dp" | ||||
android:layout_marginStart="15dp" | android:layout_marginStart="15dp" | ||||
android:textAppearance="?android:attr/textAppearanceSmall" | android:textAppearance="?android:attr/textAppearanceSmall" | ||||
android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
/> | /> | ||||
</RelativeLayout> | </RelativeLayout> | ||||
</androidx.cardview.widget.CardView> | </androidx.cardview.widget.CardView> | ||||
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