From 0d81e44b5ca1d363ddfde32ad0d833e429e33af1 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Sun, 7 Apr 2013 13:33:43 +0200 Subject: Overhaul auto-brightness level UI. This changes a few things: - Don't imply a 'bucket' type of algorithm is used by showing an ambient brightness range for each line - Allow manually entering the screen brightness - Add a preview window for the cubic spline interpolation - Add a help text JIRA:CYAN-612 Change-Id: I64274280872b9fe4f6fdc368d654aca81e0a4e0c --- res/layout/auto_brightness_help.xml | 27 ++++++++++++ res/layout/auto_brightness_level_setup.xml | 61 ++++++++++++++++++++++++++++ res/layout/auto_brightness_lux_config.xml | 50 ----------------------- res/layout/auto_brightness_preview.xml | 37 +++++++++++++++++ res/layout/dialog_auto_brightness_levels.xml | 42 ++++++++++++++----- 5 files changed, 157 insertions(+), 60 deletions(-) create mode 100644 res/layout/auto_brightness_help.xml create mode 100644 res/layout/auto_brightness_level_setup.xml delete mode 100644 res/layout/auto_brightness_lux_config.xml create mode 100644 res/layout/auto_brightness_preview.xml (limited to 'res/layout') diff --git a/res/layout/auto_brightness_help.xml b/res/layout/auto_brightness_help.xml new file mode 100644 index 0000000..21daa92 --- /dev/null +++ b/res/layout/auto_brightness_help.xml @@ -0,0 +1,27 @@ + + + + + + + + diff --git a/res/layout/auto_brightness_level_setup.xml b/res/layout/auto_brightness_level_setup.xml new file mode 100644 index 0000000..72d7e99 --- /dev/null +++ b/res/layout/auto_brightness_level_setup.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/auto_brightness_lux_config.xml b/res/layout/auto_brightness_lux_config.xml deleted file mode 100644 index 8d411bc..0000000 --- a/res/layout/auto_brightness_lux_config.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - diff --git a/res/layout/auto_brightness_preview.xml b/res/layout/auto_brightness_preview.xml new file mode 100644 index 0000000..d1a5fc1 --- /dev/null +++ b/res/layout/auto_brightness_preview.xml @@ -0,0 +1,37 @@ + + + + + + + + diff --git a/res/layout/dialog_auto_brightness_levels.xml b/res/layout/dialog_auto_brightness_levels.xml index a3f0afd..9e973e8 100644 --- a/res/layout/dialog_auto_brightness_levels.xml +++ b/res/layout/dialog_auto_brightness_levels.xml @@ -18,25 +18,47 @@ android:layout_width="match_parent" android:layout_height="match_parent" > - + android:orientation="vertical" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="end" + android:dividerPadding="0dip"> - + + + + + + + + + -- cgit v1.1