From a3b6bf954f4654a72c159a0783f17ef90f189d47 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 28 Jul 2020 16:19:06 +0530 Subject: PasswordFragment: bring back dividers (#980) --- app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt index fc32b8da..1cd7c1ea 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt @@ -21,6 +21,7 @@ import androidx.fragment.app.activityViewModels import androidx.fragment.app.setFragmentResultListener import androidx.lifecycle.observe import androidx.preference.PreferenceManager +import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import com.google.android.material.snackbar.Snackbar import com.zeapo.pwdstore.databinding.PasswordRecyclerViewBinding @@ -125,6 +126,7 @@ class PasswordFragment : Fragment(R.layout.password_recycler_view) { } val recyclerView = binding.passRecycler recyclerView.apply { + addItemDecoration(DividerItemDecoration(requireContext(), LinearLayoutManager.VERTICAL)) layoutManager = LinearLayoutManager(requireContext()) itemAnimator = OnOffItemAnimator() adapter = recyclerAdapter -- cgit v1.2.3