I need my app to show as full screen. Now I know how to add this feature into the application tag in Mainfest using
android:theme=”@android:style/Theme.NoTitleBar.Fullscreen"
However, I have my own theme called "CodeFont", and I cannot use two themes in the same application. How I can add this feature into my own style tag in my resources file? There is no such things as an android:style tag.
you can request some features and flags in code by using ( for example ):
Create your custom theme with parent attribute to inherit NoTitleBar.Fullscreen property from general android theme.
values/styles.xml
AndroidManifest.xml
Create your custom theme by using default theme, like this
window with
Fullscreen
window with
NoTitle
Setting up a theme in app styles works for my React Native application. Just type in the
android/app/src/main/res/values/styles.xml
:And in the
android/app/src/main/AndroidManifest.xml
link to this theme:Reference
in style.xml add
to your theme. Example: