【问题标题】:Unable to use columnCount attribute in android.support.v7.widget.GridLayout无法在 android.support.v7.widget.GridLayout 中使用 columnCount 属性
【发布时间】:2016-06-22 08:25:40
【问题描述】:

我正在尝试在android.support.v7.widget.GridLayout 中使用 columnCount 属性,但出现错误

错误:(2) 在包中找不到属性“useDefaultMargins”的资源标识符

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

【问题讨论】:

    标签: android widget android-support-library grid-layout android-library


    【解决方案1】:

    尝试改变:

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

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

    将您的库更新为

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

    检查this的答案。

    【讨论】:

    • 这个答案有帮助吗?@Manish
    • 好指针 .. 专门用这个:xmlns:app="http://schemas.android.com/apk/lib/android.support.v7.widget.GridLayout"
    猜你喜欢
    • 2016-07-24
    • 2013-09-01
    • 2012-09-10
    • 2018-07-23
    • 2019-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多