1
0
Fork 0

enabled background blending on Android 15 for improved edge-to-edge experience

This commit is contained in:
sspanak 2025-02-25 14:16:45 +02:00 committed by Dimo Karaivanov
parent aa3a3de661
commit 3b4ded4362
11 changed files with 90 additions and 4 deletions

View file

@ -3,7 +3,9 @@
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TTheme.FullScreenContainer">
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_left" />
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_left">
<View android:id="@+id/bumper_left_top_separator" style="@style/TTheme.Bumper.TopSeparator" />
</LinearLayout>
<LinearLayout style="@style/TTheme.Numpad" android:id="@+id/keyboard_container">
<View style="@style/TTheme.Keyboard.TopSeparator" />
@ -27,6 +29,8 @@
</LinearLayout>
</LinearLayout>
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_right" />
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_right">
<View android:id="@+id/bumper_right_top_separator" style="@style/TTheme.Bumper.TopSeparator" />
</LinearLayout>
</LinearLayout>

View file

@ -3,7 +3,9 @@
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TTheme.FullScreenContainer">
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_left" />
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_left">
<View android:id="@+id/bumper_left_top_separator" style="@style/TTheme.Bumper.TopSeparator" />
</LinearLayout>
<LinearLayout style="@style/TTheme.MainSmall" android:id="@+id/keyboard_container">
<View style="@style/TTheme.Keyboard.TopSeparator" />
@ -21,6 +23,8 @@
android:visibility="gone" />
</LinearLayout>
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_right" />
<LinearLayout style="@style/TTheme.FullScreenContainer.SideBumper" android:id="@+id/bumper_right">
<View android:id="@+id/bumper_right_top_separator" style="@style/TTheme.Bumper.TopSeparator" />
</LinearLayout>
</LinearLayout>

View file

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- only used for calculating the initial default width -->
<dimen name="numpad_max_width">720dp</dimen>
</resources>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="keyboard_wrapper_background">@color/keyboard_background</color>
<color name="keyboard_wrapper_top_separator">@color/keyboard_top_separator</color>
<color name="key_lf4_background">@color/key_fn_background</color>
<color name="key_lf4_ripple">@color/key_fn_ripple</color>
<color name="key_lf4_text">@color/key_fn_text</color>

View file

@ -10,6 +10,8 @@
<color name="keyboard_background">#e8eaed</color>
<color name="keyboard_text">#3d3d3f</color>
<color name="keyboard_top_separator">@color/key_fn_background</color>
<color name="keyboard_wrapper_background">#00000000</color>
<color name="keyboard_wrapper_top_separator">#00000000</color>
<color name="key_num_background">#fff</color>
<color name="key_num_ripple">#eff0f1</color>

View file

@ -11,6 +11,7 @@
<item name="android:layout_height">wrap_content</item>
<item name="android:layoutDirection">ltr</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@color/keyboard_wrapper_background</item>
</style>
<style name="TTheme.FullScreenContainer.SideBumper" parent="">
@ -40,6 +41,10 @@
<item name="android:background">@color/keyboard_top_separator</item>
</style>
<style name="TTheme.Bumper.TopSeparator" parent="TTheme.Keyboard.TopSeparator">
<item name="android:background">@color/keyboard_wrapper_top_separator</item>
</style>
<!--*******************************************
Small
*******************************************-->