ui: purplize searchtext in keylist
This commit is contained in:
@@ -381,6 +381,9 @@ public class KeyListFragment extends Fragment
|
|||||||
// Execute this when searching
|
// Execute this when searching
|
||||||
mSearchView.setOnQueryTextListener(this);
|
mSearchView.setOnQueryTextListener(this);
|
||||||
|
|
||||||
|
View searchPlate = mSearchView.findViewById(android.support.v7.appcompat.R.id.search_plate);
|
||||||
|
searchPlate.setBackgroundResource(R.drawable.keychaintheme_searchview_holo_light);
|
||||||
|
|
||||||
// Erase search result without focus
|
// Erase search result without focus
|
||||||
MenuItemCompat.setOnActionExpandListener(searchItem, new MenuItemCompat.OnActionExpandListener() {
|
MenuItemCompat.setOnActionExpandListener(searchItem, new MenuItemCompat.OnActionExpandListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_focused="true"
|
||||||
|
android:drawable="@drawable/keychaintheme_textfield_activated_holo_light" />
|
||||||
|
<item android:drawable="@drawable/keychaintheme_textfield_default_holo_light" />
|
||||||
|
</selector>
|
||||||
Reference in New Issue
Block a user