Open TianGuisen opened 3 years ago
Get rid of the lines below.
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
and set LayoutManager programmatically like that below:
val llm = LinearLayoutManager(context, RecyclerView.HORIZONTAL, false)
binding.prescriptionRecyclerView.layoutManager = llm
is invalid
is valid