How to change layout using recycleradapter listview click listener in android | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change layout using recycleradapter listview click listener in android

28th Apr 2022, 5:58 PM
Lovish Verma
1 Answer
0
If you want to change the shape of the adapter what layout, you can do in the xml or by code: XML: In the main activity xml, type in this: "LayoutManager=LinearLayout" Kotlin: Within the ViewHolder: RecyclerView.LayoutManager = LinearLayoutManager(this)
7th May 2022, 10:33 AM
Georgi Tasev
Georgi Tasev - avatar