tweaking Manage Event Types UI

This commit is contained in:
tibbi 2023-01-07 23:45:44 +01:00
parent 14c99a53d3
commit 4764c796cd
2 changed files with 13 additions and 14 deletions

View File

@ -14,11 +14,16 @@ import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import kotlinx.android.synthetic.main.activity_manage_event_types.*
class ManageEventTypesActivity : SimpleActivity(), DeleteEventTypesListener {
override fun onCreate(savedInstanceState: Bundle?) {
isMaterialActivity = true
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_manage_event_types)
setupOptionsMenu()
updateMaterialActivityViews(manage_event_types_coordinator, manage_event_types_list, useTransparentNavigation = true, useTopSearchMenu = false)
setupMaterialScrollListener(manage_event_types_list, manage_event_types_toolbar)
getEventTypes()
updateTextColors(manage_event_types_list)
}

View File

@ -5,26 +5,20 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/manage_event_types_app_bar_layout"
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/manage_event_types_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/manage_event_types_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:menu="@menu/menu_event_types"
app:title="@string/manage_event_types"
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
</com.google.android.material.appbar.AppBarLayout>
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:menu="@menu/menu_event_types"
app:title="@string/manage_event_types"
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
<com.simplemobiletools.commons.views.MyRecyclerView
android:id="@+id/manage_event_types_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize"
android:clipToPadding="false"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />