I want to hide status bar / notification bar in splash screen I am using
style:<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
this dose not hide the status bar, how should i do this?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I did some magic code. Buttons in the status bar can be clicked, but it's difficult. Part for 4.4 does not work well.
This is what I used and it worked perfectly.
Add this code to your activity
onCreate
beforesetContentView
:To make your activity fullscreen, add this code in
onCreate
beforesetContentView
:Try this:
You can do something like below for appropriately setting theme on your particular activity -
For Kotlin users.
In
styles.xml
add new style:Now in
AndroidManifest.xml
add newly created style:Finally in
MainActivity.kt
make following changes:Now the status bar should be gone: