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

Commit 6ac1d248 authored by Brandon Dayauon's avatar Brandon Dayauon
Browse files

Fix padding between text and (x) icon in work profile card.

- Simplified the .xml to just use linear layout and remove the extra relativelayout that was used for the button when it can just be a
Framelayout.

- Now according to spec https://www.figma.com/file/mf67dbMngw0a3aev2HTinD/Work-Profile-%26-Bluechip?type=design&node-id=2185-0&mode=design&t=n0pl6vP5rnSrTyyv-0
the additional padding is now included.

bug: 309120438
Test: Manual photos-
before: https://screenshot.googleplex.com/48kUpYCVQGYMwdm
after: https://screenshot.googleplex.com/AcisTmXQeZ3NT3C
Flag: None
Change-Id: I3c1850a20f49a2a4e809410b4aaef688ea9b3e2c
parent 511421c1
Loading
Loading
Loading
Loading
+22 −29
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
    android:paddingTop="@dimen/work_edu_card_margin"
    android:paddingBottom="@dimen/work_edu_card_bottom_margin"
    android:gravity="center">
    <RelativeLayout
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
@@ -28,26 +28,22 @@
        android:paddingEnd="@dimen/work_card_margin"
        android:paddingStart="@dimen/work_card_margin"
        android:paddingTop="@dimen/work_card_margin"
        android:paddingBottom="@dimen/work_card_margin"
        android:id="@+id/wrapper">
        <TextView
            style="@style/PrimaryHeadline"
            android:textColor="?android:attr/textColorPrimary"
            android:id="@+id/work_apps_paused_title"
            android:layout_width="wrap_content"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/work_card_margin"
            android:layout_marginEnd="@dimen/work_card_margin"
            android:layout_weight="1"
            android:paddingEnd="@dimen/work_edu_card_text_end_margin"
            android:text="@string/work_profile_edu_work_apps"
            android:textDirection="locale"
            android:textSize="18sp" />
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/padded_rounded_button_height"
            android:orientation="horizontal">
        <FrameLayout
            android:layout_width="@dimen/rounded_button_width"
            android:layout_height="@dimen/rounded_button_width"
                android:layout_alignParentEnd="true"
            android:background="@drawable/rounded_action_button"
            android:padding="@dimen/rounded_button_padding">
            <ImageButton
@@ -55,13 +51,10 @@
                android:layout_width="@dimen/x_icon_size"
                android:layout_height="@dimen/x_icon_size"
                android:layout_gravity="center"
                    android:padding="@dimen/x_icon_padding"
                android:contentDescription="@string/accessibility_close"
                android:padding="@dimen/x_icon_padding"
                android:background="@android:color/transparent"
                android:src="@drawable/ic_remove_no_shadow" />
        </FrameLayout>
        </RelativeLayout>
    </RelativeLayout>



    </LinearLayout>
</com.android.launcher3.allapps.WorkEduCard>
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@
    <dimen name="work_edu_card_margin">16dp</dimen>
    <dimen name="work_edu_card_radius">16dp</dimen>
    <dimen name="work_edu_card_bottom_margin">26dp</dimen>
    <dimen name="work_edu_card_text_end_margin">32dp</dimen>
    <dimen name="work_apps_paused_button_stroke">1dp</dimen>

    <dimen name="work_card_margin">24dp</dimen>