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

Commit f8e29cc2 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Make ui improvements in update list

- Available updates background is same as toolbar
- 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 20b82163
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@
            android:paddingBottom="24dp"
            android:paddingStart="16dp"
            android:textSize="16sp"
            android:background="?attr/colorPrimary"
            android:background="@color/toolbar_collapsed"
            android:text="@string/available_updates"
            android:textColor="?android:textColorPrimary" />
        
+93 −90
Original line number Diff line number Diff line
@@ -11,6 +11,12 @@
    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"
@@ -55,6 +61,17 @@
                    android:maxLines="1"
                    android:textSize="14sp"
                    tools:text="29 February 2018" />
            </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"
@@ -105,27 +122,13 @@
                tools:text="300 MB"
                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: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>