From b02e338b49504079ab83ec45296d16d5d65e446f Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 2 Feb 2013 02:21:20 +0100 Subject: [PATCH] Add animation when switching from message list to message view --- res/anim/slide_in_left.xml | 13 ++++ res/anim/slide_in_right.xml | 13 ++++ res/anim/slide_out_left.xml | 13 ++++ res/anim/slide_out_right.xml | 13 ++++ res/layout/message_list.xml | 17 +++++ res/layout/split_message_list.xml | 1 - src/com/fsck/k9/activity/MessageList.java | 60 ++++++++--------- src/com/fsck/k9/view/ViewSwitcher.java | 78 +++++++++++++++++++++++ 8 files changed, 178 insertions(+), 30 deletions(-) create mode 100644 res/anim/slide_in_left.xml create mode 100644 res/anim/slide_in_right.xml create mode 100644 res/anim/slide_out_left.xml create mode 100644 res/anim/slide_out_right.xml create mode 100644 res/layout/message_list.xml create mode 100644 src/com/fsck/k9/view/ViewSwitcher.java diff --git a/res/anim/slide_in_left.xml b/res/anim/slide_in_left.xml new file mode 100644 index 000000000..21834d200 --- /dev/null +++ b/res/anim/slide_in_left.xml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/res/anim/slide_in_right.xml b/res/anim/slide_in_right.xml new file mode 100644 index 000000000..5eb0f6b18 --- /dev/null +++ b/res/anim/slide_in_right.xml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/res/anim/slide_out_left.xml b/res/anim/slide_out_left.xml new file mode 100644 index 000000000..6d9636735 --- /dev/null +++ b/res/anim/slide_out_left.xml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/res/anim/slide_out_right.xml b/res/anim/slide_out_right.xml new file mode 100644 index 000000000..1fafb2534 --- /dev/null +++ b/res/anim/slide_out_right.xml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout/message_list.xml b/res/layout/message_list.xml new file mode 100644 index 000000000..826c6c2c1 --- /dev/null +++ b/res/layout/message_list.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/res/layout/split_message_list.xml b/res/layout/split_message_list.xml index 0477b3915..2d73c0168 100644 --- a/res/layout/split_message_list.xml +++ b/res/layout/split_message_list.xml @@ -18,7 +18,6 @@ android:layout_width="1px" android:layout_height="fill_parent" android:background="?attr/messageListDividerColor" - android:visibility="gone" tools:ignore="PxUsage" />