mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-03 15:55:14 +00:00
PasswordFragment: bring back dividers (#980)
This commit is contained in:
@@ -21,6 +21,7 @@ import androidx.fragment.app.activityViewModels
|
|||||||
import androidx.fragment.app.setFragmentResultListener
|
import androidx.fragment.app.setFragmentResultListener
|
||||||
import androidx.lifecycle.observe
|
import androidx.lifecycle.observe
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
|
import androidx.recyclerview.widget.DividerItemDecoration
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import com.zeapo.pwdstore.databinding.PasswordRecyclerViewBinding
|
import com.zeapo.pwdstore.databinding.PasswordRecyclerViewBinding
|
||||||
@@ -125,6 +126,7 @@ class PasswordFragment : Fragment(R.layout.password_recycler_view) {
|
|||||||
}
|
}
|
||||||
val recyclerView = binding.passRecycler
|
val recyclerView = binding.passRecycler
|
||||||
recyclerView.apply {
|
recyclerView.apply {
|
||||||
|
addItemDecoration(DividerItemDecoration(requireContext(), LinearLayoutManager.VERTICAL))
|
||||||
layoutManager = LinearLayoutManager(requireContext())
|
layoutManager = LinearLayoutManager(requireContext())
|
||||||
itemAnimator = OnOffItemAnimator()
|
itemAnimator = OnOffItemAnimator()
|
||||||
adapter = recyclerAdapter
|
adapter = recyclerAdapter
|
||||||
|
Reference in New Issue
Block a user