From 7b1f7a2059ebbca6cf26af53c15c5d10898f7f80 Mon Sep 17 00:00:00 2001 From: Ztiany Date: Wed, 9 Oct 2019 16:15:54 +0800 Subject: [PATCH] optimize fragment animation --- .../main/res/anim/h_fragment_close_enter.xml | 7 ++++++- .../main/res/anim/h_fragment_close_exit.xml | 4 ++-- .../src/main/res/anim/h_fragment_open_exit.xml | 4 ++-- .../main/res/anim/v_fragment_close_enter.xml | 18 +----------------- .../main/res/anim/v_fragment_close_exit.xml | 18 +----------------- .../main/res/anim/v_fragment_open_enter.xml | 18 +----------------- .../src/main/res/anim/v_fragment_open_exit.xml | 18 +----------------- 7 files changed, 14 insertions(+), 73 deletions(-) diff --git a/lib_base/src/main/res/anim/h_fragment_close_enter.xml b/lib_base/src/main/res/anim/h_fragment_close_enter.xml index 1c1a691..16d01dd 100644 --- a/lib_base/src/main/res/anim/h_fragment_close_enter.xml +++ b/lib_base/src/main/res/anim/h_fragment_close_enter.xml @@ -1,9 +1,14 @@ - + + \ No newline at end of file diff --git a/lib_base/src/main/res/anim/h_fragment_close_exit.xml b/lib_base/src/main/res/anim/h_fragment_close_exit.xml index 9287ccd..446c4a5 100644 --- a/lib_base/src/main/res/anim/h_fragment_close_exit.xml +++ b/lib_base/src/main/res/anim/h_fragment_close_exit.xml @@ -10,11 +10,11 @@ \ No newline at end of file diff --git a/lib_base/src/main/res/anim/h_fragment_open_exit.xml b/lib_base/src/main/res/anim/h_fragment_open_exit.xml index fd600d2..a25b06c 100644 --- a/lib_base/src/main/res/anim/h_fragment_open_exit.xml +++ b/lib_base/src/main/res/anim/h_fragment_open_exit.xml @@ -5,11 +5,11 @@ + android:toXDelta="-50%p" /> + diff --git a/lib_base/src/main/res/anim/v_fragment_close_exit.xml b/lib_base/src/main/res/anim/v_fragment_close_exit.xml index ad6e77e..6600b76 100644 --- a/lib_base/src/main/res/anim/v_fragment_close_exit.xml +++ b/lib_base/src/main/res/anim/v_fragment_close_exit.xml @@ -1,20 +1,4 @@ - + diff --git a/lib_base/src/main/res/anim/v_fragment_open_enter.xml b/lib_base/src/main/res/anim/v_fragment_open_enter.xml index 7d75613..6d44348 100644 --- a/lib_base/src/main/res/anim/v_fragment_open_enter.xml +++ b/lib_base/src/main/res/anim/v_fragment_open_enter.xml @@ -1,20 +1,4 @@ - + diff --git a/lib_base/src/main/res/anim/v_fragment_open_exit.xml b/lib_base/src/main/res/anim/v_fragment_open_exit.xml index c713cdd..5975c16 100644 --- a/lib_base/src/main/res/anim/v_fragment_open_exit.xml +++ b/lib_base/src/main/res/anim/v_fragment_open_exit.xml @@ -1,20 +1,4 @@ - +