https://kotlinlang.org logo
Title
u

user

06/24/2022, 3:31 PM
How to solve RecyclerView.Adapter issue? I am trying to change first text(position = 0) gravity from List in 'onBindViewHolder(viewHolder: ViewHolder, position: Int)', but, except for the first, the gravity of some elements changes. Could you tell me where this problem comes from? You can see code below and also logs class ButtonsListAdapter(private val dataSet: List) : RecyclerView.Adapter() { class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { val textView: TextView val divider: View...