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

How to use masking char ? #94

Closed samair closed 4 years ago

samair commented 4 years ago

I was trying to use the masking char and failed . Here is what i did:

  <com.mukesh.OtpView
            android:id="@+id/otp_view"
            android:layout_width="wrap_content"
            android:layout_height="102dp"
            android:layout_marginTop="10dp"
            android:inputType="number|textPassword"
            android:itemBackground="@color/browser_actions_bg_grey"
            android:textColor="@android:color/black"
            android:textSize="14sp"
            app:hideLineWhenFilled="true"
            app:itemCount="6"
            app:lineColor="#EE5B2C"
            app:maskingChar="@string/masking_Char"
            app:viewType="line" />

Any help is welcome..

mukeshsolanki commented 4 years ago

try adding something like this app:OtpMaskingChar="*"