Apply default style for SearchView

This commit is contained in:
Benoit Marty 2021-06-10 21:32:33 +02:00 committed by Benoit Marty
parent 9dab8b9726
commit d60e68c4ee
12 changed files with 12 additions and 15 deletions

View File

@ -23,7 +23,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/filteredRoomsSearchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:queryHint="@string/room_filtering_filter_hint"

View File

@ -23,7 +23,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/incomingShareSearchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:queryHint="@string/room_filtering_filter_hint"

View File

@ -23,7 +23,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/searchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/base_color"

View File

@ -24,7 +24,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/incomingShareSearchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:queryHint="@string/room_filtering_filter_hint"

View File

@ -28,7 +28,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/publicRoomsFilter"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:queryHint="@string/room_directory_search_hint" />

View File

@ -67,7 +67,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/memberNameFilter"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"

View File

@ -100,7 +100,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/searchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"

View File

@ -65,7 +65,6 @@
<androidx.appcompat.widget.SearchView
android:id="@+id/publicRoomsFilter"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"

View File

@ -53,13 +53,6 @@
<item name="android:textSize">16sp</item>
</style>
<style name="VectorSearchView" parent="Widget.AppCompat.SearchView">
<item name="searchIcon">@drawable/ic_search</item>
<item name="closeIcon">@drawable/ic_x_gray</item>
<item name="iconifiedByDefault">false</item>
</style>
<style name="TimelineContentStubBaseParams">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="VectorSearchView" parent="Widget.AppCompat.SearchView">
<item name="searchIcon">@drawable/ic_search</item>
<item name="closeIcon">@drawable/ic_x_gray</item>
<item name="iconifiedByDefault">false</item>
</style>
</resources>

View File

@ -69,6 +69,7 @@
<item name="toolbarStyle">@style/VectorToolbar</item>
<item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleDark</item>
<item name="bottomNavigationStyle">@style/VectorBottomNavigation</item>
<item name="searchViewStyle">@style/VectorSearchView</item>
<!-- Default style for text input -->
<item name="textInputStyle">@style/VectorTextInputLayout</item>

View File

@ -69,6 +69,7 @@
<item name="toolbarStyle">@style/VectorToolbar</item>
<item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleLight</item>
<item name="bottomNavigationStyle">@style/VectorBottomNavigation</item>
<item name="searchViewStyle">@style/VectorSearchView</item>
<!-- Default style for text input -->
<item name="textInputStyle">@style/VectorTextInputLayout</item>