这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Dr4kzor
Copy link
Contributor

@Dr4kzor Dr4kzor commented Dec 13, 2022

First I would like to say that I am new to the git pull request method. I was not sure how to do this so here I am describing a full list of changes needed to make the App remove the annoying status bar from top of the screen.

Signed-off-by: gradle-update-robot gradle-update-robot@regolo.cc

In Android 12 it is not easy to remove the top status bar, as a results we lose a nice portion of the screen when using the phone horizontaly.

As a way to fix this edit the file located in app\src\main\res\values\styles.xml
Added on all themes: <item name="android:windowFullscreen">true</item>

<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:windowFullscreen">true</item>
<!-- Fullscreen was forced on line above -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
</style>
<style name="NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowFullscreen">true</item>
<!-- Fullscreen was forced on line above -->
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
</style>
<!-- For use w/ external displays to be able to use entire display surface area -->
<style name="FullScreen.ExternalDisplay" parent="@style/Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>

A full file with patches below.

styles.zip

I tested this on my phone and it did the job =)

Signed-off-by: gradle-update-robot <gradle-update-robot@regolo.cc>
@twaik
Copy link
Member

twaik commented Jan 16, 2023

Only gradle files are changed in this PR.

@twaik twaik closed this Jan 16, 2023
@twaik twaik deleted the gradlew-update-7.6 branch February 1, 2023 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants