[mobile] fix detail status

pull/123/head
FongMi 3 years ago
parent 29ac7e54c9
commit 7444456d59
  1. 5
      app/src/mobile/AndroidManifest.xml
  2. 1
      app/src/mobile/res/values-v27/styles.xml
  3. 10
      app/src/mobile/res/values/styles.xml

@ -8,7 +8,7 @@
android:name=".ui.activity.MainActivity"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
android:exported="true"
android:screenOrientation="fullSensor"
android:screenOrientation="fullUser"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -21,7 +21,8 @@
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
android:resizeableActivity="true"
android:screenOrientation="fullSensor"
android:supportsPictureInPicture="true" />
android:supportsPictureInPicture="true"
android:theme="@style/AppTheme.Detail" />
</application>
</manifest>

@ -1,6 +1,7 @@
<resources>
<style name="AppTheme" parent="BaseTheme">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>

@ -1,6 +1,13 @@
<resources>
<style name="AppTheme" parent="BaseTheme" />
<style name="AppTheme" parent="BaseTheme">
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="AppTheme.Detail" parent="BaseTheme">
<item name="android:statusBarColor">@color/black</item>
<item name="android:windowTranslucentStatus">false</item>
</style>
<style name="BaseTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="colorPrimary">@color/blue_500</item>
@ -8,7 +15,6 @@
<item name="colorAccent">@color/blue_500</item>
<item name="android:windowAnimationStyle">@null</item>
<item name="android:windowBackground">@null</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="bottomSheetDialogTheme">@style/BottomSheetDialog</item>
</style>

Loading…
Cancel
Save