redesigning the Manage clipboard items activity
This commit is contained in:
parent
4e80451760
commit
93a6c9208b
|
@ -29,12 +29,16 @@ class ManageClipboardItemsActivity : SimpleActivity(), RefreshRecyclerViewListen
|
|||
private val PICK_IMPORT_CLIPS_SOURCE_INTENT = 22
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
isMaterialActivity = true
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_manage_clipboard_items)
|
||||
setupOptionsMenu()
|
||||
updateTextColors(clipboard_items_wrapper)
|
||||
updateTextColors(clipboard_items_holder)
|
||||
updateClips()
|
||||
|
||||
updateMaterialActivityViews(clipboard_coordinator, clipboard_items_list)
|
||||
setupMaterialScrollListener(clipboard_nested_scrollview, clipboard_toolbar)
|
||||
|
||||
clipboard_items_placeholder.text = "${getText(R.string.manage_clipboard_empty)}\n\n${getText(R.string.manage_clips)}"
|
||||
clipboard_items_placeholder_2.apply {
|
||||
underlineText()
|
||||
|
|
|
@ -5,32 +5,25 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/coordinator_app_bar_layout"
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/clipboard_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/clipboard_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/color_primary"
|
||||
app:menu="@menu/menu_manage_clipboard_items"
|
||||
app:title="@string/manage_clipboard_items"
|
||||
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_manage_clipboard_items"
|
||||
app:title="@string/manage_clipboard_items"
|
||||
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/coordinator_nested_scrollview"
|
||||
android:id="@+id/clipboard_nested_scrollview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="?attr/actionBarSize"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||
android:scrollbars="none">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/clipboard_items_wrapper"
|
||||
android:id="@+id/clipboard_items_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
|
Loading…
Reference in New Issue