Got rid of status bar and made animation apply to the window instead of the layout.

This commit is contained in:
ottoptj 2024-05-31 12:23:40 +03:00
commit d0112bbbe4
7 changed files with 29 additions and 58 deletions

View file

@ -5,7 +5,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="fill_vertical"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context=".MainActivity">
@ -77,7 +76,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="fill_vertical"
android:fitsSystemWindows="true"
android:gravity="fill_vertical"
android:orientation="vertical"
android:visibility="visible">

View file

@ -1,11 +1,9 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.YamLauncher" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<style name="Base.Theme.YamLauncher" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:colorBackgroundCacheHint">@android:color/transparent</item>
<item name="android:windowShowWallpaper">true</item>
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>

View file

@ -1,9 +1,10 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="Theme.YamLauncher" parent="Base.Theme.YamLauncher">
<!-- Transparent system bars for edge-to-edge. -->
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
</resources>

View file

@ -1,11 +1,10 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.YamLauncher" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<style name="Base.Theme.YamLauncher" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:colorBackgroundCacheHint">@android:color/transparent</item>
<item name="android:windowShowWallpaper">true</item>
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="AppSearchView" parent="Widget.AppCompat.SearchView" >