HomelabMFA v1.0 — biometric gate for ntfy Push MFA
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_linear_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_linear_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="iconScale"
|
||||
android:startOffset="200"
|
||||
android:duration="0"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
</set>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_linear_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_linear_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="iconScale"
|
||||
android:startOffset="0"
|
||||
android:duration="0"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
</set>
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2020 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<set android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="0.0" android:valueTo="0.0"
|
||||
android:duration="66" />
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="0.0" android:valueTo="1.0"
|
||||
android:duration="50"/>
|
||||
</set>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleX"
|
||||
android:valueFrom="1.1" android:valueTo="1.0"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleY"
|
||||
android:valueFrom="1.1" android:valueTo="1.0"
|
||||
android:duration="300"/>
|
||||
</set>
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2020 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<set android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="1.0" android:valueTo="1.0"
|
||||
android:duration="66" />
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="1.0" android:valueTo="0.0"
|
||||
android:duration="50"/>
|
||||
</set>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleX"
|
||||
android:valueFrom="1.0" android:valueTo="0.9"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleY"
|
||||
android:valueFrom="1.0" android:valueTo="0.9"
|
||||
android:duration="300"/>
|
||||
</set>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2020 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.
|
||||
-->
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="0.0" android:valueTo="1.0"
|
||||
android:duration="150" />
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="1.0" android:valueTo="0.0"
|
||||
android:duration="150" />
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2020 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<set android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="0.0" android:valueTo="0.0"
|
||||
android:duration="50" />
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="0.0" android:valueTo="1.0"
|
||||
android:duration="50"/>
|
||||
</set>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleX"
|
||||
android:valueFrom="0.85" android:valueTo="1.0"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleY"
|
||||
android:valueFrom="0.85" android:valueTo="1.0"
|
||||
android:duration="300"/>
|
||||
|
||||
</set>
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2020 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<set android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="1.0" android:valueTo="1.0"
|
||||
android:duration="50" />
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:propertyName="alpha"
|
||||
android:valueFrom="1.0" android:valueTo="0.0"
|
||||
android:duration="50"/>
|
||||
</set>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleX"
|
||||
android:valueFrom="1.0" android:valueTo="1.15"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator
|
||||
android:interpolator="@anim/fragment_fast_out_extra_slow_in"
|
||||
android:propertyName="scaleY"
|
||||
android:valueFrom="1.0" android:valueTo="1.15"
|
||||
android:duration="300"/>
|
||||
</set>
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<selector>
|
||||
|
||||
<!-- Hover state. This is triggered via mouse. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_btn_translation_z_hovered"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_elevated_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="@integer/m3_btn_anim_delay_ms"
|
||||
android:valueTo="@dimen/m3_btn_translation_z_base"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_elevated_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_btn_disabled_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_disabled_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
</set>
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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.
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<selector>
|
||||
|
||||
<!-- Hover state. This is triggered via mouse. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_btn_translation_z_hovered"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="@integer/m3_btn_anim_delay_ms"
|
||||
android:valueTo="@dimen/m3_btn_translation_z_base"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_btn_disabled_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_btn_disabled_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
</set>
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2021 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.
|
||||
-->
|
||||
|
||||
<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">
|
||||
|
||||
<!-- Hovered state -->
|
||||
<item android:state_enabled="true" android:state_hovered="true">
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="?attr/motionDurationMedium1"
|
||||
android:valueTo="@dimen/m3_card_elevated_hovered_z"
|
||||
android:valueType="floatType"
|
||||
tools:targetApi="kitkat"/>
|
||||
</item>
|
||||
|
||||
<!-- Dragged state -->
|
||||
<item android:state_enabled="true" app:state_dragged="true">
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="?attr/motionDurationMedium1"
|
||||
android:valueTo="@dimen/m3_card_elevated_dragged_z"
|
||||
android:valueType="floatType"
|
||||
tools:targetApi="kitkat"/>
|
||||
</item>
|
||||
|
||||
<!-- Base state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationLong2"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0dp"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0dp"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
</selector>
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2021 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.
|
||||
-->
|
||||
|
||||
<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">
|
||||
|
||||
<!-- Hovered state -->
|
||||
<item android:state_enabled="true" android:state_hovered="true">
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_card_hovered_z"
|
||||
android:startDelay="?attr/motionDurationMedium1"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:valueType="floatType"
|
||||
tools:targetApi="kitkat"/>
|
||||
</item>
|
||||
|
||||
<!-- Dragged state -->
|
||||
<item android:state_enabled="true" app:state_dragged="true">
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_card_dragged_z"
|
||||
android:startDelay="?attr/motionDurationMedium1"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:valueType="floatType"
|
||||
tools:targetApi="kitkat"/>
|
||||
</item>
|
||||
|
||||
<!-- Base state -->
|
||||
<item android:state_enabled="true">
|
||||
<objectAnimator
|
||||
android:duration="?attr/motionDurationLong2"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0dp"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0dp"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
</selector>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2021 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
|
||||
|
||||
https://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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- TODO: Uncomment the below section when we implemented Dragged state -->
|
||||
<!-- <item-->
|
||||
<!-- android:state_enabled="true"-->
|
||||
<!-- app:state_dragged="true">-->
|
||||
<!-- <objectAnimator-->
|
||||
<!-- android:duration="@integer/m3_chip_anim_duration"-->
|
||||
<!-- android:propertyName="translationZ"-->
|
||||
<!-- android:valueTo="@dimen/m3_chip_dragged_translation_z"-->
|
||||
<!-- android:valueType="floatType"/>-->
|
||||
<!-- </item>-->
|
||||
|
||||
<!-- Selected & hovered state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_selected="true"
|
||||
android:state_hovered="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_chip_checked_hovered_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Checked & hovered state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_checked="true"
|
||||
android:state_hovered="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_chip_checked_hovered_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Other states -->
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
</selector>
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2021 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
|
||||
|
||||
https://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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- TODO: Uncomment the below section when we implemented Dragged state -->
|
||||
<!-- <item-->
|
||||
<!-- android:state_enabled="true"-->
|
||||
<!-- app:state_dragged="true">-->
|
||||
<!-- <objectAnimator-->
|
||||
<!-- android:duration="@integer/m3_chip_anim_duration"-->
|
||||
<!-- android:propertyName="translationZ"-->
|
||||
<!-- android:valueTo="@dimen/m3_chip_dragged_translation_z"-->
|
||||
<!-- android:valueType="floatType"/>-->
|
||||
<!-- </item>-->
|
||||
|
||||
<!-- Hovered state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_chip_hovered_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Enabled state -->
|
||||
<item android:state_enabled="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/m3_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_chip_disabled_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="width"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="height"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingStart"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingEnd"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="labelOpacity"
|
||||
android:startOffset="?attr/motionDurationShort1"
|
||||
android:duration="?attr/motionDurationShort2"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
</set>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="width"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="height"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingStart"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingEnd"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="labelOpacity"
|
||||
android:startOffset="?attr/motionDurationShort2"
|
||||
android:duration="?attr/motionDurationShort4"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
</set>
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationShort3"
|
||||
android:valueFrom="1.0"
|
||||
android:valueTo="0.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="?attr/motionEasingEmphasizedAccelerateInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationMedium1"
|
||||
android:valueFrom="1.0"
|
||||
android:valueTo="0.4"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="?attr/motionEasingEmphasizedAccelerateInterpolator"/>
|
||||
</set>
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationLong2"
|
||||
android:valueFrom="0.0"
|
||||
android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="?attr/motionDurationLong2"
|
||||
android:valueFrom="0.4"
|
||||
android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="?attr/motionEasingEmphasizedInterpolator"/>
|
||||
</set>
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<selector>
|
||||
|
||||
<!-- Pressed state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_pressed="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_pressed_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Hover state. This is triggered via mouse. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_hover_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Focused state. This is triggered via keyboard. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_focus_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled, not pressed) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="@integer/mtrl_btn_anim_delay_ms"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_translation_z_base"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/m3_comp_extended_fab_primary_container_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_disabled_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_disabled_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
</set>
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<selector xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Pressed state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_pressed="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_btn_pressed_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Hover state. This is triggered via mouse. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_btn_hovered_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Focused state. This is triggered via keyboard. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_btn_focused_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled, not pressed) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="@integer/mtrl_btn_anim_delay_ms"
|
||||
android:valueTo="@dimen/mtrl_btn_z"
|
||||
android:valueType="floatType"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_btn_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_btn_disabled_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_btn_disabled_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<!-- Empty state list animator to override shadow effects from default MaterialButton -->
|
||||
<selector/>
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<selector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<!-- Dragged state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
app:state_dragged="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_card_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_card_dragged_z"
|
||||
android:startDelay="@integer/mtrl_card_anim_delay_ms"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled, not Dragged) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_card_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0dp"
|
||||
android:interpolator="@anim/mtrl_card_lowers_interpolator"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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
|
||||
|
||||
https://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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Pressed state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_pressed="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_chip_pressed_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Enabled state -->
|
||||
<item android:state_enabled="true">
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_chip_anim_duration"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="width"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="height"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingStart"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingEnd"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="labelOpacity"
|
||||
android:startOffset="16"
|
||||
android:duration="33"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
</set>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="width"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="height"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingStart"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="paddingEnd"
|
||||
android:startOffset="0"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="labelOpacity"
|
||||
android:startOffset="117"
|
||||
android:duration="83"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
</set>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="75"
|
||||
android:valueFrom="1.0"
|
||||
android:valueTo="0.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="@interpolator/mtrl_linear"/>
|
||||
</set>
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="0"
|
||||
android:duration="150"
|
||||
android:valueFrom="0.0"
|
||||
android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="150"
|
||||
android:valueFrom="0.8"
|
||||
android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:interpolator="@interpolator/mtrl_linear_out_slow_in"/>
|
||||
</set>
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<selector>
|
||||
|
||||
<!-- Pressed state -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_pressed="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_translation_z_pressed"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Hover state. This is triggered via mouse. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_hovered="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_translation_z_hovered_focused"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Focused state. This is triggered via keyboard. -->
|
||||
<item
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_translation_z_hovered_focused"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Base state (enabled, not pressed) -->
|
||||
<item android:state_enabled="true">
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="@integer/mtrl_btn_anim_duration_ms"
|
||||
android:propertyName="translationZ"
|
||||
android:startDelay="@integer/mtrl_btn_anim_delay_ms"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_translation_z_base"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
<!-- Disabled state -->
|
||||
<item>
|
||||
<set>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="translationZ"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_disabled_translation_z"
|
||||
android:valueType="floatType"/>
|
||||
<objectAnimator
|
||||
android:duration="0"
|
||||
android:propertyName="elevation"
|
||||
android:valueTo="@dimen/mtrl_extended_fab_disabled_elevation"
|
||||
android:valueType="floatType"/>
|
||||
</set>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
</set>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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
|
||||
|
||||
https://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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="150"
|
||||
android:duration="15"
|
||||
android:interpolator="@interpolator/mtrl_linear"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="135"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_linear_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="iconScale"
|
||||
android:startOffset="0"
|
||||
android:duration="180"
|
||||
android:interpolator="@interpolator/mtrl_fast_out_linear_in"/>
|
||||
</set>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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
|
||||
|
||||
https://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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:propertyName="opacity"
|
||||
android:startOffset="30"
|
||||
android:duration="15"
|
||||
android:interpolator="@interpolator/mtrl_linear"/>
|
||||
<objectAnimator
|
||||
android:propertyName="scale"
|
||||
android:startOffset="0"
|
||||
android:duration="330"
|
||||
android:interpolator="@interpolator/mtrl_linear_out_slow_in"/>
|
||||
<objectAnimator
|
||||
android:propertyName="iconScale"
|
||||
android:startOffset="90"
|
||||
android:duration="240"
|
||||
android:interpolator="@interpolator/mtrl_linear_out_slow_in"/>
|
||||
</set>
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
<!-- Deprecated. Use
|
||||
com.google.android.material.transition.MaterialContainerTransform
|
||||
instead. -->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="elevation"
|
||||
android:startOffset="150"
|
||||
android:duration="150" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="translationXLinear"
|
||||
android:startOffset="0"
|
||||
android:duration="300" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationXCurveUpwards"
|
||||
android:startOffset="0"
|
||||
android:duration="255" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationXCurveDownwards"
|
||||
android:startOffset="45"
|
||||
android:duration="255" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="translationYLinear"
|
||||
android:startOffset="0"
|
||||
android:duration="300" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationYCurveUpwards"
|
||||
android:startOffset="45"
|
||||
android:duration="255" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationYCurveDownwards"
|
||||
android:startOffset="0"
|
||||
android:duration="255" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="iconFade"
|
||||
android:startOffset="150"
|
||||
android:duration="150" />
|
||||
<objectAnimator
|
||||
android:propertyName="expansion"
|
||||
android:startOffset="0"
|
||||
android:duration="180" />
|
||||
<objectAnimator
|
||||
android:propertyName="color"
|
||||
android:startOffset="60"
|
||||
android:duration="150" />
|
||||
<objectAnimator
|
||||
android:propertyName="contentFade"
|
||||
android:startOffset="0"
|
||||
android:duration="75" />
|
||||
|
||||
</set>
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
<!-- Deprecated. Use
|
||||
com.google.android.material.transition.MaterialContainerTransform
|
||||
instead. -->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="elevation"
|
||||
android:startOffset="0"
|
||||
android:duration="150" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="translationXLinear"
|
||||
android:startOffset="0"
|
||||
android:duration="345" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationXCurveUpwards"
|
||||
android:startOffset="0"
|
||||
android:duration="150" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationXCurveDownwards"
|
||||
android:startOffset="0"
|
||||
android:duration="345" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="translationYLinear"
|
||||
android:startOffset="0"
|
||||
android:duration="345" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationYCurveUpwards"
|
||||
android:startOffset="0"
|
||||
android:duration="345" />
|
||||
<objectAnimator
|
||||
android:propertyName="translationYCurveDownwards"
|
||||
android:startOffset="0"
|
||||
android:duration="150" />
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="iconFade"
|
||||
android:startOffset="0"
|
||||
android:duration="120" />
|
||||
<objectAnimator
|
||||
android:propertyName="expansion"
|
||||
android:startOffset="45"
|
||||
android:duration="255" />
|
||||
<objectAnimator
|
||||
android:propertyName="color"
|
||||
android:startOffset="75"
|
||||
android:duration="75" />
|
||||
<objectAnimator
|
||||
android:propertyName="contentFade"
|
||||
android:startOffset="150"
|
||||
android:duration="150" />
|
||||
|
||||
</set>
|
||||
Reference in New Issue
Block a user