2

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

1 Answer 1

7

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.

Sign up to request clarification or add additional context in comments.

2 Comments

is this answer helped ?@Manish
Good pointer .. used this specifically: xmlns:app="http://schemas.android.com/apk/lib/android.support.v7.widget.GridLayout"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.