Browse Source

Lock rotation, make app fullscreen

feature_fragments
vanitasvitae 5 years ago
parent
commit
9fed3dabd5
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
  1. 3
      app/src/main/AndroidManifest.xml
  2. 13
      app/src/main/res/values/styles.xml

3
app/src/main/AndroidManifest.xml

@ -10,7 +10,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen">
<activity android:name=".MainActivity">
<!-- Launcher -->
<intent-filter>

13
app/src/main/res/values/styles.xml

@ -1,11 +1,8 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>

Loading…
Cancel
Save