mukeshsolanki / android-otpview-pinview

A custom view to enter otp of different sizes used usually in cases of authentication.
MIT License
707 stars 207 forks source link

AAPT: error: attribute app:OtpItemCount not found. #113

Closed ridamnibjia closed 2 years ago

ridamnibjia commented 3 years ago

Subject of the issue

OtpItemCount or any app:attribute doesn't work.

Steps to reproduce

This is my code <com.mukesh.OtpView android:id="@+id/otp_view" android:layout_centerHorizontal="true" android:OtpItemCount="5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="72dp" android:inputType="number" android:itemBackground="@color/colorPrimary" android:textColor="@android:color/white" /> Which is giving me this error: AAPT: error: attribute android:OtpItemCount not found.

Please help!!!

Expected behaviour

It should accept the attribute and work accordingly.

Actual behaviour

Tell us what happens instead

mukeshsolanki commented 3 years ago

You are using the wrong namespace please you app not android

Joseph-TSS commented 3 years ago

use app:ItemCount

Andromeda606 commented 3 years ago

I have the same problem.

amit7127 commented 3 years ago

Yes with app namespace also, still facing the same issue.

vinnykawa commented 3 years ago

I'm using the app namespace and experiencing the same problem.

abduqahhoruz commented 3 years ago

I have the same error log... Why other libraries are working but not this one...

Yash5454 commented 2 years ago

AAPT: error: attribute layout_MarginTop (aka com.example.project:layout_MarginTop) not found. please give solution

Andromeda606 commented 2 years ago

You can edit the java part, this seems to be the best solution for now

mukeshsolanki commented 2 years ago

Please check the latest version of the library.