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

Commit 525ca2c4 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Make ui improvements in update list

- Available updates background is same as toolbar
- Card corner radius has been made zero
- Update action button position has been changed which fixes the issue of text getting hidden when button text is too long in some translations
- Other elements in update card have been adjusted too to make it look better with new position of button
parent 5640a10f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@
            android:paddingBottom="24dp"
            android:paddingStart="16dp"
            android:textSize="16sp"
            android:background="?attr/colorPrimary"
            android:background="@color/toolbar_collapsed"
            android:text="@string/e_available_updates"
            android:textColor="?android:textColorPrimary" />
        
+94 −95
Original line number Diff line number Diff line
@@ -8,12 +8,15 @@
    android:focusable="true"
    android:foreground="?attr/selectableItemBackground"
    android:nextFocusRight="@+id/update_action"
    android:layout_marginTop="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginEnd="8dp"
    app:cardCornerRadius="16dp"
    app:cardCornerRadius="0dp"
    app:contentPadding="16dp">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
@@ -58,6 +61,17 @@
                    android:maxLines="1"
                    android:textSize="14sp"
                    tools:text="18 June 2023" />
            </LinearLayout>
            <ImageButton
                android:id="@+id/update_menu"
                style="?android:attr/actionOverflowButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:padding="8dp"
                android:contentDescription="@null" />

        </LinearLayout>

        <RelativeLayout
            android:layout_width="wrap_content"
@@ -108,28 +122,13 @@
                tools:text="1.1 GB"
                tools:visibility="invisible" />
        </RelativeLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <ImageButton
                android:id="@+id/update_menu"
                style="?android:attr/actionOverflowButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:padding="8dp"
                android:contentDescription="@null" />
        <Button
            android:id="@id/update_action"
            style="@style/Widget.AppCompat.Button.Borderless.Colored"
                android:background="?android:selectableItemBackgroundBorderless"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:padding="8dp"
            tools:text="Pause" />
    </LinearLayout>
    </LinearLayout>
</androidx.cardview.widget.CardView>