在Android4.0 (API Level 14)及更高版本号中。System Bar由Status Bar<位于顶部>和Navigation Bar<位于底部>组成。

    在Android的官方站点已经具体解说了怎样Hdie Status Bar和Navigation Bar。

    本文化讲述怎样在系统中Hide Status Bar和Navigation Bar,使之永远不会出现。本文以Android 4.4.2为例。

   系统去掉 Android 4.4.2 的StatusBar和NavigationBar

    上图中的1为:StatusBar

    上图中的2为:NavigationBar


2. 系统Hide Status Bar

    frameworks/base/core/res/res/values/dimens.xml

   把  <dimen name="status_bar_height">25dip</dimen> 改动为<dimen name="status_bar_height">0dip</dimen>

3. 系统Hide Navigation Bar

       frameworks/base/packages/SystemUI/src/com/android/systemui/

         statusbar/phone/PhoneStatusBar.java

       在start函数中凝视掉 "addNavigationBar();"




相关文章:

  • 2022-12-23
  • 2021-04-17
  • 2021-07-31
  • 2021-12-30
  • 2021-05-08
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-04-08
  • 2021-07-22
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案