Bimba.git

commit 0b7fabdd822389cdc8be879bf5160a3c0b391abd

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

searchbar appearance

 app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt | 1 
 app/src/main/res/layout/activity_dash.xml | 4 +
 app/src/main/res/layout/row_suggestion.xml | 1 
 app/src/main/res/values-night/colors.xml | 1 
 app/src/main/res/values-notnight/colors.xml | 1 
 app/src/main/res/values/colors.xml | 1 
 app/src/main/res/values/styles.xml | 2 -


diff --git a/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
index 3ea37db9c54afed9b83800a02ac5a1306d965836..fc989f80021d22302dd3b2e0eaae97bc78aeec8c 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/activities/DashActivity.kt
@@ -91,7 +91,6 @@
         showValidityInDrawer()
 
         searchView = search_view
-        searchView.setCardViewElevation(8)
         suggestionsAdapter = SuggestionsAdapter(layoutInflater, this, this)
         searchView.setCustomSuggestionAdapter(suggestionsAdapter)
 




diff --git a/app/src/main/res/layout/activity_dash.xml b/app/src/main/res/layout/activity_dash.xml
index 1760b734fe8a68f0e0c90f38a893d1fc14ab12e7..609808f63d7b17a1da73c23422511a04ee87d717 100644
--- a/app/src/main/res/layout/activity_dash.xml
+++ b/app/src/main/res/layout/activity_dash.xml
@@ -8,7 +8,8 @@
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/main_layout"
         android:layout_width="match_parent"
-        android:layout_height="match_parent">
+        android:layout_height="match_parent"
+        android:clipChildren="false">
 
         <com.google.android.material.appbar.AppBarLayout
             android:id="@+id/appbar"
@@ -44,6 +45,7 @@         
         <com.mancj.materialsearchbar.MaterialSearchBar
             android:id="@+id/search_view"
             style="@style/SearchBarTheme"
+            app:mt_searchBarColor="@color/cardColor"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginStart="8dp"




diff --git a/app/src/main/res/layout/row_suggestion.xml b/app/src/main/res/layout/row_suggestion.xml
index 7d5a28b73069aa5c15378d1f2094be901fd4ba94..6c2b77d5f75e48124c32f4a5c74d57c598a50067 100644
--- a/app/src/main/res/layout/row_suggestion.xml
+++ b/app/src/main/res/layout/row_suggestion.xml
@@ -4,6 +4,7 @@     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/row_suggestion"
     android:layout_width="match_parent"
     android:layout_height="48dp"
+    android:foreground="?android:attr/selectableItemBackground"
     android:orientation="vertical">
 
 




diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index ec1caea01009c2af74cdebb9c29f276da6b06c8d..06523ae87b1d3d5e0ca0bf98a16847c862b5a204 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -15,4 +15,5 @@     #c4212a
     <color name="text_on_toolbar">#ffffff</color>
 
     <color name="textDark">#141415</color>
+    <color name="cardColor">#ffffff</color>
 </resources>




diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 07853229e13da30362e58a0e22f30edd3ebd36c3..f565d9510e50b34a281ea802147490070f4e7acf 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -17,8 +17,6 @@