diff options
Diffstat (limited to 'packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml')
-rw-r--r-- | packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml | 211 |
1 files changed, 114 insertions, 97 deletions
diff --git a/packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml b/packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml index 884a473..3e085f3 100644 --- a/packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml +++ b/packages/SystemUI/res/layout-xlarge/sysbar_panel_notifications.xml @@ -21,118 +21,135 @@ <!-- android:background="@drawable/status_bar_closed_default_background" --> <com.android.systemui.statusbar.tablet.NotificationPanel xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:background="@*android:drawable/dialog_full_holo_dark" - android:orientation="vertical" + android:layout_height="match_parent" + android:layout_width="wrap_content" android:animateLayoutChanges="true" + android:background="@drawable/bg_scrim_notification" + android:paddingLeft="140dp" + android:paddingBottom="32dp" > - <com.android.systemui.statusbar.policy.Clock - android:id="@+id/clock" + <com.android.systemui.statusbar.tablet.NotificationTitleArea + android:id="@+id/title_area" android:layout_height="wrap_content" - android:layout_width="match_parent" - android:layout_alignParentTop="true" - android:gravity="right" - /> + android:layout_width="384dp" + android:layout_above="@+id/content_frame" + android:layout_marginLeft="16dp" + android:paddingBottom="16dp" + android:orientation="vertical" + android:animateLayoutChanges="true" + > - <com.android.systemui.statusbar.policy.DateView - android:id="@+id/date" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:layout_below="@id/clock" - android:gravity="right" - /> + <com.android.systemui.statusbar.policy.Clock + android:id="@+id/clock" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_alignParentTop="true" + android:layout_marginRight="48dp" + android:textSize="70sp" + android:gravity="right" + /> - <ImageView - android:id="@+id/settings_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@id/date" - android:layout_alignParentRight="true" - android:paddingRight="10dp" - android:src="@drawable/ic_sysbar_quicksettings" - android:baseline="17dp" - /> + <com.android.systemui.statusbar.policy.DateView + android:id="@+id/date" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_below="@id/clock" + android:layout_marginRight="48dp" + android:gravity="right" + /> - <ImageView - android:id="@+id/notification_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@id/settings_button" - android:layout_alignParentRight="true" - android:paddingRight="10dp" - android:visibility="invisible" - android:src="@drawable/status_bar_veto" - android:baseline="17dp" - /> + <ImageView + android:id="@+id/battery" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/date" + android:layout_marginTop="16dp" + android:layout_marginLeft="48dp" + android:src="@drawable/ic_sysbar_battery_mini" + android:baseline="17dp" + /> - <ImageView - android:id="@+id/battery" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:layout_alignParentLeft="true" - android:layout_alignBaseline="@id/settings_button" - android:src="@drawable/ic_sysbar_battery_mini" - android:baseline="17dp" - /> + <TextView + android:id="@+id/battery_text" + android:layout_width="48dp" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/battery" + android:layout_alignBaseline="@id/battery" + android:singleLine="true" + android:text="@string/system_panel_settings_button" + /> - <TextView - android:id="@+id/battery_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_toRightOf="@id/battery" - android:layout_alignBaseline="@id/settings_button" - android:singleLine="true" - android:text="@string/system_panel_settings_button" - /> + <ImageView + android:id="@+id/network" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_toRightOf="@id/battery_text" + android:layout_alignBaseline="@id/battery" + android:src="@drawable/ic_sysbar_wifi_mini" + android:baseline="21dp" + /> - <ImageView - android:id="@+id/network" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:layout_toRightOf="@id/battery_text" - android:layout_alignBaseline="@id/settings_button" - android:src="@drawable/ic_sysbar_wifi_mini" - android:baseline="21dp" - /> + <TextView + android:id="@+id/network_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/network" + android:layout_alignBaseline="@id/battery" + android:singleLine="true" + android:text="@string/system_panel_settings_button" + /> - <TextView - android:id="@+id/network_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_toRightOf="@id/network" - android:layout_alignBaseline="@id/settings_button" - android:singleLine="true" - android:text="@string/system_panel_settings_button" - /> + <ImageView + android:id="@+id/settings_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@id/battery" + android:paddingRight="16dp" + android:src="@drawable/ic_sysbar_quicksettings" + android:baseline="17dp" + /> - <FrameLayout - android:id="@+id/settings_frame" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:layout_below="@id/settings_button" - /> + <ImageView + android:id="@+id/notification_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@id/battery" + android:paddingRight="16dp" + android:visibility="invisible" + android:src="@drawable/status_bar_veto" + android:baseline="17dp" + /> + </com.android.systemui.statusbar.tablet.NotificationTitleArea> - <ScrollView - android:id="@+id/notificationScroller" + <FrameLayout + android:id="@+id/content_frame" android:layout_height="wrap_content" - android:layout_width="match_parent" - android:layout_below="@id/settings_button" + android:layout_width="400dp" + android:layout_alignParentBottom="true" > - <LinearLayout - android:id="@+id/content" - android:layout_width="match_parent" + <ScrollView + android:id="@+id/notificationScroller" android:layout_height="wrap_content" - android:gravity="center_horizontal|bottom" - android:animateLayoutChanges="true" - android:animationCache="false" - android:orientation="vertical" - android:background="@drawable/status_bar_background" - android:clickable="true" - android:focusable="true" - android:descendantFocusability="afterDescendants" + android:layout_width="match_parent" > - </LinearLayout> - </ScrollView> + <LinearLayout + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal|bottom" + android:animateLayoutChanges="true" + android:animationCache="false" + android:orientation="vertical" + android:background="@drawable/status_bar_background" + android:clickable="true" + android:focusable="true" + android:descendantFocusability="afterDescendants" + > + </LinearLayout> + </ScrollView> + </FrameLayout> </com.android.systemui.statusbar.tablet.NotificationPanel> |