Closed ridamnibjia closed 2 years ago
You are using the wrong namespace please you app not android
use app:ItemCount
I have the same problem.
Yes with app namespace also, still facing the same issue.
I'm using the app namespace and experiencing the same problem.
I have the same error log... Why other libraries are working but not this one...
AAPT: error: attribute layout_MarginTop (aka com.example.project:layout_MarginTop) not found. please give solution
You can edit the java part, this seems to be the best solution for now
Please check the latest version of the library.
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