diff options
author | d34d <clark@cyngn.com> | 2016-06-23 11:21:45 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2016-06-30 10:04:31 -0700 |
commit | e40a0c583c91fc2175a1813d5ed42ee2a3ce93ef (patch) | |
tree | a3806008390dffb5835bfa1b33e06fd3e4deadab /res/layout | |
parent | 58cdd7495b6cdd5c67947e978189749d81f4a11f (diff) | |
download | packages_apps_Settings-e40a0c583c91fc2175a1813d5ed42ee2a3ce93ef.zip packages_apps_Settings-e40a0c583c91fc2175a1813d5ed42ee2a3ce93ef.tar.gz packages_apps_Settings-e40a0c583c91fc2175a1813d5ed42ee2a3ce93ef.tar.bz2 |
fingerpint: Allow devices to configure sensor location
The text for enrolling a fingerprint always assumes the sensor is
located on the back. This patch adds a config integer that defines
where the sensor is located on the device.
0 = back
1 = front
2 = left side
3 = right side
This patch also adds a new drawable that shows the front of the device
when applicable.
Change-Id: Ia8f5f8ff4ba4d13d35aed3052f60ff665dd4f294
TICKET: CYNGNOS-3089
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/fingerprint_enroll_find_sensor_base.xml | 1 | ||||
-rw-r--r-- | res/layout/fingerprint_enroll_find_sensor_graphic.xml | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/res/layout/fingerprint_enroll_find_sensor_base.xml b/res/layout/fingerprint_enroll_find_sensor_base.xml index f65e932..6b2f385 100644 --- a/res/layout/fingerprint_enroll_find_sensor_base.xml +++ b/res/layout/fingerprint_enroll_find_sensor_base.xml @@ -32,6 +32,7 @@ <TextView style="@style/TextAppearance.FingerprintMessage" + android:id="@+id/find_sensor_message" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/suw_description_margin_top" diff --git a/res/layout/fingerprint_enroll_find_sensor_graphic.xml b/res/layout/fingerprint_enroll_find_sensor_graphic.xml index 1c6ab80..14343e1 100644 --- a/res/layout/fingerprint_enroll_find_sensor_graphic.xml +++ b/res/layout/fingerprint_enroll_find_sensor_graphic.xml @@ -28,6 +28,15 @@ android:src="@drawable/fingerprint_sensor_location" android:scaleType="centerInside"/> + <ImageView + android:id="@+id/fingerprint_sensor_location_front_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:contentDescription="@string/security_settings_fingerprint_enroll_find_sensor_content_description" + android:src="@drawable/fingerprint_sensor_location_front_overlay" + android:scaleType="centerInside" + android:visibility="gone"/> + <com.android.settings.fingerprint.FingerprintLocationAnimationView android:id="@+id/fingerprint_sensor_location_animation" android:layout_width="match_parent" |