Просмотр исходного кода

Theme set of AppCompat, set windowBackground to light_blue

Khubaib 1 год назад
Родитель
Сommit
51c35c1f77

+ 1 - 1
.idea/deploymentTargetDropDown.xml

@@ -18,7 +18,7 @@
               </deviceKey>
             </Target>
           </runningDeviceTargetSelectedWithDropDown>
-          <timeTargetWasSelectedWithDropDown value="2024-04-28T18:09:55.102187023Z" />
+          <timeTargetWasSelectedWithDropDown value="2024-04-28T19:33:08.645350025Z" />
         </State>
       </entry>
     </value>

+ 2 - 2
app/src/main/AndroidManifest.xml

@@ -37,7 +37,7 @@
         android:label="@string/app_name"
         android:roundIcon="@drawable/app_logo_round"
         android:supportsRtl="true"
-        android:theme="@style/Theme.AppCompat.Light.NoActionBar"
+        android:theme="@style/Theme.AppCompat.Light.NoActionBar.App"
         android:usesCleartextTraffic="true"
         tools:targetApi="31">
         <activity
@@ -54,7 +54,7 @@
             android:exported="true"
             android:label="@string/app_name"
             android:launchMode="singleTop"
-            android:theme="@style/Theme.AppCompat.NoActionBar">
+            android:theme="@style/Theme.AppCompat.Light.NoActionBar.App">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
 

+ 5 - 0
app/src/main/res/values/themes.xml

@@ -5,6 +5,11 @@
         <item name="android:windowBackground">@color/light_blue</item>
     </style>
 
+    <style name="Theme.AppCompat.Light.NoActionBar.App" parent="Theme.AppCompat.Light.NoActionBar" >
+        <item name="android:windowDisablePreview">true</item>
+        <item name="android:windowBackground">@color/light_blue</item>
+    </style>
+
     <!-- strongswan -->
     <style name="TransparentActivity" parent="Theme.AppCompat.Light.NoActionBar">
         <item name="android:backgroundDimEnabled">false</item>