From c1f72f9169da78e1cab09d01912d0124fef3b6ee Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 19 Nov 2015 20:37:31 -0800 Subject: [PATCH] Allow animation movie for "find the sensor" flow This adds an optional overlay to specify a per-device movie to illustrate enrolling a fingerprint. To enable, create a new layout overlay for fingerprint_enroll_find_sensor_graphic.xml using FingerprintLocationAnimationVideoView Fixes bug 22954305 Change-Id: I59294f71617ecf7a9bf09603fc0b068cc5aa8ff9 --- .../fingerprint_enroll_find_sensor_base.xml | 66 ++++----- res/raw/fingerprint_location_animation.mp4 | 0 .../FingerprintEnrollFindSensor.java | 4 +- .../FingerprintFindSensorAnimation.java | 35 +++++ ...FingerprintLocationAnimationVideoView.java | 125 ++++++++++++++++++ .../FingerprintLocationAnimationView.java | 5 +- 6 files changed, 200 insertions(+), 35 deletions(-) create mode 100644 res/raw/fingerprint_location_animation.mp4 create mode 100644 src/com/android/settings/fingerprint/FingerprintFindSensorAnimation.java create mode 100644 src/com/android/settings/fingerprint/FingerprintLocationAnimationVideoView.java diff --git a/res/layout/fingerprint_enroll_find_sensor_base.xml b/res/layout/fingerprint_enroll_find_sensor_base.xml index f65e932e1b5..3f69a0adff4 100644 --- a/res/layout/fingerprint_enroll_find_sensor_base.xml +++ b/res/layout/fingerprint_enroll_find_sensor_base.xml @@ -22,48 +22,50 @@ android:layout_height="match_parent" style="?attr/fingerprint_layout_theme"> - - - - - - - + android:layout_height="match_parent" + android:layout_gravity="center_horizontal|bottom"/> -