[英]No resource identifier found for attribute 'counterEnabled'
<android.support.design.widget.TextInputLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/input_email"
app:counterEnabled="true"
app:counterMaxLength="10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/email_hint"
android:ems="10"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/input_password"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password_hint"
android:inputType="textPassword"/>
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/button_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save"
android:layout_gravity="end"/>
<TextView
android:id="@+id/success"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/success"
android:visibility="gone"/>
Whats the problem? 有什么问题? I got compile 'com.android.support:appcompat-v7:22.2.0' in my gradle file, also compile 'com.android.support:design:22.2.0' .Why is this not working? 我在我的gradle文件中编译'com.android.support:appcompat-v7:22.2.0',也编译'com.android.support:design:22.2.0'。为什么这不起作用? and why do i get this strange error? 为什么我会得到这个奇怪的错误?
I think the problem in 'com.android.support:design:22.2.0', because when i use 'com.android.support:design:23.0.1' ,I have the same problem. 我认为'com.android.support:design:22.2.0'中的问题,因为当我使用'com.android.support:design:23.0.1'时,我遇到了同样的问题。 No resource identifier found for attribute 'counterEnabled' , than change 'com.android.support:design:23.0.1' to 'com.android.support:design:23.1.1' ,this problem has been solved. 找不到属性'counterEnabled'的资源标识符 ,而不是将'com.android.support:design:23.0.1'更改为'com.android.support:design:23.1.1',此问题已得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.