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

Commit 61cd69c3 authored by Adam Cohen's avatar Adam Cohen
Browse files

Keyguard polish

-> Updated user switcher to be closer to spec (issue 7047393)
-> Drawing keyguard overscroll gradient manually in KeyguardWidgetFrame
   (eliminates need for assets, eliminates banding)
-> Fixed clipping of overscroll on sw600dp using negative margin

Change-Id: I90ec7f820ca7dccebf7e05628a3185e95d41af08
parent 891a2161
Loading
Loading
Loading
Loading
−2.16 KiB
Loading image diff...
−1.42 KiB
Loading image diff...
+21 −9
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="125dp"
    android:layout_height="125dp"
    android:background="#000000"
    android:gravity="center_horizontal">
    <ImageView
        android:id="@+id/keyguard_user_avatar"
@@ -29,12 +30,23 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"/>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <Space
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.78" />
        <TextView
            android:id="@+id/keyguard_user_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|right"
        android:textSize="12sp"
        android:background="#99FFFFFF"
        android:textColor="#ff000000"/>
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.22"
            android:paddingLeft="6dp"
            android:layout_gravity="center_vertical|left"
            android:textSize="16sp"
            android:textColor="#ffffff"
            android:background="#808080" />
    </LinearLayout>
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserAvatar>
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@
        android:layout_height="10dp"
        android:orientation="horizontal"
        android:paddingLeft="@dimen/kg_widget_pager_horizontal_padding"
        android:paddingRight="@dimen/kg_widget_pager_horizontal_padding">
        android:paddingRight="@dimen/kg_widget_pager_horizontal_padding"
        android:layout_marginTop="@dimen/kg_runway_lights_top_margin">
        <com.android.internal.policy.impl.keyguard.KeyguardGlowStripView
            android:id="@+id/left_strip"
            android:paddingTop="@dimen/kg_runway_lights_vertical_padding"
+8 −0
Original line number Diff line number Diff line
@@ -77,5 +77,13 @@
    <!-- Preference fragment padding, sides -->
    <dimen name="preference_fragment_padding_side">24dp</dimen>
    <dimen name="preference_screen_header_padding_side">24dip</dimen>

    <!-- Keyguard dimensions -->
    <!-- Bottom padding for the widget pager -->
    <dimen name="kg_widget_pager_bottom_padding">16dp</dimen>

    <!-- Top margin for the runway lights. We add a negative margin in large
        devices to account for the widget pager padding -->
    <dimen name="kg_runway_lights_top_margin">-10dp</dimen>
</resources>
Loading