summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/values-sw720dp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-05-15 03:09:01 +0200
committerJorim Jaggi <jjaggi@google.com>2014-05-17 02:01:41 +0200
commit069cd03740312159faf24a01910ff1daeae93131 (patch)
tree14b73afba0af149a5a9065cf69308ab1ce298d54 /packages/SystemUI/res/values-sw720dp
parentc5baa188068bac4c71ffdca62f09134a59f87454 (diff)
downloadframeworks_base-069cd03740312159faf24a01910ff1daeae93131.zip
frameworks_base-069cd03740312159faf24a01910ff1daeae93131.tar.gz
frameworks_base-069cd03740312159faf24a01910ff1daeae93131.tar.bz2
Position clock and notifications dynamically.
The positioning is dependant on how many notifications are currently showing. This makes sure that the lockscreen always looks balanced and harmonic. Bug: 14592994 Change-Id: Ic647b887dd23e6cc5ecd07d70f279ff2f218f4ca
Diffstat (limited to 'packages/SystemUI/res/values-sw720dp')
-rw-r--r--packages/SystemUI/res/values-sw720dp/config.xml4
-rw-r--r--packages/SystemUI/res/values-sw720dp/dimens.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values-sw720dp/config.xml b/packages/SystemUI/res/values-sw720dp/config.xml
index 7cf711a..d8bb8d7d 100644
--- a/packages/SystemUI/res/values-sw720dp/config.xml
+++ b/packages/SystemUI/res/values-sw720dp/config.xml
@@ -35,5 +35,9 @@
<!-- Transposes the search bar layout in landscape -->
<bool name="recents_transpose_search_layout_with_orientation">false</bool>
+
+ <!-- The maximum count of notifications on Keyguard. The rest will be collapsed in an overflow
+ card. -->
+ <integer name="keyguard_max_notification_count">5</integer>
</resources>
diff --git a/packages/SystemUI/res/values-sw720dp/dimens.xml b/packages/SystemUI/res/values-sw720dp/dimens.xml
index a1c5b66..7695b12 100644
--- a/packages/SystemUI/res/values-sw720dp/dimens.xml
+++ b/packages/SystemUI/res/values-sw720dp/dimens.xml
@@ -65,5 +65,11 @@
<!-- Where to place the app icon over the thumbnail -->
<dimen name="status_bar_recents_app_icon_left_margin">0dp</dimen>
<dimen name="status_bar_recents_app_icon_top_margin">8dp</dimen>
+
+ <!-- The fraction of the screen height where the clock on the Keyguard has its center. The
+ max value is used when no notifications are displaying, and the min value is when the
+ highest possible number of notifications are showing. -->
+ <fraction name="keyguard_clock_y_fraction_max">35%</fraction>
+ <fraction name="keyguard_clock_y_fraction_min">25%</fraction>
</resources>