Create style VectorSearchView

This commit is contained in:
Benoit Marty 2019-07-16 14:21:11 +02:00
parent 477920f411
commit 896e582a9c
2 changed files with 6 additions and 2 deletions

View File

@ -20,10 +20,9 @@

<androidx.appcompat.widget.SearchView
android:id="@+id/filteredRoomsSearchView"
style="@style/VectorSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:closeIcon="@drawable/ic_x_green"
app:iconifiedByDefault="false"
app:queryHint="@string/room_filtering_filter_hint"
app:searchIcon="@drawable/ic_filter" />


View File

@ -160,6 +160,11 @@
<item name="colorControlHighlight">@android:color/white</item>
</style>

<style name="VectorSearchView" parent="Widget.AppCompat.SearchView">
<item name="closeIcon">@drawable/ic_x_green</item>
<item name="iconifiedByDefault">false</item>
</style>

<style name="VectorSearches.EditText" parent="Widget.AppCompat.EditText">
<item name="android:textCursorDrawable">@drawable/searches_cursor_background</item>
<item name="android:background">@android:color/transparent</item>