device/google/atv/overlay/frameworks/base/core/res/res/values/dimens.xml | 2 +-
frameworks/base/core/res/res/values/config.xml | 9 +-
frameworks/base/core/res/res/values/dimens.xml | 6 +-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
一、修改状态栏高度( 整个系统编译时需要修改这个生效)
diff --git a/device/google/atv/overlay/frameworks/base/core/res/res/values/dimens.xml b/device/google/atv/overlay/frameworks/base/core/res/res/values/dimens.xml
old mode 100644
new mode 100755
index 95a85df..5309198
--- a/device/google/atv/overlay/frameworks/base/core/res/res/values/dimens.xml
+++ b/device/google/atv/overlay/frameworks/base/core/res/res/values/dimens.xml
@@ -17,7 +17,7 @@
<resources>
<!-- Height of the status bar -->
- <dimen name="status_bar_height">0dp</dimen>
+ <dimen name="status_bar_height">117dp</dimen>
<!-- Height of the bottom navigation / system bar -->
<dimen name="navigation_bar_height">0dp</dimen>
二、添加状态栏图标
1.diff --git a/frameworks/base/core/res/res/values/config.xml b/frameworks/base/core/res/res/values/config.xml
old mode 100644
new mode 100755
index f76dfb2..772f9bd
--- a/frameworks/base/core/res/res/values/config.xml
+++ b/frameworks/base/core/res/res/values/config.xml
@@ -44,7 +44,14 @@
<item><xliff:g id="id">phone_signal</xliff:g></item>
<item><xliff:g id="id">battery</xliff:g></item>
<item><xliff:g id="id">alarm_clock</xliff:g></item>
- <item><xliff:g id="id">secure</xliff:g></item>
+ <item><xliff:g id="id">secure</xliff:g></item>
+
+ <item><xliff:g id="id">wifi</xliff:g></item>
+ <item><xliff:g id="id">gps</xliff:g></item>
+ <item><xliff:g id="id">h4g</xliff:g></item>
+ <item><xliff:g id="id">ble</xliff:g></item>
+ <item><xliff:g id="id">aux</xliff:g></item>
+
<item><xliff:g id="id">clock</xliff:g></item>
</string-array>
2.com\android\systemui\statusbar\phone\PhoneStatusBarPolicy.java
private static final String SLOT_WIFI = "wifi"; private static final String SLOT_GPS = "gps"; private static final String SLOT_4G = "h4g"; private static final String SLOT_BLE = "ble"; private static final String SLOT_AUX = "aux"; // WIFI mService.setIcon(SLOT_WIFI, R.drawable.ic_icon_wifi, 0, null); mService.setIconVisibility(SLOT_WIFI, false); // GPS mService.setIcon(SLOT_GPS, R.drawable.ic_icon_gps, 0, null); mService.setIconVisibility(SLOT_GPS, false); // 4g mService.setIcon(SLOT_4G, R.drawable.ic_icon_4g, 0, null); mService.setIconVisibility(SLOT_4G, false); // BLE mService.setIcon(SLOT_BLE, R.drawable.ic_icon_bluetooth, 0, null); mService.setIconVisibility(SLOT_BLE, false); // aux mService.setIcon(SLOT_AUX, R.drawable.ic_icon_aux, 0, null); mService.setIconVisibility(SLOT_AUX, false);
//true时显示,false隐藏 ,需要自备图片
三、framework修改
diff --git a/frameworks/base/core/res/res/values/dimens.xml b/frameworks/base/core/res/res/values/dimens.xml
old mode 100644
new mode 100755
index a6342c2..104d072
--- a/frameworks/base/core/res/res/values/dimens.xml
+++ b/frameworks/base/core/res/res/values/dimens.xml
@@ -31,11 +31,11 @@
<integer name="max_action_buttons">2</integer>
<dimen name="toast_y_offset">64dip</dimen>
<!-- Height of the status bar -->
- <dimen name="status_bar_height">24dp</dimen>
+ <dimen name="status_bar_height">117dp</dimen>
修改状态栏高度
<!-- Height of the bottom navigation / system bar. -->
- <dimen name="navigation_bar_height">48dp</dimen>
+ <dimen name="navigation_bar_height">0dp</dimen>
修改通知栏高度
<!-- 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">0dp</dimen>
<!-- Width of the navigation bar when it is placed vertically on the screen -->
<dimen name="navigation_bar_width">48dp</dimen>
<!-- Height of notification icons in the status bar -->