From 5438ab0e17064e20870ac893a2dd2b9e1219eef1 Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Wed, 17 Aug 2011 22:23:12 -0700 Subject: 0-click UI update o New start sound o Vibrate only when - starting send - send success - receive success o Play sound only when - starting send - send success - send failure (out of range before complete) - receive success o Introduce HoldingItWrongUi with the new image o P2pAnimationActivity -> SendUi, and a huge cleanup of it - no longer an activity. It took 350ms to inflate the views on first onCreate() as an activity, but we can cache this ahead of time as a window. - Use ObjectAnimator instead of ViewAnimator, much less code o Use ACCELEROMETER instead of GRAVITY to get faster tilt detection. TODO (in order of priority) o LLCP has started crashing a lot again. About 1/10 times I come into P2P range the stack crashes now on my Nexus S TMO. At first I thought it was because I was doing animations during LLCP send, which might affect timing to pn544 due to CPU load. So I changed my first implementation (one animation) to split it into a pre-send and post-send, so we don't do any work during the actual send. Still seems to crash though. We really need to make it solid again. o Change notification text and settings text+image as per Rachel's email o Do some simple low-pass filter on ACCELEROMETER so we don't get caught out when the user shakes the phone o Plumb through a starting receive callback, and play sound + vibrate o Prevent touch during send animations. Not a big deal right now because we complete it so fast. o Prevent notification shade from being pulled during HoldingItWrongUi and SendUi o Prevent orientation change during SendUi Change-Id: Ieec1efb741244c68270e34a712c15c58621b1446 --- res/drawable-hdpi/howto_sharetap.png | Bin 0 -> 7792 bytes res/layout/holding_it_wrong.xml | 32 ++++++++++++++++++++++++++++++++ res/layout/screenshot.xml | 20 -------------------- res/raw/start.ogg | Bin 18515 -> 23068 bytes 4 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 res/drawable-hdpi/howto_sharetap.png create mode 100644 res/layout/holding_it_wrong.xml (limited to 'res') diff --git a/res/drawable-hdpi/howto_sharetap.png b/res/drawable-hdpi/howto_sharetap.png new file mode 100644 index 0000000..b78329d Binary files /dev/null and b/res/drawable-hdpi/howto_sharetap.png differ diff --git a/res/layout/holding_it_wrong.xml b/res/layout/holding_it_wrong.xml new file mode 100644 index 0000000..4cd86ad --- /dev/null +++ b/res/layout/holding_it_wrong.xml @@ -0,0 +1,32 @@ + + + + + + + + + diff --git a/res/layout/screenshot.xml b/res/layout/screenshot.xml index 9f27b7f..e29aff4 100644 --- a/res/layout/screenshot.xml +++ b/res/layout/screenshot.xml @@ -24,29 +24,9 @@ android:adjustViewBounds="true" android:src="@drawable/p2p_bg" /> - - - - - - diff --git a/res/raw/start.ogg b/res/raw/start.ogg index baa38ba..e08e155 100644 Binary files a/res/raw/start.ogg and b/res/raw/start.ogg differ -- cgit v1.1