From 7923a9ea289cf1ef56b3b3be9dc4a2ad5dfd881d Mon Sep 17 00:00:00 2001 From: Fahim Masud Choudhury Date: Thu, 21 Mar 2024 22:02:21 +0600 Subject: [PATCH 1/3] feat: enhance e-drive widget layout This commit includes changes to the design layout of the e-drive widget. The modifications enhance the user interface by improving the alignment, padding, and margin of various elements. It also adds a preview layout to the widget information file. --- app/src/main/res/layout/e_drive_widget.xml | 99 ++++++++++++++------ app/src/main/res/xml/e_drive_widget_info.xml | 18 ++++ 2 files changed, 90 insertions(+), 27 deletions(-) diff --git a/app/src/main/res/layout/e_drive_widget.xml b/app/src/main/res/layout/e_drive_widget.xml index 4fedfefe..8448f2ad 100644 --- a/app/src/main/res/layout/e_drive_widget.xml +++ b/app/src/main/res/layout/e_drive_widget.xml @@ -1,58 +1,88 @@ + + + android:paddingBottom="16dp" + tools:background="@color/colorAccent"> + android:textSize="16sp" + tools:targetApi="p" + tools:text="John Doe" /> + app:tint="@color/widget_text_color2" /> + tools:targetApi="p" + tools:text="john.doe@murena.io" /> + android:visibility="gone" + tools:visibility="visible"> + android:textSize="16sp" + tools:targetApi="p" + tools:text="123quatro@murena.io" /> @@ -95,15 +130,17 @@ android:layout_height="wrap_content" android:layout_alignTop="@id/alias1_container" android:layout_centerHorizontal="true" - android:layout_marginTop="50dp" + android:layout_marginTop="40dp" android:drawablePadding="10dp" + android:padding="16dp" android:text="@string/hide_alias" android:textColor="@color/widget_text_color2" android:textFontWeight="400" android:textSize="16sp" android:visibility="gone" app:drawableEndCompat="@drawable/ic_arrow_up" - tools:targetApi="p" /> + tools:targetApi="p" + tools:visibility="visible" /> + android:textSize="11sp" + tools:targetApi="p" + tools:text="10 GB OF 20 GB USED" /> + android:progressTint="@color/widget_progressBar" + tools:progress="50" /> + android:textSize="14sp" + tools:targetApi="p" + tools:text="Premium 20 GB" />