Bug 1337407 - Add rtl divider resource. r=mcomella
authorChenxia Liu <liuche@mozilla.com>
Thu, 20 Jul 2017 19:51:18 -0700
changeset 419389 080aa07d32df3d0697f0a44ed72121f384fa6417
parent 419388 2e0c2b3bc28bdb0715ef50c78bd804c4ecc52907
child 419390 0616e8c5f57ef1cbbe3c365dee2d7f768c272272
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1337407
milestone56.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 1337407 - Add rtl divider resource. r=mcomella MozReview-Commit-ID: 8ALzaHfRX4h
mobile/android/app/src/main/res/drawable-ldltr/as_contextmenu_divider.xml
mobile/android/app/src/main/res/drawable-ldrtl/as_contextmenu_divider.xml
mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml
mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
new file mode 120000
--- /dev/null
+++ b/mobile/android/app/src/main/res/drawable-ldltr/as_contextmenu_divider.xml
@@ -0,0 +1,1 @@
+../drawable/as_contextmenu_divider_helper.xml
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/main/res/drawable-ldrtl/as_contextmenu_divider.xml
@@ -0,0 +1,10 @@
+<?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/. -->
+
+
+<rotate xmlns:android="http://schemas.android.com/apk/res/android"
+        android:fromDegrees="180"
+        android:toDegrees="0"
+        android:drawable="@drawable/as_contextmenu_divider_helper" />
rename from mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml
rename to mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
--- a/mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml
+++ b/mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
@@ -1,9 +1,16 @@
 <?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/. -->
+
+<!-- This is the (ltr) divider used in the Activity Stream context menu,
+     and is used as a helper to be mirrored in
+     drawable-ldrtl/as_contextmenu_divider.xml for rtl layouts. -->
 <inset xmlns:android="http://schemas.android.com/apk/res/android"
        android:insetLeft="72dp">
     <shape>
         <size
             android:height="1dp"/>
         <solid android:color="@color/disabled_grey"/>
     </shape>
-</inset>
\ No newline at end of file
+</inset>