use native selectableItemBackground

This commit is contained in:
Vincent Breitmoser 2018-11-23 14:52:41 +01:00
parent 683b7d6eaf
commit 88a3167b25
11 changed files with 12 additions and 34 deletions

View file

@ -1,22 +0,0 @@
<!--
Copyright 2012 Roman Nurik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/item_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/item_focused" android:state_focused="true" />
<item android:drawable="@drawable/item_focused" android:state_selected="true" />
<item android:drawable="@android:color/transparent" />
</selector>

View file

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center_vertical"

View file

@ -68,7 +68,7 @@
android:focusable="false"
android:layout_marginRight="3dip"
android:src="?attr/iconFolder"
android:background="?android:attr/selectableItemBackground"
android:background="?selectableItemBackground"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:padding="8dp"

View file

@ -14,7 +14,7 @@
android:id="@+id/client_certificate_spinner_delete"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?android:attr/selectableItemBackground"
android:background="?selectableItemBackground"
android:contentDescription="@string/client_certificate_spinner_delete"
android:padding="8dp"
android:src="?attr/iconActionCancel" />

View file

@ -7,7 +7,7 @@
android:layout_height="32dp"
android:visibility="gone"
custom:previewInitialChild="0"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
tools:showIn="@layout/message_view_header"
tools:visibility="visible">

View file

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:gravity="center_vertical"

View file

@ -19,7 +19,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/cancel_action" />
<View

View file

@ -24,7 +24,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/done_action" />
</LinearLayout>

View file

@ -24,7 +24,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/next_action" />
</LinearLayout>

View file

@ -19,7 +19,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/account_setup_basics_manual_setup_action" />
<Button
@ -28,7 +28,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/next_action" />
</LinearLayout>

View file

@ -19,7 +19,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/settings_import" />
<Button
@ -28,7 +28,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/selectable_item_background"
android:background="?selectableItemBackground"
android:text="@string/next_action" />
</LinearLayout>