Android 完全阻止标题栏向下滑动
使用Android 完全阻止标题栏向下滑动,android,android-actionbar,customization,Android,Android Actionbar,Customization,使用android:theme=“@android:style/theme.Holo.Light.NoActionBar.Fullscreen” 应用程序隐藏标题栏并使用 WindowManager manager = ((WindowManager) getApplicationContext() .getSystemService(Context.WINDOW_SERVICE)); customViewGroup view = new customViewGrou
android:theme=“@android:style/theme.Holo.Light.NoActionBar.Fullscreen”
应用程序隐藏标题栏并使用
WindowManager manager = ((WindowManager) getApplicationContext()
.getSystemService(Context.WINDOW_SERVICE));
customViewGroup view = new customViewGroup(this);
manager.addView(view, localLayoutParams);
我可以覆盖通知栏。
但是我想删除完整的标题栏+通知栏我在systemUI应用程序布局文件“super\u status\u bar.xml”中做了一些有趣的更改
面板支架用于通知托盘
我知道这是个坏把戏,但它奏效了:)
<include layout="@layout/status_bar"
android:layout_width="match_parent"
android:layout_height="1dp"
/>
<com.android.systemui.statusbar.phone.PanelHolder
android:id="@+id/panel_holder"
android:layout_width="match_parent"
android:layout_height="1dp"
>