Reporting M3 redesign
This commit is contained in:
13
mastodon/src/main/res/drawable/bg_m3_bottom_bar.xml
Normal file
13
mastodon/src/main/res/drawable/bg_m3_bottom_bar.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="?colorWhite"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item android:gravity="top" android:height="0.5dp">
|
||||
<shape>
|
||||
<solid android:color="?colorM3OutlineVariant"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
6
mastodon/src/main/res/drawable/bg_reported_stamp.xml
Normal file
6
mastodon/src/main/res/drawable/bg_reported_stamp.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="?colorM3PrimaryContainer"/>
|
||||
<stroke android:width="4dp" android:color="?colorM3OnPrimaryContainer"/>
|
||||
<corners android:radius="6dp"/>
|
||||
</shape>
|
||||
9
mastodon/src/main/res/drawable/ic_block_20px.xml
Normal file
9
mastodon/src/main/res/drawable/ic_block_20px.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M10,18Q8.354,18 6.896,17.375Q5.438,16.75 4.344,15.656Q3.25,14.562 2.625,13.104Q2,11.646 2,10Q2,8.333 2.625,6.885Q3.25,5.438 4.344,4.344Q5.438,3.25 6.896,2.625Q8.354,2 10,2Q11.667,2 13.115,2.625Q14.562,3.25 15.656,4.344Q16.75,5.438 17.375,6.885Q18,8.333 18,10Q18,11.646 17.375,13.104Q16.75,14.562 15.656,15.656Q14.562,16.75 13.115,17.375Q11.667,18 10,18ZM10,16.5Q12.708,16.5 14.604,14.604Q16.5,12.708 16.5,10Q16.5,8.854 16.125,7.833Q15.75,6.812 15.083,5.979L5.979,15.083Q6.812,15.75 7.833,16.125Q8.854,16.5 10,16.5ZM4.917,14.021 L14.021,4.917Q13.188,4.25 12.167,3.875Q11.146,3.5 10,3.5Q7.292,3.5 5.396,5.396Q3.5,7.292 3.5,10Q3.5,11.146 3.875,12.167Q4.25,13.188 4.917,14.021Z"/>
|
||||
</vector>
|
||||
9
mastodon/src/main/res/drawable/ic_check_24px.xml
Normal file
9
mastodon/src/main/res/drawable/ic_check_24px.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M9.55,18 L3.85,12.3 5.275,10.875 9.55,15.15 18.725,5.975 20.15,7.4Z"/>
|
||||
</vector>
|
||||
9
mastodon/src/main/res/drawable/ic_person_remove_20px.xml
Normal file
9
mastodon/src/main/res/drawable/ic_person_remove_20px.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M13.292,9.312V7.562H18.333V9.312ZM7.542,9.979Q6.125,9.979 5.167,9.021Q4.208,8.062 4.208,6.646Q4.208,5.229 5.167,4.271Q6.125,3.312 7.542,3.312Q8.958,3.312 9.917,4.271Q10.875,5.229 10.875,6.646Q10.875,8.062 9.917,9.021Q8.958,9.979 7.542,9.979ZM0.833,16.667V14.271Q0.833,13.542 1.208,12.958Q1.583,12.375 2.188,12.083Q3.479,11.458 4.833,11.146Q6.188,10.833 7.562,10.833Q8.938,10.833 10.302,11.156Q11.667,11.479 12.938,12.083Q13.542,12.375 13.906,12.958Q14.271,13.542 14.271,14.271V16.667ZM2.583,14.917H12.521V14.271Q12.521,14.042 12.417,13.896Q12.312,13.75 12.146,13.667Q11.042,13.167 9.875,12.875Q8.708,12.583 7.562,12.583Q6.417,12.583 5.25,12.865Q4.083,13.146 2.979,13.667Q2.792,13.729 2.688,13.885Q2.583,14.042 2.583,14.271ZM7.542,8.229Q8.229,8.229 8.677,7.781Q9.125,7.333 9.125,6.646Q9.125,5.958 8.677,5.51Q8.229,5.062 7.542,5.062Q6.854,5.062 6.406,5.51Q5.958,5.958 5.958,6.646Q5.958,7.333 6.406,7.781Q6.854,8.229 7.542,8.229ZM7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646Q7.542,6.646 7.542,6.646ZM7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Q7.562,12.583 7.562,12.583Z"/>
|
||||
</vector>
|
||||
9
mastodon/src/main/res/drawable/ic_volume_off_20px.xml
Normal file
9
mastodon/src/main/res/drawable/ic_volume_off_20px.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M15.812,18.604 L13.729,16.521Q13.229,16.812 12.667,17.021Q12.104,17.229 11.5,17.354V15.583Q11.75,15.521 11.979,15.427Q12.208,15.333 12.438,15.229L9.75,12.542V16.646L5.479,12.5H2.271V7.458H4.667L1.312,4.104L2.562,2.854L17.042,17.354ZM16.292,14.104 L15.021,12.833Q15.375,12.188 15.573,11.469Q15.771,10.75 15.771,9.979Q15.771,8 14.583,6.448Q13.396,4.896 11.5,4.375V2.604Q14.167,3.125 15.844,5.198Q17.521,7.271 17.521,9.979Q17.521,11.104 17.208,12.156Q16.896,13.208 16.292,14.104ZM7.229,10ZM13.375,11.188 L11.5,9.312V6.708Q12.458,7.146 13.021,8.031Q13.583,8.917 13.583,9.979Q13.583,10.292 13.531,10.594Q13.479,10.896 13.375,11.188ZM9.75,7.542 L7.604,5.396 9.75,3.312ZM8,12.5V10.792L6.417,9.208H4.021V10.75H6.167Z"/>
|
||||
</vector>
|
||||
83
mastodon/src/main/res/drawable/mtrl_switch_thumb.xml
Normal file
83
mastodon/src/main/res/drawable/mtrl_switch_thumb.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_thumb_size"
|
||||
android:height="@dimen/mtrl_switch_thumb_size"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<item
|
||||
android:id="@+id/pressed"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed"
|
||||
android:state_pressed="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/checked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked"
|
||||
android:state_checked="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/with_icon"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked"
|
||||
app:state_with_icon="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/unchecked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_unchecked" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/pressed"
|
||||
android:toId="@+id/checked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed_checked" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/pressed"
|
||||
android:toId="@+id/with_icon"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed_checked" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/pressed"
|
||||
android:toId="@+id/unchecked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed_unchecked" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/checked"
|
||||
android:toId="@+id/pressed"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked_pressed" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/checked"
|
||||
android:toId="@+id/unchecked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked_unchecked" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/with_icon"
|
||||
android:toId="@+id/pressed"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked_pressed" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/unchecked"
|
||||
android:toId="@+id/pressed"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_unchecked_pressed" />
|
||||
|
||||
<transition
|
||||
android:fromId="@+id/unchecked"
|
||||
android:toId="@+id/checked"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_unchecked_checked" />
|
||||
|
||||
</animated-selector>
|
||||
35
mastodon/src/main/res/drawable/mtrl_switch_thumb_checked.xml
Normal file
35
mastodon/src/main/res/drawable/mtrl_switch_thumb_checked.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_thumb_size"
|
||||
android:height="@dimen/mtrl_switch_thumb_size"
|
||||
android:viewportHeight="@integer/mtrl_switch_thumb_viewport_size"
|
||||
android:viewportWidth="@integer/mtrl_switch_thumb_viewport_size"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<group
|
||||
android:name="@string/mtrl_switch_thumb_group_name"
|
||||
android:pivotX="@integer/mtrl_switch_thumb_viewport_center_coordinate"
|
||||
android:pivotY="@integer/mtrl_switch_thumb_viewport_center_coordinate">
|
||||
<path
|
||||
android:name="@string/mtrl_switch_thumb_path_name"
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="@string/mtrl_switch_thumb_path_checked" />
|
||||
</group>
|
||||
|
||||
</vector>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_pressed_duration"
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_standard"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_checked"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_pressed"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</animated-vector>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_checked"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<set
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized"
|
||||
android:shareInterpolator="true">
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_pre_morphing_duration"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_checked"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_morphing"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:startOffset="@integer/mtrl_switch_thumb_pre_morphing_duration"
|
||||
android:duration="@integer/mtrl_switch_thumb_post_morphing_duration"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_morphing"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_unchecked"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</set>
|
||||
</animated-vector>
|
||||
35
mastodon/src/main/res/drawable/mtrl_switch_thumb_pressed.xml
Normal file
35
mastodon/src/main/res/drawable/mtrl_switch_thumb_pressed.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_thumb_size"
|
||||
android:height="@dimen/mtrl_switch_thumb_size"
|
||||
android:viewportHeight="@integer/mtrl_switch_thumb_viewport_size"
|
||||
android:viewportWidth="@integer/mtrl_switch_thumb_viewport_size"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<group
|
||||
android:name="@string/mtrl_switch_thumb_group_name"
|
||||
android:pivotX="@integer/mtrl_switch_thumb_viewport_center_coordinate"
|
||||
android:pivotY="@integer/mtrl_switch_thumb_viewport_center_coordinate">
|
||||
<path
|
||||
android:name="@string/mtrl_switch_thumb_path_name"
|
||||
android:fillColor="#ffffffff"
|
||||
android:pathData="@string/mtrl_switch_thumb_path_pressed" />
|
||||
</group>
|
||||
|
||||
</vector>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_pressed_duration"
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_standard"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_pressed"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_checked"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</animated-vector>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_pressed"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_pressed_duration"
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_pressed"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_unchecked"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</animated-vector>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_thumb_size"
|
||||
android:height="@dimen/mtrl_switch_thumb_size"
|
||||
android:viewportHeight="@integer/mtrl_switch_thumb_viewport_size"
|
||||
android:viewportWidth="@integer/mtrl_switch_thumb_viewport_size"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<group
|
||||
android:name="@string/mtrl_switch_thumb_group_name"
|
||||
android:pivotX="@integer/mtrl_switch_thumb_viewport_center_coordinate"
|
||||
android:pivotY="@integer/mtrl_switch_thumb_viewport_center_coordinate">
|
||||
<path
|
||||
android:name="@string/mtrl_switch_thumb_path_name"
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="@string/mtrl_switch_thumb_path_unchecked" />
|
||||
</group>
|
||||
|
||||
</vector>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_unchecked"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<set
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized"
|
||||
android:shareInterpolator="true">
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_post_morphing_duration"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_unchecked"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_morphing"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:startOffset="@integer/mtrl_switch_thumb_post_morphing_duration"
|
||||
android:duration="@integer/mtrl_switch_thumb_pre_morphing_duration"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_morphing"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_checked"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</set>
|
||||
</animated-vector>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:drawable="@drawable/mtrl_switch_thumb_unchecked"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<target android:name="@string/mtrl_switch_thumb_path_name">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_switch_thumb_pressed_duration"
|
||||
android:interpolator="@interpolator/m3_sys_motion_easing_standard"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="@string/mtrl_switch_thumb_path_unchecked"
|
||||
android:valueTo="@string/mtrl_switch_thumb_path_pressed"
|
||||
android:valueType="pathType" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</animated-vector>
|
||||
30
mastodon/src/main/res/drawable/mtrl_switch_track.xml
Normal file
30
mastodon/src/main/res/drawable/mtrl_switch_track.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_track_width"
|
||||
android:height="@dimen/mtrl_switch_track_height"
|
||||
android:viewportWidth="@integer/mtrl_switch_track_viewport_width"
|
||||
android:viewportHeight="@integer/mtrl_switch_track_viewport_height"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<path
|
||||
android:name="track"
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="@string/mtrl_switch_track_path" />
|
||||
|
||||
</vector>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:width="@dimen/mtrl_switch_track_width"
|
||||
android:height="@dimen/mtrl_switch_track_height"
|
||||
android:viewportWidth="@integer/mtrl_switch_track_viewport_width"
|
||||
android:viewportHeight="@integer/mtrl_switch_track_viewport_height"
|
||||
tools:ignore="NewApi">
|
||||
|
||||
<path
|
||||
android:name="outline"
|
||||
android:strokeColor="?attr/colorM3Outline"
|
||||
android:strokeWidth="2"
|
||||
android:pathData="@string/mtrl_switch_track_decoration_path" />
|
||||
|
||||
</vector>
|
||||
Reference in New Issue
Block a user