Fix Android build errors and add native edge-to-edge UI colors
This commit is contained in:
1 parent
a57c408f2f
commit
9f72e31f20
10 files changed
+33
-24
No files matched your search
@@ -3,7 +3,4 @@
|
||||
<item>
|
||||
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -3,7 +3,4 @@
|
||||
<item>
|
||||
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -3,12 +3,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F9F9F9">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/splash_logo"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="150dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@drawable/splash" />
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -7,7 +7,7 @@
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||
<item name="android:windowSplashScreenBackground">#F9F9F9</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F9F9F9</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
@@ -19,7 +19,7 @@
|
||||
<style name="SplashTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:forceDarkAllowed">false</item>
|
||||
<item name="android:windowSplashScreenBackground">#F9F9F9</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F9F9F9</item>
|
||||
</style>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||
<item name="android:windowSplashScreenBackground">#F9F9F9</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F9F9F9</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
@@ -19,7 +19,7 @@
|
||||
<style name="SplashTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:forceDarkAllowed">false</item>
|
||||
<item name="android:windowSplashScreenBackground">#F9F9F9</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F9F9F9</item>
|
||||
</style>
|
||||
|
||||
|
||||
@@ -19,9 +19,13 @@
|
||||
<style name="SplashTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">#F9F9F9</item>
|
||||
<item name="android:forceDarkAllowed">false</item>
|
||||
<item name="android:statusBarColor">#1C8248</item>
|
||||
<item name="android:navigationBarColor">#1C8248</item>
|
||||
</style>
|
||||
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
<item name="android:statusBarColor">#1C8248</item>
|
||||
<item name="android:navigationBarColor">#1C8248</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -4,3 +4,4 @@ android.useAndroidX=true
|
||||
android.builtInKotlin=false
|
||||
# This newDsl flag was added automatically by Flutter migrator
|
||||
android.newDsl=false
|
||||
org.gradle.java.home=C:/Program Files/Android/Android Studio/jbr
|
||||
Reference in new issue
Block a user