Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b7edc59 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Add animated checkbox"

parents d2356321 9e879fa0
Loading
Loading
Loading
Loading
+79 −0
Original line number Diff line number Diff line
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:trigger="state_checked"
    android:versionCode="1" >

    <size
        android:height="32dp"
        android:width="32dp" />

    <viewport
        android:viewportHeight="320"
        android:viewportWidth="320" />

    <group>
        <path
            android:name="check"
            android:pathData="M 232.1,80.6 L 248.5,92.1 L 145.2,239.5 L 71.5,187.8 L 83,171.5 L 140.3,211.7 z"
            android:fill="?attr/colorControlActivated" />
    </group>
    <group>
        <path
            android:name="box1"
            android:pathData="M 160,216.5 L 143.5,240 L 120,223.5 L 136.5,200 L 160,216.5 L 160,216.5 z"
            android:fill="?attr/colorControlActivated"
            android:stroke="?attr/colorControlActivated"
            android:strokeLineCap="round"
            android:strokeLineJoin="round" />
    </group>
    <group>
        <path
            android:name="box2"
            android:pathData="M 160,216.5 L 143.5,240 L 120,223.5 L 136.5,200 L 160,216.5 L 160,216.5 z"
            android:rotation="-35"
            android:pivotX="140"
            android:pivotY="220"
            android:fill="?attr/colorControlNormal"
            android:stroke="?attr/colorControlNormal"
            android:strokeWidth="5"
            android:strokeLineCap="round"
            android:strokeLineJoin="round" />
    </group>
    <group>
        <path
            android:name="box3"
            android:pathData="M 160,200 L 160,240 L 120,240 L 120,200 L 160,200 L 160,200 z"
            android:stroke="?attr/colorControlNormal"
            android:strokeWidth="10"
            android:strokeLineCap="round"
            android:strokeLineJoin="round" />
    </group>
    <group>
        <path
            android:name="box4"
            android:pathData="M 240,80 L 240,240 L 80,240 L 80,80 L 240,80 L 240,80 z"
            android:stroke="?attr/colorControlNormal"
            android:strokeWidth="20"
            android:strokeLineCap="round"
            android:strokeLineJoin="round" />
    </group>

    <animation
        android:durations="300,100,0,300"
        android:sequence="check,box1,box2,box3,box4" />

</vector>
+2 −2
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ please see themes_device_defaults.xml.
        <item name="listSeparatorTextViewStyle">@style/Widget.Quantum.TextView.ListSeparator</item>

        <item name="listChoiceIndicatorSingle">@drawable/btn_radio_quantum</item>
        <item name="listChoiceIndicatorMultiple">@drawable/btn_check_quantum</item>
        <item name="listChoiceIndicatorMultiple">@drawable/btn_check_quantum_anim</item>

        <item name="listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>

@@ -466,7 +466,7 @@ please see themes_device_defaults.xml.
        <item name="listSeparatorTextViewStyle">@style/Widget.Quantum.Light.TextView.ListSeparator</item>

        <item name="listChoiceIndicatorSingle">@drawable/btn_radio_quantum</item>
        <item name="listChoiceIndicatorMultiple">@drawable/btn_check_quantum</item>
        <item name="listChoiceIndicatorMultiple">@drawable/btn_check_quantum_anim</item>

        <item name="listChoiceBackgroundIndicator">@drawable/list_selector_holo_light</item>