diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-05-15 03:09:01 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-05-17 02:01:41 +0200 |
commit | 069cd03740312159faf24a01910ff1daeae93131 (patch) | |
tree | 14b73afba0af149a5a9065cf69308ab1ce298d54 /packages/SystemUI/res/values-sw720dp | |
parent | c5baa188068bac4c71ffdca62f09134a59f87454 (diff) | |
download | frameworks_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.xml | 4 | ||||
-rw-r--r-- | packages/SystemUI/res/values-sw720dp/dimens.xml | 6 |
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> |