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.
- Add
your-android-sdk\extras\android\support\v7\gridlayout
project to eclipse. - Make the project as library.
- 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.