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">