From f232f577e41e531b15bac53a8ec279f158275406 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 31 Dec 2022 11:33:47 +0100 Subject: [PATCH] redesigning Decompress activity --- .../pro/activities/DecompressActivity.kt | 3 +++ .../main/res/layout/activity_decompress.xml | 25 ++++++++----------- app/src/main/res/layout/activity_save_as.xml | 21 ++++++---------- 3 files changed, 20 insertions(+), 29 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt index 1acb5dd6..886a891a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt @@ -23,9 +23,12 @@ class DecompressActivity : SimpleActivity() { private var uri: Uri? = null override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true super.onCreate(savedInstanceState) setContentView(R.layout.activity_decompress) setupOptionsMenu() + updateMaterialActivityViews(decompress_coordinator, decompress_list, true) + setupMaterialScrollListener(decompress_list, decompress_toolbar) uri = intent.data if (uri == null) { diff --git a/app/src/main/res/layout/activity_decompress.xml b/app/src/main/res/layout/activity_decompress.xml index 138f86f2..c9c8a333 100644 --- a/app/src/main/res/layout/activity_decompress.xml +++ b/app/src/main/res/layout/activity_decompress.xml @@ -5,27 +5,22 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - - + android:layout_height="?attr/actionBarSize" + android:background="@color/color_primary" + app:menu="@menu/menu_decompress" + app:title="@string/decompress" + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> + android:layout_marginTop="?attr/actionBarSize" + android:fillViewport="true" + android:scrollbars="none"> - - - - - + android:layout_height="?attr/actionBarSize" + android:background="@color/color_primary" + app:title="@string/save_as" + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> + android:layout_marginTop="?attr/actionBarSize" />