diff options
author | Daniel Sandler <dsandler@android.com> | 2012-10-16 21:30:28 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-10-16 23:21:26 -0400 |
commit | 3679bf58fb2f59745b416b26126b7e2a673c54d8 (patch) | |
tree | 18fc35f441310079418c15bfc0183bddcbb74f06 /packages/SystemUI/res/layout/status_bar_expanded_header.xml | |
parent | fe3376b41aa48b6894afad9b977170bc658a6ac1 (diff) | |
download | frameworks_base-3679bf58fb2f59745b416b26126b7e2a673c54d8.zip frameworks_base-3679bf58fb2f59745b416b26126b7e2a673c54d8.tar.gz frameworks_base-3679bf58fb2f59745b416b26126b7e2a673c54d8.tar.bz2 |
Quickening.
+ Baseline align all header elements.
+ Make clock clickable.
+ Remove clock tile.
+ Reorder tiles.
+ Hide status bar behind panel on phones.
+ Make status bar peek animation show the whole header on phones.
+ Stop hiding status bar bits on phones.
Bug: 7350584 // baseline align header, make clock clickable,
Bug: 7351760 // hide status bar behind panel
Change-Id: I888752b64c56e80c3f5581fd8ee1cfd7c50eab7c
Diffstat (limited to 'packages/SystemUI/res/layout/status_bar_expanded_header.xml')
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_expanded_header.xml | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_expanded_header.xml b/packages/SystemUI/res/layout/status_bar_expanded_header.xml index c13405a..03f03e2 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded_header.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded_header.xml @@ -20,37 +20,40 @@ xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" android:id="@+id/header" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="@dimen/notification_panel_header_height" android:background="@drawable/notification_header_bg" android:orientation="horizontal" android:gravity="center_vertical" android:baselineAligned="false" > - <LinearLayout + <RelativeLayout + android:id="@+id/datetime" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="horizontal" + android:layout_height="match_parent" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:background="@drawable/ic_notify_button_bg" + android:enabled="false" > <com.android.systemui.statusbar.policy.Clock android:id="@+id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" - android:gravity="bottom" + android:layout_centerVertical="true" /> <com.android.systemui.statusbar.policy.DateView android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" - android:gravity="bottom" + android:layout_toRightOf="@id/clock" + android:layout_alignBaseline="@id/clock" /> - </LinearLayout> + </RelativeLayout> <Space android:layout_width="0dp" |