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

Commit 16fbd9dd authored by Jason Monk's avatar Jason Monk
Browse files

Early version of new volume + power menus

Still needs a bunch of code cleanup, but this will get a version
into the tree for testing.

Test: visual
Bug: 37013646
Change-Id: I29800b57d80ea120c691663392f368c17325ab54
parent ecb3d113
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="#ffffffff" />
    <corners
        android:bottomLeftRadius="@dimen/corner_size"
        android:topLeftRadius="@dimen/corner_size"
        android:bottomRightRadius="0dp"
        android:topRightRadius="0dp"
        />
</shape>
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="#ffeeeeee" />
    <corners
        android:bottomLeftRadius="@dimen/corner_size"
        android:topLeftRadius="0dp"
        android:bottomRightRadius="0dp"
        android:topRightRadius="0dp"
        />
</shape>
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="#ffffffff" />
    <corners
        android:bottomLeftRadius="@dimen/corner_size"
        android:topLeftRadius="@dimen/corner_size"
        android:bottomRightRadius="@dimen/corner_size"
        android:topRightRadius="@dimen/corner_size"
        />
</shape>
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="#ffeeeeee" />
    <corners
        android:bottomLeftRadius="@dimen/corner_size"
        android:topLeftRadius="0dp"
        android:bottomRightRadius="@dimen/corner_size"
        android:topRightRadius="0dp"
        />
</shape>
+57 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 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.
-->

<!-- RelativeLayouts have an issue enforcing minimum heights, so just
     work around this for now with LinearLayouts. -->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/global_actions_panel_width"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:orientation="vertical"
    android:paddingBottom="24dip"
    android:paddingEnd="8dip"
    android:paddingStart="8dip"
    android:paddingTop="24dip">

    <ImageView
        android:id="@*android:id/icon"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_gravity="center"
        android:scaleType="center"/>

    <TextView
        android:id="@*android:id/message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top|center_horizontal"
        android:gravity="center"
        android:textAppearance="?android:attr/textAppearanceSmall"
        />

    <TextView
        android:id="@*android:id/status"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top|center_horizontal"
        android:gravity="center"
        android:minHeight="26dp"
        android:textColor="?android:attr/textColorTertiary"
        android:textAppearance="?android:attr/textAppearanceSmall"
        />
</LinearLayout>
Loading