tweaking Manage Event Types UI
This commit is contained in:
parent
14c99a53d3
commit
4764c796cd
|
@ -14,11 +14,16 @@ import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import kotlinx.android.synthetic.main.activity_manage_event_types.*
|
import kotlinx.android.synthetic.main.activity_manage_event_types.*
|
||||||
|
|
||||||
class ManageEventTypesActivity : SimpleActivity(), DeleteEventTypesListener {
|
class ManageEventTypesActivity : SimpleActivity(), DeleteEventTypesListener {
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
isMaterialActivity = true
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_manage_event_types)
|
setContentView(R.layout.activity_manage_event_types)
|
||||||
setupOptionsMenu()
|
setupOptionsMenu()
|
||||||
|
|
||||||
|
updateMaterialActivityViews(manage_event_types_coordinator, manage_event_types_list, useTransparentNavigation = true, useTopSearchMenu = false)
|
||||||
|
setupMaterialScrollListener(manage_event_types_list, manage_event_types_toolbar)
|
||||||
|
|
||||||
getEventTypes()
|
getEventTypes()
|
||||||
updateTextColors(manage_event_types_list)
|
updateTextColors(manage_event_types_list)
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,26 +5,20 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
android:id="@+id/manage_event_types_app_bar_layout"
|
android:id="@+id/manage_event_types_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
android:background="@color/color_primary"
|
||||||
<com.google.android.material.appbar.MaterialToolbar
|
app:menu="@menu/menu_event_types"
|
||||||
android:id="@+id/manage_event_types_toolbar"
|
app:title="@string/manage_event_types"
|
||||||
android:layout_width="match_parent"
|
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
|
||||||
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>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/manage_event_types_list"
|
android:id="@+id/manage_event_types_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginTop="?attr/actionBarSize"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||||
|
|
Loading…
Reference in New Issue