I have tried to incorporate the GridLayout from the support library, but it is not working. My target build is for API version 10. The XML code I am using is shown below:
update eclipse, adt (even to version 20 preview 2) , sdk manager and the support library .
try to restart eclipse and see if that helps.
try to create a totally new project (with low sdk being used for the min and target sdk , but not for the one specified on the project.properties file ) and drag the gridLayout in the visual editor. this will automatically add the needed library.
if nothing helps , try this example : http://code.google.com/p/android-playground/source/checkout
I try a number of solution provided by different contributor (eg restart Eclipse, removing and adding libary etc)
After looking at this site, I did the following:
After that everything works for me. I am not sure which step is the one that fix it but there is no harm trying.
It seems you are doing for Android L but anyway include this line inside your styles.xml.
<item name="windowActionBar">false</item>
Update your Compatibility Library to revision 8, then follow the instruction in README.txt file in "extras\android\compatibility\v7\gridlayout" folder.
Hope this help you.
Notes: You must use grid:columnCount="6" instead of android.support.v7.widget.columnCount="6" because you declare the prefix "grid" in xmlns:grid="http://schemas.android.com/apk/res-auto".