How to display item in multiple column with ArrayAdapter in Android -
i have item list view consist image,text , button.i trying display item in 2 column , multiple rows.i using custom adapter achieve unfortunately item come in single column only.please see wireframe more clarity question. wireframe layout
you should use recyclerview gridlayourmanager.
final int rowscount = 2; gridlayoutmanager manager = new gridlayoutmanager(getcontext(), rowscount, gridlayoutmanager.vertical, false); recyclewview.setlayoutmanager(manager);
here recycleview docs
Comments
Post a Comment