Having navigation in Library makes it hard to have options for each fragments we have to add manualy to each fragment
95 lines
4.3 KiB
XML
95 lines
4.3 KiB
XML
<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:name="home"
|
|
android:width="24dp"
|
|
android:height="24dp"
|
|
android:viewportWidth="24"
|
|
android:viewportHeight="24">
|
|
<group android:name="home_icon">
|
|
<path
|
|
android:name="home_data"
|
|
android:pathData="M 10 19 L 10 14 L 14 14 L 14 19 C 14 19.55 14.45 20 15 20 L 18 20 C 18.55 20 19 19.55 19 19 L 19 12 L 20.7 12 C 21.16 12 21.38 11.43 21.03 11.13 L 12.67 3.6 C 12.29 3.26 11.71 3.26 11.33 3.6 L 2.97 11.13 C 2.63 11.43 2.84 12 3.3 12 L 5 12 L 5 19 C 5 19.55 5.45 20 6 20 L 9 20 C 9.55 20 10 19.55 10 19 Z"
|
|
android:fillColor="#000"
|
|
android:strokeWidth="1" />
|
|
</group>
|
|
<group
|
|
android:name="sun"
|
|
android:translateX="-5"
|
|
android:translateY="4"
|
|
android:scaleX="0.2"
|
|
android:scaleY="0.2">
|
|
<path
|
|
android:name="sun_data"
|
|
android:pathData="M 12 2 C 6.48 2 2 6.48 2 12 C 2 17.52 6.48 22 12 22 C 17.52 22 22 17.52 22 12 C 22 6.48 17.52 2 12 2 Z"
|
|
android:fillColor="#000"
|
|
android:strokeWidth="1" />
|
|
</group>
|
|
<group
|
|
android:name="cloud"
|
|
android:translateX="2"
|
|
android:scaleX="0.2"
|
|
android:scaleY="0.2">
|
|
<path
|
|
android:name="path"
|
|
android:pathData="M 19.37 10.04 C 18.68 6.59 15.65 4 12.01 4 C 9.12 4 6.61 5.64 5.36 8.04 C 2.35 8.36 0.01 10.91 0.01 14 C 0.01 17.31 2.7 20 6.01 20 L 19.01 20 C 21.77 20 24.01 17.76 24.01 15 C 24.01 12.36 21.96 10.22 19.37 10.04 Z"
|
|
android:fillColor="#000"
|
|
android:strokeWidth="1" />
|
|
</group>
|
|
<group
|
|
android:name="cloud_1"
|
|
android:translateX="1"
|
|
android:translateY="4"
|
|
android:scaleX="0.1"
|
|
android:scaleY="0.1">
|
|
<path
|
|
android:name="cloud_2"
|
|
android:pathData="M 19.37 10.04 C 18.68 6.59 15.65 4 12.01 4 C 9.12 4 6.61 5.64 5.36 8.04 C 2.35 8.36 0.01 10.91 0.01 14 C 0.01 17.31 2.7 20 6.01 20 L 19.01 20 C 21.77 20 24.01 17.76 24.01 15 C 24.01 12.36 21.96 10.22 19.37 10.04 Z"
|
|
android:fillColor="#000000" />
|
|
</group>
|
|
</vector>
|
|
</aapt:attr>
|
|
<target android:name="sun">
|
|
<aapt:attr name="android:animation">
|
|
<set>
|
|
<objectAnimator
|
|
android:propertyName="translateX"
|
|
android:duration="400"
|
|
android:valueFrom="-5"
|
|
android:valueTo="16"
|
|
android:valueType="floatType"
|
|
android:interpolator="@android:interpolator/fast_out_slow_in" />
|
|
<objectAnimator
|
|
android:propertyName="translateY"
|
|
android:duration="400"
|
|
android:valueFrom="10"
|
|
android:valueTo="1"
|
|
android:valueType="floatType"
|
|
android:interpolator="@android:interpolator/fast_out_slow_in" />
|
|
</set>
|
|
</aapt:attr>
|
|
</target>
|
|
<target android:name="cloud">
|
|
<aapt:attr name="android:animation">
|
|
<objectAnimator
|
|
android:propertyName="translateX"
|
|
android:duration="400"
|
|
android:valueFrom="1"
|
|
android:valueTo="24"
|
|
android:valueType="floatType"
|
|
android:interpolator="@android:interpolator/fast_out_slow_in" />
|
|
</aapt:attr>
|
|
</target>
|
|
<target android:name="cloud_1">
|
|
<aapt:attr name="android:animation">
|
|
<objectAnimator
|
|
android:propertyName="translateX"
|
|
android:duration="400"
|
|
android:valueFrom="0"
|
|
android:valueTo="12"
|
|
android:valueType="floatType"
|
|
android:interpolator="@android:interpolator/fast_out_slow_in" />
|
|
</aapt:attr>
|
|
</target>
|
|
</animated-vector>
|