android - GridView: GridView with different cells sizes and layout, -


hi need gridview have 2 different layout in grid cells according grid cell type.here giving example scrren drawn on paper.

enter image description here

user recyclerview gridlayoutmanager have set spansizelookup. follows:

int fullspansize = 3; int normalspansize = 1;  gridlayoutmanager layout = new gridlayoutmanager(context, fullspansize); layout.setspanesizelookup(new gridlayoutmanager.spansizelookup() {     @override     public int getspansize(int position) {         return position == 3 ? fullspansize : normalspansize;     } }); recyclerview.setlayoutmanager(layout); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -