Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/res/layout/include_map_bottom_sheet.xml
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
| <RelativeLayout | <androidx.constraintlayout.widget.ConstraintLayout | ||||
| xmlns:android="http://schemas.android.com/apk/res/android" | xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| xmlns:app="http://schemas.android.com/apk/res-auto" | xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
| xmlns:tools="http://schemas.android.com/tools" | xmlns:tools="http://schemas.android.com/tools" | ||||
| android:id="@+id/bottom_sheet" | android:id="@+id/bottom_sheet" | ||||
| android:layout_width="wrap_content" | android:layout_width="match_parent" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_marginEnd="10dp" | android:layout_marginEnd="10dp" | ||||
| android:paddingTop="3dp" | android:paddingTop="3dp" | ||||
| android:orientation="vertical" | android:orientation="vertical" | ||||
| android:background="@drawable/bottom_sheet_background" | android:background="@drawable/bottom_sheet_background" | ||||
| android:elevation="8dp" | android:elevation="8dp" | ||||
| android:padding="13dp" | android:padding="13dp" | ||||
| app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" | app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" | ||||
| app:behavior_hideable="true" | app:behavior_hideable="true" | ||||
| app:behavior_peekHeight="4dp" | app:behavior_peekHeight="4dp" | ||||
| android:clickable="true" | android:clickable="true" | ||||
| android:focusable="true"> | android:focusable="true"> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/stopNumberTextView" | android:id="@+id/stopNumberTextView" | ||||
| android:layout_width="match_parent" | android:layout_width="0dp" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:textSize="17sp" | android:textSize="17sp" | ||||
| android:layout_alignParentTop="true" | app:layout_constraintTop_toTopOf="parent" | ||||
| android:layout_alignParentStart="true" | app:layout_constraintStart_toStartOf="parent" | ||||
| android:layout_toStartOf="@id/arrivalsCardButton" | app:layout_constraintEnd_toStartOf="@id/arrivalsCardButton" | ||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_marginEnd="10dp" | android:layout_marginEnd="10dp" | ||||
| android:layout_marginBottom="4dp" | |||||
| android:fontFamily="@font/lato_regular" | android:fontFamily="@font/lato_regular" | ||||
| /> | /> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/stopTitleTextView" | android:id="@+id/stopTitleTextView" | ||||
| android:layout_width="match_parent" | android:layout_width="0dp" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:textSize="19sp" | android:textSize="19sp" | ||||
| android:layout_below="@id/stopNumberTextView" | app:layout_constraintTop_toBottomOf="@id/stopNumberTextView" | ||||
| android:layout_alignParentStart="true" | app:layout_constraintStart_toStartOf="parent" | ||||
| android:layout_toStartOf="@id/arrivalsCardButton" | app:layout_constraintEnd_toStartOf="@id/arrivalsCardButton" | ||||
| android:layout_marginBottom="6dp" | android:layout_marginTop="4dp" | ||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_marginEnd="10dp" | android:layout_marginEnd="10dp" | ||||
| android:fontFamily="@font/lato_bold" | android:fontFamily="@font/lato_bold" | ||||
| /> | /> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/linesPassingTextView" | android:id="@+id/descriptionTextView" | ||||
| android:layout_width="match_parent" | android:layout_width="wrap_content" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:minHeight="22dp" | |||||
| android:textSize="15sp" | android:textSize="15sp" | ||||
| android:layout_below="@id/stopTitleTextView" | android:gravity="center_vertical" | ||||
| android:layout_alignParentStart="true" | app:layout_constraintTop_toBottomOf="@id/stopTitleTextView" | ||||
| android:layout_toStartOf="@id/arrivalsCardButton" | app:layout_constraintStart_toStartOf="parent" | ||||
| android:layout_marginBottom="5dp" | app:layout_constraintEnd_toStartOf="@id/vehicleIcon" | ||||
| android:layout_marginTop="6dp" | |||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_marginEnd="10dp" | android:layout_marginEnd="1dp" | ||||
| android:fontFamily="@font/lato_regular" | android:fontFamily="@font/lato_regular" | ||||
| app:layout_constraintHorizontal_chainStyle="packed" | |||||
| app:layout_constraintHorizontal_bias="0.0" | |||||
| /> | |||||
| <ImageView | |||||
| android:layout_width="33dp" | |||||
| android:layout_height="22dp" | |||||
| android:id="@+id/vehicleIcon" | |||||
| android:layout_marginTop="6dp" | |||||
| android:layout_marginEnd="10dp" | |||||
| android:layout_marginStart="0dp" | |||||
| android:src="@drawable/ic_bus_electric_small" | |||||
| app:tint="@color/blue_700" | |||||
| app:layout_constraintTop_toBottomOf="@id/stopTitleTextView" | |||||
| app:layout_constraintStart_toEndOf="@id/descriptionTextView" | |||||
| app:layout_constraintEnd_toStartOf="@id/arrivalsCardButton" | |||||
| /> | |||||
| <androidx.constraintlayout.widget.Barrier | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="wrap_content" | |||||
| android:id="@+id/belowTextBarrier" | |||||
| app:barrierDirection="bottom" | |||||
| app:constraint_referenced_ids="vehicleIcon,descriptionTextView" | |||||
| /> | /> | ||||
| <TextView | <TextView | ||||
| android:id="@+id/extraBottomTextView" | android:id="@+id/extraBottomTextView" | ||||
| android:layout_width="match_parent" | android:layout_width="0dp" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:textSize="13sp" | android:textSize="13sp" | ||||
| android:layout_below="@id/linesPassingTextView" | app:layout_constraintTop_toBottomOf="@id/belowTextBarrier" | ||||
| android:layout_alignParentStart="true" | app:layout_constraintStart_toStartOf="parent" | ||||
| android:layout_toStartOf="@id/arrivalsCardButton" | app:layout_constraintEnd_toStartOf="@id/arrivalsCardButton" | ||||
| android:layout_marginBottom="5dp" | |||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_marginEnd="10dp" | android:layout_marginEnd="10dp" | ||||
| android:layout_marginTop="2dp" | android:layout_marginTop="5dp" | ||||
| android:text="Updated at " | android:text="Updated at " | ||||
| android:fontFamily="@font/lato_regular" | android:fontFamily="@font/lato_regular" | ||||
| android:visibility="gone" | android:visibility="gone" | ||||
| /> | /> | ||||
| <androidx.cardview.widget.CardView | <androidx.cardview.widget.CardView | ||||
| android:id="@+id/arrivalsCardButton" | android:id="@+id/arrivalsCardButton" | ||||
| android:layout_width="50sp" | android:layout_width="50sp" | ||||
| android:layout_height="50sp" | android:layout_height="50sp" | ||||
| android:layout_marginStart="5sp" | android:layout_marginStart="5sp" | ||||
| android:layout_marginEnd="5sp" | android:layout_marginEnd="6sp" | ||||
| app:cardCornerRadius="25sp" | app:cardCornerRadius="25sp" | ||||
| app:cardElevation="2dp" | app:cardElevation="2dp" | ||||
| android:clickable="true" | android:clickable="true" | ||||
| android:focusable="true" | android:focusable="true" | ||||
| android:layout_alignParentTop="true" | app:layout_constraintTop_toTopOf="parent" | ||||
| app:layout_constraintEnd_toStartOf="@id/directionsCardButton" | |||||
| android:layout_toStartOf="@id/directionsCardButton" | android:layout_toStartOf="@id/directionsCardButton" | ||||
| android:backgroundTint="?android:attr/colorAccent" | android:backgroundTint="?android:attr/colorAccent" | ||||
| android:foreground="?selectableItemBackground"> | android:foreground="?selectableItemBackground"> | ||||
| <ImageView | <ImageView | ||||
| android:layout_width="30sp" | android:layout_width="30sp" | ||||
| android:layout_height="30sp" | android:layout_height="30sp" | ||||
| android:layout_gravity="center" | android:layout_gravity="center" | ||||
| app:tint="?colorOnPrimary" | app:tint="?colorOnPrimary" | ||||
| app:srcCompat="@drawable/ic_baseline_departure_board_24" /> | app:srcCompat="@drawable/ic_baseline_departure_board_24" /> | ||||
| </androidx.cardview.widget.CardView> | </androidx.cardview.widget.CardView> | ||||
| <androidx.cardview.widget.CardView | <androidx.cardview.widget.CardView | ||||
| android:id="@+id/directionsCardButton" | android:id="@+id/directionsCardButton" | ||||
| android:layout_width="50sp" | android:layout_width="50sp" | ||||
| android:layout_height="50sp" | android:layout_height="50sp" | ||||
| android:layout_marginStart="5sp" | android:layout_marginStart="5sp" | ||||
| android:layout_marginEnd="5sp" | android:layout_marginEnd="5sp" | ||||
| app:cardCornerRadius="25sp" | app:cardCornerRadius="25sp" | ||||
| app:cardElevation="2dp" | app:cardElevation="2dp" | ||||
| android:clickable="true" | android:clickable="true" | ||||
| android:focusable="true" | android:focusable="true" | ||||
| android:layout_alignParentTop="true" | app:layout_constraintTop_toTopOf="parent" | ||||
| android:layout_alignParentEnd="true" | app:layout_constraintEnd_toEndOf="parent" | ||||
| android:foreground="?selectableItemBackground" | android:foreground="?selectableItemBackground" | ||||
| android:backgroundTint="?android:attr/colorAccent" | android:backgroundTint="?android:attr/colorAccent" | ||||
| > | > | ||||
| <ImageView | <ImageView | ||||
| android:id="@+id/rightmostImageView" | android:id="@+id/rightmostImageView" | ||||
| android:layout_width="30sp" | android:layout_width="30sp" | ||||
| android:layout_height="30sp" | android:layout_height="30sp" | ||||
| Show All 11 Lines | <ImageView | ||||
| android:layout_height="30sp" | android:layout_height="30sp" | ||||
| app:srcCompat="@drawable/baseline_close_16" | app:srcCompat="@drawable/baseline_close_16" | ||||
| android:id="@+id/btnClose" | android:id="@+id/btnClose" | ||||
| android:layout_marginTop="15dp" | android:layout_marginTop="15dp" | ||||
| android:layout_marginEnd="15dp" | android:layout_marginEnd="15dp" | ||||
| android:layout_marginBottom="5dp" | android:layout_marginBottom="5dp" | ||||
| android:layout_marginStart="10dp" | android:layout_marginStart="10dp" | ||||
| android:layout_below="@id/directionsCardButton" | android:layout_below="@id/directionsCardButton" | ||||
| app:layout_constraintTop_toBottomOf="@id/directionsCardButton" | |||||
| android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
| app:layout_constraintEnd_toEndOf="parent" | |||||
| app:layout_constraintHorizontal_bias="0.5" | app:layout_constraintHorizontal_bias="0.5" | ||||
| android:foreground="?selectableItemBackground" | android:foreground="?selectableItemBackground" | ||||
| app:layout_constraintBottom_toTopOf="@id/bottomBarrier" | |||||
| /> | |||||
| <androidx.constraintlayout.widget.Barrier | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="wrap_content" | |||||
| android:id="@+id/bottomBarrier" | |||||
| app:barrierDirection="bottom" | |||||
| app:constraint_referenced_ids="btnClose,extraBottomTextView" | |||||
| app:layout_constraintBottom_toBottomOf="parent" | |||||
| /> | /> | ||||
| </RelativeLayout> | |||||
| No newline at end of file | </androidx.constraintlayout.widget.ConstraintLayout> | ||||
| 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