From ba67e74edd4d38fbf48cc1979931d8a395fc3251 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 31 Dec 2022 10:45:15 +0100 Subject: [PATCH] updating mimetypes activity --- .../pro/activities/MimeTypesActivity.kt | 3 +++ .../main/res/layout/activity_mimetypes.xml | 24 +++++++------------ 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt index 926af5e1..47483997 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MimeTypesActivity.kt @@ -39,10 +39,13 @@ class MimeTypesActivity : SimpleActivity(), ItemOperationsListener { private var currentViewType = VIEW_TYPE_LIST override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true super.onCreate(savedInstanceState) setContentView(R.layout.activity_mimetypes) setupOptionsMenu() refreshMenuItems() + updateMaterialActivityViews(mimetypes_coordinator, mimetypes_list, true) + setupMaterialScrollListener(mimetypes_list, mimetypes_toolbar) currentMimeType = intent.getStringExtra(SHOW_MIMETYPE) ?: return mimetypes_toolbar.title = getString( diff --git a/app/src/main/res/layout/activity_mimetypes.xml b/app/src/main/res/layout/activity_mimetypes.xml index 9fd03365..2033fb27 100644 --- a/app/src/main/res/layout/activity_mimetypes.xml +++ b/app/src/main/res/layout/activity_mimetypes.xml @@ -5,27 +5,21 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - - + android:layout_height="?attr/actionBarSize" + android:background="@color/color_primary" + app:menu="@menu/menu" + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> + android:layout_marginTop="?attr/actionBarSize" + android:fillViewport="true" + android:scrollbars="none">