2

When I put grid layouts in my xml file, it doesn't do anything but just shows a gray box. Plus, it doesn't have attributes like columnCount or weight. If I drag several view items and put them under the grid layout, I can't see anything.. What should I do here?

enter image description here

ankuranurag2
  • 2,300
  • 15
  • 30
Now.Zero
  • 1,147
  • 1
  • 12
  • 23

3 Answers3

2

Implement below gradle in your build.gradle for GridLayout.

implementation 'com.android.support:gridlayout-v7:28.0.0-rc02'

after Implement just clean and rebuild your project.

Mehul Kabaria
  • 6,404
  • 4
  • 25
  • 50
0

For me just going into rebuild project under build option at the top worked perfectly

0

After Dropping the Layout Click on Build -> Make Project.