mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +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.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
|
||||
|
Reference in New Issue
Block a user