diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-07-28 16:19:06 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 16:19:06 +0530 |
commit | a3b6bf954f4654a72c159a0783f17ef90f189d47 (patch) | |
tree | bf81975834d8e7e5fdf003ce4b6e29d20f7fe453 | |
parent | a5669c87fd4a9e5845502b7a445615165dfea080 (diff) |
PasswordFragment: bring back dividers (#980)
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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 |