Link: https://github.com/mukeshsolanki/android-otpview-pinview
..... dependencies { ... compile 'com.mukesh:otpview:1.0.1' }
<com.mukesh.OtpView android:id="@+id/otp_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#cccccc" android:inputType="number" android:textColor="#FFFFFF" app:otp="1234" app:text_background_color="@color/colorAccent" > </com.mukesh.OtpView>