Author: Adam Evyčędo <git@apiote.xyz>
add list dividers
%!v(PANIC=String method: strings: negative Repeat count)
diff --git a/app/src/main/java/xyz/apiote/bimba/czwek/departures/DeparturesActivity.kt b/app/src/main/java/xyz/apiote/bimba/czwek/departures/DeparturesActivity.kt index 7f6e164922dc8b74c2e0c234c26620031bd57f8a..8ca35eb6214c46644d0d28ee8f635bd4054a37d5 100644 --- a/app/src/main/java/xyz/apiote/bimba/czwek/departures/DeparturesActivity.kt +++ b/app/src/main/java/xyz/apiote/bimba/czwek/departures/DeparturesActivity.kt @@ -28,6 +28,7 @@ import androidx.core.view.WindowInsetsCompat import androidx.core.view.updatePadding import androidx.lifecycle.ViewModelProvider import androidx.preference.PreferenceManager +import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.google.android.material.datepicker.MaterialDatePicker @@ -374,6 +375,7 @@ } } binding.departuresRecycler.layoutManager = LinearLayoutManager(this) + binding.departuresRecycler.addItemDecoration(DividerItemDecoration(this, DividerItemDecoration.VERTICAL)) binding.departuresRecycler.itemAnimator = null binding.departuresRecycler.addOnScrollListener( object : RecyclerView.OnScrollListener() {