From f575155a413a3f05f9ffa4d070303f45fc054beb Mon Sep 17 00:00:00 2001 From: nikk Date: Mon, 21 Sep 2020 13:27:29 +0300 Subject: [PATCH] Fix focus on main elements in Modern UI Co-authored-by: John Wu --- .../main/res/layout/dialog_magisk_base.xml | 23 +++++++--- app/src/main/res/layout/fragment_home_md2.xml | 46 ++++++++++--------- .../main/res/layout/fragment_install_md2.xml | 46 +++++++++++-------- .../main/res/layout/include_hide_filter.xml | 15 ++++-- .../main/res/layout/include_home_magisk.xml | 7 +-- .../main/res/layout/include_home_manager.xml | 7 +-- .../main/res/layout/include_module_filter.xml | 3 ++ app/src/main/res/layout/item_hide_md2.xml | 12 +++-- app/src/main/res/layout/item_icon_link.xml | 2 + .../main/res/layout/item_list_single_line.xml | 2 + app/src/main/res/layout/item_module_md2.xml | 7 ++- app/src/main/res/layout/item_repo_md2.xml | 15 ++++-- app/src/main/res/layout/item_settings.xml | 17 ++++--- app/src/main/res/values/styles_md2_impl.xml | 11 +++++ 14 files changed, 141 insertions(+), 72 deletions(-) diff --git a/app/src/main/res/layout/dialog_magisk_base.xml b/app/src/main/res/layout/dialog_magisk_base.xml index 6a6bf682f..9cfb9202f 100644 --- a/app/src/main/res/layout/dialog_magisk_base.xml +++ b/app/src/main/res/layout/dialog_magisk_base.xml @@ -31,6 +31,7 @@ style="@style/WidgetFoundation.Card.Elevated" android:layout_width="match_parent" android:layout_height="wrap_content" + android:focusable="false" app:cardElevation="@dimen/margin_generic" app:cardUseCompatPadding="true"> @@ -53,9 +54,9 @@ app:layout_constraintGuide_end="16dp" /> + android:paddingBottom="4dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent">