optimize fragment animation

androidx
Ztiany 5 years ago
parent 2e89356efe
commit 7b1f7a2059
  1. 7
      lib_base/src/main/res/anim/h_fragment_close_enter.xml
  2. 4
      lib_base/src/main/res/anim/h_fragment_close_exit.xml
  3. 4
      lib_base/src/main/res/anim/h_fragment_open_exit.xml
  4. 18
      lib_base/src/main/res/anim/v_fragment_close_enter.xml
  5. 18
      lib_base/src/main/res/anim/v_fragment_close_exit.xml
  6. 18
      lib_base/src/main/res/anim/v_fragment_open_enter.xml
  7. 18
      lib_base/src/main/res/anim/v_fragment_open_exit.xml

@ -1,9 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300">
<translate
android:fromXDelta="-26%p"
android:toXDelta="0" />
<alpha
android:toAlpha="1"
android:fromAlpha="0.5" />
</set>

@ -10,11 +10,11 @@
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.9"
android:toAlpha="0.5"
android:fillEnabled="true"
android:fillBefore="false"
android:fillAfter="true"
android:interpolator="@android:anim/decelerate_interpolator"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300" />
</set>

@ -5,11 +5,11 @@
<translate
android:fromXDelta="0%p"
android:toXDelta="-26%p" />
android:toXDelta="-50%p" />
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.3"
android:toAlpha="0"
android:fillEnabled="true"
android:fillBefore="false"
android:fillAfter="true"

@ -1,20 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
/*
** Copyright 2009, 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.
*/
-->
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:zAdjustment="normal">

@ -1,20 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
/*
** Copyright 2009, 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.
*/
-->
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false"
android:zAdjustment="top">

@ -1,20 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
/*
** Copyright 2009, 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.
*/
-->
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false"
android:zAdjustment="top">

@ -1,20 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
/*
** Copyright 2009, 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.
*/
-->
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:zAdjustment="normal">

Loading…
Cancel
Save