Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd2a4548 authored by Kyrylo Mikos's avatar Kyrylo Mikos
Browse files

Update immersive confirmation.

1. Disable panic mechanism for expanded desktop.
2. Separate confirmation for each expanded desktop style.
3. Add new layout for the case when navigation
   bar is hidden but statusbar is visible.

Change-Id: I5914d655bd5f9315ac4cc6fc7d70cc4ee45bb7b2
parent 84509dba
Loading
Loading
Loading
Loading
+279 B
Loading image diff...
+243 B
Loading image diff...
+353 B
Loading image diff...
+342 B
Loading image diff...
+66 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="12dp"
    >
    <Button
        android:id="@+id/ok"
        android:layout_width="160sp"
        android:layout_height="wrap_content"
        android:layout_gravity="right"
        android:layout_marginBottom="18dp"
        android:gravity="center"
        android:text="@string/ok"
        android:background="@drawable/cling_button"
        />
    <LinearLayout
        android:id="@+id/text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_marginBottom="4dp"
        android:padding="1dp"
        >
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/cling_bg"
            android:paddingStart="14dp"
            android:paddingEnd="14dp"
            android:paddingTop="24dp"
            android:paddingBottom="24dp">
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/immersive_mode_confirmation_bottom"
                android:textColor="#80000000"
                android:textSize="16sp"
                />
        </FrameLayout>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:src="@drawable/cling_arrow_down"
            />
    </LinearLayout>

</LinearLayout>

Loading