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

Commit 8f182554 authored by Danesh M's avatar Danesh M Committed by linus_lee
Browse files

Settings : Lockscreen shortcuts

Change-Id: I412d80f262f4d3d578ffa09c6b48940af71240c4
(cherry picked from commit 170400a0)
parent 9c9074fe
Loading
Loading
Loading
Loading
+2.87 KiB
Loading image diff...
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<layer-list
    xmlns:android="http://schemas.android.com/apk/res/android" >
    <item>
        <shape
            android:shape="rectangle">
            <solid
                android:color="#333333" />
            <size android:height="@dimen/phone_height" android:width="@dimen/phone_width" />
            <corners android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
        </shape>
    </item>
    <item android:bottom="@dimen/phone_bottom_padding" android:right="@dimen/phone_side_padding" android:left="@dimen/phone_side_padding">
        <shape
            android:shape="rectangle">
            <solid
                android:color="@android:color/black" />
        </shape>
    </item>
</layer-list>
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
    <!--
     Copyright (C) 2014 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.
-->

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="#DDDDDD">
</ripple>
+61 −0
Original line number Diff line number Diff line
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_height="match_parent"
    android:layout_width="match_parent">

    <ImageView
        android:id="@+id/phone_button"
        android:gravity="center_horizontal"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_gravity="center_horizontal"
        android:layout_centerHorizontal="true"
        android:src="@drawable/lockscreen_shortcuts_phone_background" />

    <TextView
        android:textSize="15sp"
        android:textColor="#424242"
        android:gravity="center"
        android:layout_below="@id/phone_button"
        android:layout_alignStart="@id/phone_button"
        android:layout_alignEnd="@id/phone_button"
        android:text="@string/lockscreen_message"
        android:layout_width="wrap_content"
        android:layout_height="match_parent" />

    <RelativeLayout
        android:layout_alignEnd="@id/phone_button"
        android:layout_alignStart="@id/phone_button"
        android:layout_alignBottom="@id/phone_button"
        android:layout_marginStart="@dimen/phone_side_padding"
        android:layout_marginEnd="@dimen/phone_side_padding"
        android:paddingBottom="@dimen/phone_bottom_padding"
        android:clipChildren="false"
        android:layout_width="match_parent"
        android:layout_height="@dimen/phone_height">
        <ImageView
            android:layout_marginStart="@dimen/lockscreen_icon_side_padding"
            android:layout_alignParentBottom="true"
            android:layout_alignParentStart="true"
            android:clickable="true"
            android:id="@+id/left_button"
            android:layout_width="@dimen/lockscreen_icon_size"
            android:layout_height="@dimen/lockscreen_icon_size" />
        <ImageView
            android:id="@+id/middle_button"
            android:tint="#333333"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            android:layout_width="@dimen/lockscreen_icon_size"
            android:layout_height="@dimen/lockscreen_icon_size" />
        <ImageView
            android:layout_marginEnd="@dimen/lockscreen_icon_side_padding"
            android:id="@+id/right_button"
            android:clickable="true"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_width="@dimen/lockscreen_icon_size"
            android:layout_height="@dimen/lockscreen_icon_size" />
        </RelativeLayout>
</RelativeLayout>
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2012-2013 The CyanogenMod 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.
-->
<resources>
    <dimen name="phone_height">210dp</dimen>
    <dimen name="phone_width">420dp</dimen>
</resources>
Loading