diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..8173142 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/filestack/src/main/java/ua/motionman/filestack/ui/filestacksources/SourcesFragment.kt b/filestack/src/main/java/ua/motionman/filestack/ui/filestacksources/SourcesFragment.kt index b0cac53..8c94082 100644 --- a/filestack/src/main/java/ua/motionman/filestack/ui/filestacksources/SourcesFragment.kt +++ b/filestack/src/main/java/ua/motionman/filestack/ui/filestacksources/SourcesFragment.kt @@ -29,14 +29,17 @@ class SourcesFragment : Fragment(R.layout.sources_fragment) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - setToolbarTitle() + setupToolbar() initAdapter() sourceAdapter.submitList(localSourceData) } - private fun setToolbarTitle() { - binding.sourcesToolbar.toolbarTitleTextView.text = getText(R.string.source_title) + private fun setupToolbar() { + with(binding.sourcesToolbar) { + toolbarTitleTextView.text = getText(R.string.source_title) + toolbarCancelTextView.setOnClickListener { activity?.finish() } + } } private fun initAdapter() { diff --git a/filestack/src/main/res/layout/toolbar.xml b/filestack/src/main/res/layout/toolbar.xml index 5a8e7e5..8d60195 100644 --- a/filestack/src/main/res/layout/toolbar.xml +++ b/filestack/src/main/res/layout/toolbar.xml @@ -18,12 +18,24 @@ android:layout_height="wrap_content" android:textColor="@color/white" android:textSize="18sp" + android:textStyle="bold" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="Toolbar" /> + +