Bug 1337407 - Add rtl divider resource. r=mcomella

MozReview-Commit-ID: 8ALzaHfRX4h

--HG--
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
extra : rebase_source : 43d4e6b84cf432cff8a484fc18a0018c1980a814
This commit is contained in:
Chenxia Liu 2017-07-20 19:51:18 -07:00
parent fef0cddea2
commit 0f77ff8ffd
4 changed files with 27 additions and 9 deletions

View File

@ -0,0 +1 @@
../drawable/as_contextmenu_divider_helper.xml

View File

@ -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" />

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<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>

View File

@ -0,0 +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>