Use native item background
This commit is contained in:
parent
ec6765122b
commit
1fb36bef5d
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
<transition xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/list_pressed_holo_dark" />
|
||||
<item android:drawable="@drawable/list_longpressed_holo" />
|
||||
</transition>
|
@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
|
||||
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
|
||||
|
||||
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_dark" />
|
||||
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_dark" />
|
||||
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
|
||||
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
|
||||
</selector>
|
@ -22,7 +22,7 @@ THE SOFTWARE.
|
||||
-->
|
||||
<ch.blinkenlights.android.vanilla.ActionBarControls
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:clickable="true">
|
||||
<ImageView
|
||||
android:id="@+id/cover"
|
||||
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/shuffle_inactive"
|
||||
android:contentDescription="@string/cycle_shuffle_mode" />
|
||||
@ -35,7 +35,7 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/previous"
|
||||
android:contentDescription="@string/previous_song" />
|
||||
@ -44,7 +44,7 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/play"
|
||||
android:contentDescription="@string/play_pause" />
|
||||
@ -53,7 +53,7 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/next"
|
||||
android:contentDescription="@string/next_song" />
|
||||
@ -62,7 +62,7 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/repeat_inactive"
|
||||
android:contentDescription="@string/cycle_repeat_mode" />
|
||||
|
@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
@ -58,7 +58,7 @@ THE SOFTWARE.
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/divider_color"
|
||||
android:dividerHeight="1dip"
|
||||
android:listSelector="@drawable/selectable_item_bg"
|
||||
android:listSelector="?android:attr/selectableItemBackground"
|
||||
android:scrollbarStyle="outsideInset" />
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/text"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:maxLines="2"
|
||||
android:padding="3dip"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
|
@ -78,7 +78,7 @@ THE SOFTWARE.
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/play"
|
||||
android:padding="5dip"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="centerInside"
|
||||
android:contentDescription="@string/play_pause" />
|
||||
<ImageButton
|
||||
@ -89,7 +89,7 @@ THE SOFTWARE.
|
||||
android:layout_weight="1"
|
||||
android:padding="5dip"
|
||||
android:src="@drawable/next"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:scaleType="centerInside"
|
||||
android:contentDescription="@string/next_song" />
|
||||
</LinearLayout>
|
||||
|
@ -99,7 +99,7 @@ THE SOFTWARE.
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/previous_song"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/widget_previous"
|
||||
@ -109,7 +109,7 @@ THE SOFTWARE.
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/play_pause"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/widget_play"
|
||||
@ -119,7 +119,7 @@ THE SOFTWARE.
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/next_song"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/widget_next"
|
||||
|
@ -64,7 +64,7 @@ THE SOFTWARE.
|
||||
android:paddingBottom="4dip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/close"
|
||||
android:contentDescription="@string/clear_search" />
|
||||
</LinearLayout>
|
||||
|
@ -22,7 +22,7 @@ THE SOFTWARE.
|
||||
-->
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:maxLines="2"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:gravity="left|center_vertical"
|
||||
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:longClickable="true"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:maxLines="2"
|
||||
android:padding="3dip"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
@ -41,7 +41,7 @@ THE SOFTWARE.
|
||||
android:background="@color/divider_color" />
|
||||
<ImageView
|
||||
android:id="@+id/arrow"
|
||||
android:background="@drawable/selectable_item_bg"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:longClickable="true"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/arrow"
|
||||
|
@ -26,5 +26,5 @@ THE SOFTWARE.
|
||||
android:layout_height="fill_parent"
|
||||
android:divider="@color/divider_color"
|
||||
android:dividerHeight="1dip"
|
||||
android:listSelector="@drawable/selectable_item_bg"
|
||||
android:listSelector="?android:attr/selectableItemBackground"
|
||||
android:scrollbarStyle="outsideInset" />
|
||||
|
@ -5,7 +5,7 @@
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:listSelector="@drawable/selectable_item_bg"
|
||||
android:listSelector="?android:attr/selectableItemBackground"
|
||||
android:scrollbarStyle="outsideInset"
|
||||
android:divider="@null"
|
||||
dslv:drag_enabled="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user