Merge "Make the vertical navbar 48dp like the horizontal one." into mnc-dr-dev
@@ -37,7 +37,7 @@
|
|||||||
<!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
|
<!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
|
||||||
<dimen name="navigation_bar_height_landscape">48dp</dimen>
|
<dimen name="navigation_bar_height_landscape">48dp</dimen>
|
||||||
<!-- Width of the navigation bar when it is placed vertically on the screen -->
|
<!-- Width of the navigation bar when it is placed vertically on the screen -->
|
||||||
<dimen name="navigation_bar_width">42dp</dimen>
|
<dimen name="navigation_bar_width">48dp</dimen>
|
||||||
<!-- Height of notification icons in the status bar -->
|
<!-- Height of notification icons in the status bar -->
|
||||||
<dimen name="status_bar_icon_size">24dip</dimen>
|
<dimen name="status_bar_icon_size">24dip</dimen>
|
||||||
<!-- Size of the giant number (unread count) in the notifications -->
|
<!-- Size of the giant number (unread count) in the notifications -->
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 942 B |
|
Before Width: | Height: | Size: 780 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1015 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1007 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 613 B |
|
Before Width: | Height: | Size: 698 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 838 B |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 919 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -213,7 +213,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
android:contentDescription="@string/accessibility_menu"
|
android:contentDescription="@string/accessibility_menu"
|
||||||
android:src="@drawable/ic_sysbar_menu_land"
|
android:src="@drawable/ic_sysbar_menu"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:layout_gravity="top"
|
android:layout_gravity="top"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
|
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
|
||||||
android:layout_height="@dimen/navigation_key_width"
|
android:layout_height="@dimen/navigation_key_width"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:src="@drawable/ic_sysbar_recent_land"
|
android:src="@drawable/ic_sysbar_recent"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:contentDescription="@string/accessibility_recent"
|
android:contentDescription="@string/accessibility_recent"
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
|
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
|
||||||
android:layout_height="@dimen/navigation_key_width"
|
android:layout_height="@dimen/navigation_key_width"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:src="@drawable/ic_sysbar_home_land"
|
android:src="@drawable/ic_sysbar_home"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
systemui:keyCode="3"
|
systemui:keyCode="3"
|
||||||
systemui:keyRepeat="false"
|
systemui:keyRepeat="false"
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
|
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
|
||||||
android:layout_height="@dimen/navigation_key_width"
|
android:layout_height="@dimen/navigation_key_width"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:src="@drawable/ic_sysbar_back_land"
|
android:src="@drawable/ic_sysbar_back"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
systemui:keyCode="4"
|
systemui:keyCode="4"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
|
|||||||
@@ -257,11 +257,11 @@ public class NavigationBarView extends LinearLayout {
|
|||||||
|
|
||||||
private void getIcons(Resources res) {
|
private void getIcons(Resources res) {
|
||||||
mBackIcon = res.getDrawable(R.drawable.ic_sysbar_back);
|
mBackIcon = res.getDrawable(R.drawable.ic_sysbar_back);
|
||||||
mBackLandIcon = res.getDrawable(R.drawable.ic_sysbar_back_land);
|
mBackLandIcon = mBackIcon;
|
||||||
mBackAltIcon = res.getDrawable(R.drawable.ic_sysbar_back_ime);
|
mBackAltIcon = res.getDrawable(R.drawable.ic_sysbar_back_ime);
|
||||||
mBackAltLandIcon = res.getDrawable(R.drawable.ic_sysbar_back_ime_land);
|
mBackAltLandIcon = mBackAltIcon;
|
||||||
mRecentIcon = res.getDrawable(R.drawable.ic_sysbar_recent);
|
mRecentIcon = res.getDrawable(R.drawable.ic_sysbar_recent);
|
||||||
mRecentLandIcon = res.getDrawable(R.drawable.ic_sysbar_recent_land);
|
mRecentLandIcon = mRecentIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||