mobile/android/base/resources/drawable/overlay_share_button_background_first.xml
author Michael Comella <michael.l.comella@gmail.com>
Tue, 17 Mar 2015 17:47:38 -0700
changeset 258340 5dd03a21c3768f978452f45babc07b9d9201152d
child 258348 f2cbe1ec6d5a8f84d7f5ae34e4391bcfd08e22a9
permissions -rw-r--r--
Bug 1130203 - Round the corners of the first item in the share overlay. r=mhaigh a=sylvestre

<?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/.
  -->

<!-- Should be kept in sync with overlay_share_button_background.xml

     This first item in the list has rounded corners. -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:state_pressed="true">
        <shape>
            <solid android:color="@color/overlay_share_selected"/>
            <corners android:topLeftRadius="@dimen/button_corner_radius"
                     android:topRightRadius="@dimen/button_corner_radius"/>
        </shape>
    </item>

    <item>
        <shape>
            <solid android:color="@color/overlay_share_background"/>
            <corners android:topLeftRadius="@dimen/button_corner_radius"
                     android:topRightRadius="@dimen/button_corner_radius"/>
        </shape>
    </item>

</selector>