summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2011-08-01 17:39:18 -0700
committerMartijn Coenen <maco@google.com>2011-08-02 12:55:59 -0700
commit84b7f15e1a51c3ddd801aaf35bd5c7033e976d61 (patch)
tree65b75ce1fcb6e956ab2a8fe81033af6f0f8fd90c /res/layout
parent5ce39aec169a275e814286372256277819593829 (diff)
downloadpackages_apps_nfc-84b7f15e1a51c3ddd801aaf35bd5c7033e976d61.zip
packages_apps_nfc-84b7f15e1a51c3ddd801aaf35bd5c7033e976d61.tar.gz
packages_apps_nfc-84b7f15e1a51c3ddd801aaf35bd5c7033e976d61.tar.bz2
Animations for 0-click send success / failure.
This implements the following behavior: - The first part of the animation (the screen scaling down) is always played and finished. - Depending on the result, the following animation will either pop the screen back to front (failure), or "clone and swap" (success). Both animations will be fully played, except if there is a new start() request, in which case they are ended immediately. The main reason to fully play both animations is that the LLCP transfer typically completes very quickly, and with me profile removed, none of the animations would ever be visible. I think the animations are short enough not to be annoying, but we can tweak depending on user feedback. Change-Id: Iecd883fec43fad3eeb35f03b6076562b36a10fef
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/screenshot.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/res/layout/screenshot.xml b/res/layout/screenshot.xml
index ee091cb..dc34ba3 100644
--- a/res/layout/screenshot.xml
+++ b/res/layout/screenshot.xml
@@ -18,7 +18,11 @@
android:layout_height="match_parent"
android:background="#FF000000"
>
-
+ <ImageView android:id="@+id/clone"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:adjustViewBounds="true"
+ />
<ImageView android:id="@+id/screenshot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"