I want to create a GridLayout able to run in all the APIs.
The thing is, when i use GridLayout instead of android.support.v7.widget.GridLayo
Just change the format a little bit: androidx.gridlayout.widget.GridLayout newGrid= (androidx.gridlayout.widget.GridLayout) findViewById (R.id.yourGrid);