Eclipse giving an error of android.support.v7.widget.GridLayout failed to instantiate

后端 未结 4 1531
野趣味
野趣味 2020-12-19 03:38

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:

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 03:57

    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".

提交回复
热议问题