<?xml version="1.0" encoding="utf-8"?>
<!--

    Geekttrss is a RSS feed reader application on the Android Platform.

    Copyright (C) 2017-2024 by Frederic-Charles Barthelery.

    This file is part of Geekttrss.

    Geekttrss is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Geekttrss is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Geekttrss.  If not, see <http://www.gnu.org/licenses/>.

-->
<!--suppress AndroidDomInspection -->
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
                 xmlns:aapt="http://schemas.android.com/aapt">

    <aapt:attr name="android:drawable">
        <vector
                android:width="24dp"
                android:height="24dp"
                android:viewportWidth="24.0"
                android:viewportHeight="24.0">
            <path android:name="outline"
                  android:strokeColor="?colorControlNormal"
                  android:strokeWidth="1.5"
                  android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>

            <clip-path android:name="clip"
                       android:pathData="@string/path_star_mask_empty"/>

            <path android:name="fill"
                  android:fillColor="?colorAccent"
                  android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>

        </vector>
    </aapt:attr>

    <target android:name="clip">
        <aapt:attr name="android:animation">
            <objectAnimator
                    android:propertyName="pathData"
                    android:valueFrom="@string/path_star_mask_empty"
                    android:valueTo="@string/path_star_mask_filled"
                    android:duration="@integer/star_fill_time"
                    android:interpolator="@android:interpolator/fast_out_slow_in"
                    android:valueType="pathType"/>

        </aapt:attr>
    </target>

</animated-vector>
