R
R
rafaelSalihov2020-02-07 01:21:54
Java
rafaelSalihov, 2020-02-07 01:21:54

ListView can be displayed in 2 columns?

You need to display the ListView in two columns i.e. 2 values ​​from the list into one line of the GridLayout type, etc. I didn’t find this on the Internet, only the receiverview found it
Like this
5e3c91658437e792301549.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
one pavel, 2020-02-07
@rafaelSalihov

And here the second listView is not needed,
just draw two views in one item.
you can also implement this through Grid or Table layouts,
or it’s more correct to take recyclerView
https://stackoverflow.com/questions/12442795/pinte...

I
illuzor, 2020-02-07
@iLLuzor

RecyclerView + GridLayoutManager

A
Alex Avaj, 2020-02-07
@sandroisu

Plus, the guys from above, once having used the RecyclerView with the ListView, you don’t want to mess with it. Everything is there, and such questions are solved with exactly one line of code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question