1

I have tried and worked for listview with section view between list items and it works fine for me . When I tried for gridview it is showing till the each item width not full row because obviously gridview comes with 2 or more items in a row .

So I want to make full row as section item between grid view items . I searched elsewhere before posting here so can anyone help me ??

Rizvan
  • 2,335
  • 2
  • 23
  • 42

1 Answers1

1

I don't think you can do that with GridView widget because it works in terms of columns. You can hack it with adding 3 Views in a row if that will work for you, but it will have obvious drawbacks such as you won't be able to put a text there that will take more that 1/3 of the screen width.

Use RecyclerView vs StaggeredGridLayoutManager instead: http://enoent.fr/blog/2015/01/18/recyclerview-basics/

Gennadii Saprykin
  • 4,505
  • 8
  • 31
  • 41