这是什么原因呀? 想做横屏时全屏,导航栏和状态栏不显示,但位置还在,结构:DrawerLayout > FrameLayout > WebView 直接用的getWindow().getDecorView().setSystemUiVisibility()设置的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 顶部绿色栏?1:webView加载的url有没有2: android:theme="@style/AppTheme",theme是否用错3:全屏--getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 1、首先去掉标题栏<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:windowActionBar">true</item> <item name="android:windowNoTitle">true</item> </style>2、状态栏透明getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); //需要设置这个flag contentView才能延伸到状态栏 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); //状态栏覆盖在contentView上面,设置透明使contentView的背景透出来 getWindow().setStatusBarColor(Color.TRANSPARENT); 请教,android中sd卡,读取文件夹问题 NDK gdb设置断点的时候总是显示No line * in file..... android怎么30秒刷新一次数据 MediaPlayer 播放视频旋转问题 菜鸟提问——按钮跳转界面问题 求助:关于rexsee的下载功能 Android2.1版本程序没有错误但运行不起来 Tabhost跳到新activity后返回刷新问题 fragment示例运行不了 Android 这种效果怎么实现的啊? 错误: 不兼容的类型: int[]无法转换为int 开发源码
1:webView加载的url有没有
2: android:theme="@style/AppTheme",theme是否用错
3:全屏--getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowActionBar">true</item>
<item name="android:windowNoTitle">true</item>
</style>
2、状态栏透明getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//需要设置这个flag contentView才能延伸到状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
//状态栏覆盖在contentView上面,设置透明使contentView的背景透出来
getWindow().setStatusBarColor(Color.TRANSPARENT);