Android actionbaractivity setting full screen untitled implementation method summary
Android actionbaractivity setting full screen untitled implementation method summary
preface:
The new activity inherits from actionbaractivity. It is easy to set the full screen without title, but I didn't expect the app to hang for no reason, either white or black. Pit me for more than an hour!!!
The reason is that when setting theme for actionbaractivity, you can only use the theme starting with theme. Appcompat * * in V7 package. Therefore, if you set full screen untitled, you need to customize a style:
Then in Android manifest.xml: set Android: theme = "@ style / actionbarfullscreen" to be OK!
Another solution is to change the inherited actionbaractivity to fragmentactivity or activity, and then set theme directly
Done!
Thank you for reading, hope to help you, thank you for your support to this site!