How do I make a GridLayout full width inside a ListView item?

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Jun 4, 2018 11:31:22 AM via Website

I am using a GridLayout for my ListView items. However my GridView do not fill the entire width on my ListView row. I have tried the following code, but no avail:

grid.setLayoutParams(new ListView.LayoutParams(
ListView.LayoutParams.MATCH_PARENT,
ListView.LayoutParams.WRAP_CONTENT));

Please assist.

Be the first to answer