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

Commit 21eb4b87 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Allow room for descenders in am/pm text.

The lock screen clock layout was previously cropping them
off; in locales that use "PM" this is fine, but Spanish
(e.g.) uses "p.m."

Fixes http://b/2277477
parent 401f4220
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/carrier"
        android:layout_marginBottom="10dip"
        android:layout_marginTop="52dip"
        android:layout_marginLeft="20dip"
        >
@@ -53,6 +52,8 @@
        <TextView android:id="@+id/timeDisplay"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:ellipsize="none"
            android:gravity="bottom"
            android:textSize="72sp"
            android:textAppearance="?android:attr/textAppearanceMedium"
@@ -60,6 +61,7 @@
            android:shadowDx="0"
            android:shadowDy="0"
            android:shadowRadius="3.0"
            android:layout_marginBottom="10dip"
            />


@@ -67,10 +69,10 @@
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:gravity="bottom"
            android:textSize="22sp"
            android:singleLine="true"
            android:ellipsize="none"
            android:textSize="22sp"
            android:layout_marginLeft="8dip"
            android:layout_marginBottom="-6dip"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:shadowColor="#C0000000"
            android:shadowDx="0"
+5 −3
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/carrier"
            android:layout_marginBottom="8dip"
            android:layout_marginTop="56dip"
            >

@@ -57,12 +56,15 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="bottom"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="72sp"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"
                android:shadowDy="0"
                android:shadowRadius="3.0"
                android:layout_marginBottom="6dip"
                />


@@ -70,10 +72,10 @@
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:gravity="bottom"
                android:textSize="22sp"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="22sp"
                android:layout_marginLeft="8dip"
                android:layout_marginBottom="-6dip"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"
+5 −3
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"
            android:layout_marginBottom="8dip"
            android:layout_marginTop="8dip"
            >

@@ -68,12 +67,15 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="bottom"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="72sp"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"
                android:shadowDy="0"
                android:shadowRadius="3.0"
                android:layout_marginBottom="6dip"
                />


@@ -81,10 +83,10 @@
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:gravity="bottom"
                android:textSize="22sp"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="22sp"
                android:layout_marginLeft="8dip"
                android:layout_marginBottom="-6dip"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"
+5 −3
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:layout_marginTop="15dip"
            android:layout_marginBottom="6dip"
            android:layout_marginLeft="20dip"
            >

@@ -58,22 +57,25 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="bottom"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="56sp"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"
                android:shadowDy="0"
                android:shadowRadius="3.0"
                android:layout_marginBottom="6dip"
                />

            <TextView android:id="@+id/am_pm"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:gravity="bottom"
                android:textSize="18sp"
                android:singleLine="true"
                android:ellipsize="none"
                android:textSize="18sp"
                android:layout_marginLeft="4dip"
                android:layout_marginBottom="-6dip"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:shadowColor="#C0000000"
                android:shadowDx="0"