Bug 1379066 - 2. duplicate resource action_bar_button.xml draft
authorJulian_Chu <walkingice0204@gmail.com>
Wed, 05 Jul 2017 19:07:01 +0800
changeset 607256 9fb12764561f6494c9a4e2dd375c7fbdd1903a07
parent 607255 a93874205ac90387e000ac75115114d3828695e1
child 607257 7fd85f00f8423489e498a97a8747d8fa0c8d9f89
child 607544 92242e20f588a2f324ed87e2da31e52e2ff4943b
push id67947
push userbmo:walkingice0204@gmail.com
push dateWed, 12 Jul 2017 05:37:40 +0000
bugs1379066
milestone56.0a1
Bug 1379066 - 2. duplicate resource action_bar_button.xml We are going to change action_bar_button but we won't effect Australia flavor. MozReview-Commit-ID: A1bR7Dyg0xj
mobile/android/app/src/australis/res/drawable/action_bar_button.xml
mobile/android/app/src/main/res/drawable/action_bar_button.xml
mobile/android/app/src/photon/res/drawable/action_bar_button.xml
rename from mobile/android/app/src/main/res/drawable/action_bar_button.xml
rename to mobile/android/app/src/australis/res/drawable/action_bar_button.xml
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/drawable/action_bar_button.xml
@@ -0,0 +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_enabled="true" android:state_pressed="true">
+        <shape>
+            <solid android:color="@color/highlight" />
+        </shape>
+    </item>
+
+    <item android:state_focused="true" android:state_pressed="false">
+        <shape>
+            <solid android:color="@color/highlight_focused" />
+        </shape>
+    </item>
+
+    <item android:drawable="@android:color/transparent" />
+
+</selector>