简体   繁体   中英

Unable to use columnCount attribute in android.support.v7.widget.GridLayout

I am trying to use columnCount attribute in android.support.v7.widget.GridLayout but getting error that

Error:(2) No resource identifier found for attribute 'useDefaultMargins' in package

I have used xmlns:app="http://schemas.android.com/apk/res-auto

Try changing :

xmlns:app="http://schemas.android.com/apk/res-auto" 

to

xmlns:app="http://schemas.android.com/apk/lib/com.package.class"

Update your library to

compile 'com.android.support:gridlayout-v7:23.2.0'

check this answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM