How do I make an activity full screen? I mean without the notification bar. Any ideas?
相关问题
- 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
First you must to set you app theme with "NoActionBar" like below
Then add these lines in your fullscreen activity.
It will hide actionbar/toolbar and also statusbar in your fullscreen activity
AndroidManifest.xml
I. Your main app theme is Theme.AppCompat.Light.DarkActionBar
For hide ActionBar / StatusBar
style.xml
For hide system navigation bar
II. Your main app theme is Theme.AppCompat.Light.NoActionBar
For hide ActionBar / StatusBar
style.xml
For hide system navigation bar
Similar like
Theme.AppCompat.Light.DarkActionBar
.Demo
Hope it help
After a lot of time with no success I came with my own solution which is quit similar with another developer. So If somebody needs her it is.My problem was that system navigation bar was not hiding after calling. Also in my case I needed landscape, so just in case comment that line and that all. First of all create style
This is my manifest file
This is my spalsh activity
}
And this is my main full screen activity. onSystemUiVisibilityChange thi method is quit important otherwise android main navigation bar after calling will stay and not disappear anymore. Really irritating problem, but this function solves that problem.
public class MainActivity extends AppCompatActivity {
}
This is my splash screen layout:
I hope this will help you
Inside styles.xml...
This worked for me. Hope it'll help you.
show Full Immersive:
move out of full immersive mode:
thanks for answer @Cristian i was getting error
i solved this using