完全阻止标题栏向下滑动android
completely block title bar from sliding down android
和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_status_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"
>
面板支架用于通知托盘
我知道这是个坏把戏,但它奏效了:)
和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_status_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"
>
面板支架用于通知托盘
我知道这是个坏把戏,但它奏效了:)