How to make Android GridLayout compatible to older version? How to make Android GridLayout compatible to older version? android android

How to make Android GridLayout compatible to older version?


A better way of doing this is using Android Support Library.Since resource files are also involved it cannot be included as .jar library.

Update the android SDK and support files.

  1. Add your-android-sdk\extras\android\support\v7\gridlayout project to eclipse.
  2. Make the project as library.
  3. Add this library project to your working project.

To use gridlayout in XML use it like this

<android.support.v7.widget.GridLayout> </android.support.v7.widget.GridLayout>

Hope that was helpful.