Skip to content

Commit

Permalink
feat: Redesign Library Downloader Dialog UI
Browse files Browse the repository at this point in the history
  • Loading branch information
aikrq committed Dec 29, 2024
1 parent d950d68 commit 558dad9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
25 changes: 14 additions & 11 deletions app/src/main/res/layout/library_downloader_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginBottom="10dp"
android:layout_marginEnd="20dp"
android:layout_marginStart="20dp"
android:text="Download a dependency"
android:textAppearance="?attr/textAppearanceHeadlineSmallEmphasized" />
android:textAppearance="?attr/textAppearanceTitleLarge" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/dependency_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_marginTop="12dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:hint="Enter a dependency"
android:importantForAutofill="noExcludeDescendants"
app:placeholderText="@string/local_library_manager_dependency_example">
Expand All @@ -39,8 +39,8 @@
android:id="@+id/dependency_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="12dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:maxLines="2"
android:text="@string/local_library_manager_dependency_info"
android:textColor="?attr/colorOnSurface"
Expand All @@ -50,16 +50,18 @@
android:id="@+id/cb_skip_subdependencies"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="20dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:paddingStart="8dp"
android:text="@string/local_library_manager_skip_downloading_dependencies" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginVertical="16dp"
android:layout_marginBottom="16dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="12dp"
android:orientation="horizontal">

<Button
Expand All @@ -73,6 +75,7 @@

<Button
android:id="@+id/btn_download"
style="?attr/materialButtonFilledStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/view_item_local_lib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
style="?attr/materialCardViewFilledStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="4dp"
android:clickable="true"
android:focusable="true"
app:cardBackgroundColor="@android:color/transparent"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/view_item_local_lib_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingEnd="12dp"
android:paddingStart="20dp"
android:paddingEnd="16dp"
android:paddingStart="24dp"
android:paddingVertical="16dp">

<TextView
Expand Down

0 comments on commit 558dad9

Please sign in to comment.