Final Version

This commit is contained in:
h4h13 2018-11-23 22:03:04 +05:30
parent 05b41fa07a
commit 4de14fcc4a
13314 changed files with 577747 additions and 744 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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/>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -0,0 +1,68 @@
<?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="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>

View file

@ -0,0 +1,68 @@
<?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="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>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="translationY"
android:valueType="floatType"
android:valueFrom="0"
android:valueTo="1280"
android:duration="@android:integer/config_mediumAnimTime"/>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
</set>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="translationY"
android:valueType="floatType"
android:valueFrom="1280"
android:valueTo="0"
android:duration="@android:integer/config_mediumAnimTime"/>