Swap the navigation buttons and notification icons.
Left: BACK, HOME, RECENT, [MENU], [CLIPBOARD]. Right: NOTIFICATIONS, PANEL TRIGGER. Many Bothans participated in usability tests to bring us this change. Change-Id: I45a0847226fd6264a3d62c60001e2b906ac15133
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 646 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 646 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 331 B |
@@ -41,25 +41,11 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_toRightOf="@+id/expand"
|
||||
android:layout_toLeftOf="@+id/systemInfo"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<TextView android:id="@+id/do_not_disturb"
|
||||
style="?android:attr/textAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_marginBottom="1dip"
|
||||
android:layout_marginRight="10dip"
|
||||
android:padding="6dip"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/status_bar_do_not_disturb_button"
|
||||
/>
|
||||
|
||||
<TextView android:id="@+id/clear_all_button"
|
||||
style="?android:attr/textAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -73,23 +59,37 @@
|
||||
android:text="@string/status_bar_clear_all_button"
|
||||
/>
|
||||
|
||||
<TextView android:id="@+id/do_not_disturb"
|
||||
style="?android:attr/textAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_marginBottom="1dip"
|
||||
android:layout_marginRight="10dip"
|
||||
android:padding="6dip"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/status_bar_do_not_disturb_button"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.android.systemui.statusbar.tablet.NotificationIconArea
|
||||
android:id="@+id/notificationIcons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_toRightOf="@+id/expand"
|
||||
android:layout_toLeftOf="@+id/systemInfo"
|
||||
android:layout_toLeftOf="@+id/expand"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<view
|
||||
class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
|
||||
android:id="@+id/icons"
|
||||
<com.android.systemui.statusbar.tablet.InputMethodButton
|
||||
android:id="@+id/imeButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@*android:dimen/status_bar_icon_size"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="8dip"
|
||||
android:src="@drawable/ic_sysbar_ime_default"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
<view
|
||||
class="com.android.systemui.statusbar.tablet.NotificationIconArea$DraggerView"
|
||||
@@ -99,14 +99,12 @@
|
||||
android:background="@drawable/sysbar_hidenotification_handle"
|
||||
android:layout_marginLeft="8dip"
|
||||
/>
|
||||
<com.android.systemui.statusbar.tablet.InputMethodButton
|
||||
android:id="@+id/imeButton"
|
||||
<view
|
||||
class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
|
||||
android:id="@+id/icons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="@*android:dimen/status_bar_icon_size"
|
||||
android:layout_marginLeft="8dip"
|
||||
android:src="@drawable/ic_sysbar_ime_default"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
android:visibility="visible"
|
||||
/>
|
||||
</com.android.systemui.statusbar.tablet.NotificationIconArea>
|
||||
|
||||
@@ -115,8 +113,8 @@
|
||||
android:id="@+id/ticker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toLeftOf="@+id/systemInfo"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_toRightOf="@+id/systemInfo"
|
||||
android:paddingLeft="6dip"
|
||||
android:gravity="center_vertical"
|
||||
android:animateLayoutChanges="true"
|
||||
@@ -132,9 +130,46 @@
|
||||
android:id="@+id/navigationArea"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:src="@drawable/ic_sysbar_back"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
systemui:keyCode="4"
|
||||
/>
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/home"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:src="@drawable/ic_sysbar_home"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
systemui:keyCode="3"
|
||||
/>
|
||||
<ImageButton android:id="@+id/recent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_sysbar_recent"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
/>
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:src="@drawable/ic_sysbar_menu"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
systemui:keyCode="82"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
<com.android.systemui.statusbar.tablet.ShirtPocket
|
||||
android:id="@+id/pocket"
|
||||
android:layout_width="71dip"
|
||||
@@ -156,42 +191,6 @@
|
||||
android:gravity="center"
|
||||
/>
|
||||
</com.android.systemui.statusbar.tablet.ShirtPocket>
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_sysbar_menu"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
systemui:keyCode="82"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
<ImageButton android:id="@+id/recent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_sysbar_recent"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
/>
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/home"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:src="@drawable/ic_sysbar_home"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
systemui:keyCode="3"
|
||||
/>
|
||||
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:src="@drawable/ic_sysbar_back"
|
||||
android:background="@drawable/ic_sysbar_icon_bg"
|
||||
systemui:keyCode="4"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ public class TabletStatusBarService extends StatusBarService {
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||
| WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
lp.gravity = Gravity.BOTTOM | Gravity.LEFT;
|
||||
lp.gravity = Gravity.BOTTOM | Gravity.RIGHT;
|
||||
lp.setTitle("NotificationPanel");
|
||||
lp.windowAnimations = com.android.internal.R.style.Animation_SlidingCard;
|
||||
|
||||
|
||||