mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 18:38:48 +00:00
PlanActivity: Extend plan under the cutout area.
This commit is contained in:
parent
02fc451769
commit
4d9e763d14
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
<resources
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<style name="My.Theme.Light" parent="@android:style/Theme.Material.Light.NoActionBar">
|
<style name="My.Theme.Light" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||||
<item name="android:windowBackground">@android:color/white</item>
|
<item name="android:windowBackground">@android:color/white</item>
|
||||||
|
@ -22,6 +24,7 @@
|
||||||
<style name="My.Theme.Fullscreen" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen">
|
<style name="My.Theme.Fullscreen" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen">
|
||||||
<item name="android:windowBackground">@android:color/black</item>
|
<item name="android:windowBackground">@android:color/black</item>
|
||||||
<item name="android:textViewStyle">@style/My.Widget.TextView</item>
|
<item name="android:textViewStyle">@style/My.Widget.TextView</item>
|
||||||
|
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="27">shortEdges</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="My.Theme.Preference" parent="@android:style/Theme.Material.Light.DarkActionBar">
|
<style name="My.Theme.Preference" parent="@android:style/Theme.Material.Light.DarkActionBar">
|
||||||
|
|
|
@ -139,6 +139,7 @@ public class PlanActivity extends Activity {
|
||||||
zoomControlsAnimation.setFillAfter(true); // workaround: set through code because XML does not work
|
zoomControlsAnimation.setFillAfter(true); // workaround: set through code because XML does not work
|
||||||
|
|
||||||
viewAnimator = (ViewAnimator) findViewById(R.id.plans_layout);
|
viewAnimator = (ViewAnimator) findViewById(R.id.plans_layout);
|
||||||
|
viewAnimator.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
|
||||||
|
|
||||||
plan = (ScrollImageView) findViewById(R.id.plans_plan);
|
plan = (ScrollImageView) findViewById(R.id.plans_plan);
|
||||||
plan.setOnMoveListener(() -> {
|
plan.setOnMoveListener(() -> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue