diff options
author | Yorke Lee <yorkelee@google.com> | 2014-10-15 18:07:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-15 18:07:41 +0000 |
commit | fe919b3eea7a40cedd55b60a454cc1a2ee26e381 (patch) | |
tree | 40fbe558832d15d686c0394db47485b1f5b17988 /res | |
parent | 832e98c99eb40a0e93ef92dc434e80ec92e3ab66 (diff) | |
parent | f59b9193bf886b769ab6cd7d2f51257653f1aa7b (diff) |
am f59b9193: Merge "Add touch feedback to action buttons" into lmp-mr1-dev
* commit 'f59b9193bf886b769ab6cd7d2f51257653f1aa7b':
Add touch feedback to action buttons
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/action_button_background.xml | 26 | ||||
-rw-r--r-- | res/layout/call_log_list_item_actions.xml | 10 |
2 files changed, 5 insertions, 31 deletions
diff --git a/res/drawable/action_button_background.xml b/res/drawable/action_button_background.xml deleted file mode 100644 index ea7434f24..000000000 --- a/res/drawable/action_button_background.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2014 The Android Open Source Project - - 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. ---> -<ripple xmlns:android="http://schemas.android.com/apk/res/android" - android:color="?android:attr/colorControlHighlight"> - <!-- Transparent background constrains the touch feedback ripple to the button, but also allows - touch feedback ripples in the parent to show under the button. --> - <item> - <shape android:shape="rectangle" > - <solid android:color="@android:color/transparent" /> - </shape> - </item> -</ripple> diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml index ac83f4ac8..1280089f5 100644 --- a/res/layout/call_log_list_item_actions.xml +++ b/res/layout/call_log_list_item_actions.xml @@ -30,7 +30,7 @@ > <TextView android:id="@+id/call_back_action" - android:background="@drawable/action_button_background" + android:background="?android:attr/selectableItemBackground" android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" @@ -46,7 +46,7 @@ android:singleLine="true"/> <TextView android:id="@+id/video_call_action" - android:background="@drawable/action_button_background" + android:background="?android:attr/selectableItemBackground" android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" @@ -62,7 +62,7 @@ android:singleLine="true"/> <TextView android:id="@+id/voicemail_action" - android:background="@drawable/action_button_background" + android:background="?android:attr/selectableItemBackground" android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" @@ -78,7 +78,7 @@ android:singleLine="true"/> <TextView android:id="@+id/details_action" - android:background="@drawable/action_button_background" + android:background="?android:attr/selectableItemBackground" android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" @@ -94,7 +94,7 @@ android:singleLine="true"/> <TextView android:id="@+id/report_action" - android:background="@drawable/action_button_background" + android:background="?android:attr/selectableItemBackground" android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" |