From 9ec59148a926a5c8e5fecfbb64b6418d1dbb852d Mon Sep 17 00:00:00 2001 From: cyberta Date: Fri, 2 Dec 2022 15:37:59 +0100 Subject: implement transition animation between connected and disconnected state for RiseupVPn --- .../state_transition_connceted_disconnected.xml | 4 + app/src/custom/res/drawable/state_connected.xml | 30 +++++--- app/src/custom/res/drawable/state_disconnected.xml | 22 ++++-- .../state_transition_connected_disconnected.xml | 89 ++++++++++++++++++++++ 4 files changed, 129 insertions(+), 16 deletions(-) create mode 100644 app/src/custom/res/animator/state_transition_connceted_disconnected.xml create mode 100644 app/src/custom/res/drawable/state_transition_connected_disconnected.xml (limited to 'app/src/custom/res') diff --git a/app/src/custom/res/animator/state_transition_connceted_disconnected.xml b/app/src/custom/res/animator/state_transition_connceted_disconnected.xml new file mode 100644 index 00000000..751d2da5 --- /dev/null +++ b/app/src/custom/res/animator/state_transition_connceted_disconnected.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/app/src/custom/res/drawable/state_connected.xml b/app/src/custom/res/drawable/state_connected.xml index c9854d69..e0a9005f 100644 --- a/app/src/custom/res/drawable/state_connected.xml +++ b/app/src/custom/res/drawable/state_connected.xml @@ -3,13 +3,25 @@ android:viewportHeight="220" android:width="166dp" android:height="220dp"> - - - + + + + + + + + \ No newline at end of file diff --git a/app/src/custom/res/drawable/state_disconnected.xml b/app/src/custom/res/drawable/state_disconnected.xml index 3d3660b8..7c49a537 100644 --- a/app/src/custom/res/drawable/state_disconnected.xml +++ b/app/src/custom/res/drawable/state_disconnected.xml @@ -1,9 +1,17 @@ - + android:viewportWidth="166" + android:viewportHeight="220" + android:width="166dp" + android:height="220dp"> + + + + \ No newline at end of file diff --git a/app/src/custom/res/drawable/state_transition_connected_disconnected.xml b/app/src/custom/res/drawable/state_transition_connected_disconnected.xml new file mode 100644 index 00000000..0496e729 --- /dev/null +++ b/app/src/custom/res/drawable/state_transition_connected_disconnected.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3