NumberCodeView
一個類似微信支付和支付寶支付的時候輸入密碼面板的控件。
使用方式
普通樣式
正常情況下,你可以把控件的聲明寫到你的 '.xml' 文件裏面。
<com.lkp.numbercodeview.normal.NumberCodeView
android:id="@+id/numberCodeView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
numbercodeview:isPassword="true"/>
可以使用 numbercodeview:isPassword
這個屬性去控制是否是密碼,密碼的話會用黑點替代數字。
底部面板樣式
使用底部樣式,那麼久可以從界面的底部彈出來。
可以通過以下代碼進行調用:
BottomSheetNumberCodeViewActivity.show(this, mIsPassword);
isPassword
屬性
如果是密碼,那麼輸入框裏面的數字將會用 ● 取代。
截屏
LICENSE
項目地址:https://github.com/linkaipeng/NumberCodeView