Bug 865923 - Use solid shapes in listSelector drawables
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 29 Apr 2013 10:55:23 -0700
changeset 141191 593f81bc77527cf8a6f7ecb0550d8cbeda267668
parent 141190 c6443d8a1b134b462fa3cb399829bcf5cb321945
child 141192 e2f30291a3fcfe7d20524720b7d420099b8cad7e
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs865923
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 865923 - Use solid shapes in listSelector drawables
mobile/android/base/resources/drawable/action_bar_button.xml
--- a/mobile/android/base/resources/drawable/action_bar_button.xml
+++ b/mobile/android/base/resources/drawable/action_bar_button.xml
@@ -1,17 +1,23 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
 
-    <item android:state_pressed="true"
-          android:drawable="@color/highlight"/>
+    <item android:state_pressed="true">
+        <shape>
+            <solid android:color="@color/highlight" />
+        </shape>
+    </item>
 
     <item android:state_focused="true"
-          android:state_pressed="false"
-          android:drawable="@color/highlight_focused"/>
+          android:state_pressed="false">
+        <shape>
+            <solid android:color="@color/highlight_focused" />
+        </shape>
+    </item>
 
     <item android:drawable="@android:color/transparent"/>
 
 </selector>