Bimba.git

commit 68ae37f62658ef2b5dfe364bfa283d03b4f35951

Author: Adam <git@apiote.xyz>

stop alerts layout

 app/src/main/res/layout/activity_departures.xml | 56 +++++++++++++++---
 app/src/main/res/values/strings.xml | 3 


diff --git a/app/src/main/res/layout/activity_departures.xml b/app/src/main/res/layout/activity_departures.xml
index cb7760a48a12afb83d48beef6462b72db547422d..810a40970deda47a8f5b21fc10695ef66a555e3f 100644
--- a/app/src/main/res/layout/activity_departures.xml
+++ b/app/src/main/res/layout/activity_departures.xml
@@ -13,6 +13,52 @@ 	android:layout_width="match_parent"
 	android:layout_height="match_parent"
 	android:paddingBottom="16dp">
 
+	<androidx.recyclerview.widget.RecyclerView
+		android:id="@+id/departures_recycler"
+		android:layout_width="match_parent"
+		android:layout_height="match_parent"
+		android:clipToPadding="false"
+		android:fitsSystemWindows="true"
+		android:visibility="gone"
+		app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+	<com.google.android.material.card.MaterialCardView
+		android:layout_width="match_parent"
+		android:layout_height="100dp"
+		app:cardBackgroundColor="?attr/colorSurface"
+		app:layout_anchor="@id/app_bar_layout"
+		android:visibility="gone"
+		app:layout_anchorGravity="bottom">
+
+		<androidx.constraintlayout.widget.ConstraintLayout
+			android:layout_width="match_parent"
+			android:layout_height="match_parent">
+
+			<com.google.android.material.textview.MaterialTextView
+				android:layout_width="0dp"
+				android:layout_marginStart="8dp"
+				android:layout_marginEnd="8dp"
+				android:layout_height="0dp"
+				android:layout_marginTop="58dp"
+				android:ellipsize="end"
+				android:maxLines="2"
+				tool:text="Warning: Serious blockade on Piastowska towards Wojska Polskiego. Lines 5, 14, 163 diverted. Change for other means of transport, e.g. lines \n\naaaaa"
+				app:layout_constraintBottom_toBottomOf="parent"
+				app:layout_constraintEnd_toStartOf="@+id/more_button"
+				app:layout_constraintStart_toStartOf="parent"
+				app:layout_constraintTop_toTopOf="parent" />
+
+			<com.google.android.material.button.MaterialButton
+				style="@style/Widget.Material3.Button.TextButton"
+				android:id="@+id/more_button"
+				android:layout_width="wrap_content"
+				android:layout_height="wrap_content"
+				android:text="@string/more"
+				app:layout_constraintBottom_toBottomOf="parent"
+				app:layout_constraintEnd_toEndOf="parent" />
+		</androidx.constraintlayout.widget.ConstraintLayout>
+	</com.google.android.material.card.MaterialCardView>
+
 	<androidx.constraintlayout.widget.ConstraintLayout
 		android:id="@+id/departures_overlay"
 		android:layout_width="match_parent"
@@ -57,6 +103,7 @@ 			tool:text="No connection" />
 	</androidx.constraintlayout.widget.ConstraintLayout>
 
 	<com.google.android.material.appbar.AppBarLayout
+		android:id="@+id/app_bar_layout"
 		android:layout_width="match_parent"
 		android:layout_height="wrap_content"
 		android:fitsSystemWindows="true">
@@ -80,14 +127,5 @@
 		</com.google.android.material.appbar.CollapsingToolbarLayout>
 
 	</com.google.android.material.appbar.AppBarLayout>
-
-	<androidx.recyclerview.widget.RecyclerView
-		android:id="@+id/departures_recycler"
-		android:layout_width="match_parent"
-		android:layout_height="match_parent"
-		android:clipToPadding="false"
-		android:fitsSystemWindows="true"
-		android:visibility="gone"
-		app:layout_behavior="@string/appbar_scrolling_view_behavior" />
 
 </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file




diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index fdb568c6eeaed1a54104fe847d8b989eb8a47737..8916df2b0aef9fe87867d7eab979bc92fdeec3b2 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -123,4 +123,5 @@ 	Filter by line
 	<string name="title_filter_bytime">Filter by time</string>
 	<string name="title_select_time_start">Select start time</string>
 	<string name="title_select_time_end">Select end time</string>
-</resources>
\ No newline at end of file
+	<string name="more">More</string>
+</resources>