这是什么原因呀? 想做横屏时全屏,导航栏和状态栏不显示,但位置还在,结构: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); 发个小贴!共享点资料!无需下载分! 求助:提取了一段vcard的字符串。想调用系统的流程讲vcard变成一个联系人存下去 清除WebView的缓存 如何搭建Android的开发环境啊。 LocationListener无法触发onStatusChanged事件 求助!listview中的imageview如何实现点击小图片显示大图片? 急!!取mac地址有时候能取到,有时候取不到?望高手们指点 jni里能否调用纯C/c++的so库吗? 请教android串口通讯的问题 Fragment里面怎么用ListView 错误: 不兼容的类型: 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);