Android进阶之路Android开发Android技术知识

车牌输入框以及键盘

2019-12-25  本文已影响0人  猪八戒表哥
image.png
image.png

车牌输入框以及自带键盘,支持电动车车牌,7位车牌以及8位车牌用法简单
用法:

 maven { url "https://jitpack.io" }
implementation 'com.gitee.ZhuBaJieBiaoGe:licensePlate:V1.1.0'
汽车车牌 
    <com.xieyx.licenseplate.ElectricLicensePlateTextView
                    android:id="@+id/plate_electricView"
                    android:layout_width="match_parent"
                    android:layout_height="40dp"/>

 plateView.setPlateTo8();切换8位车牌
 plateView.setPlateTo7();切换7位车牌
getPlateText();//获取输入内容
setPlateText();设置预显示内容

电动车车牌

                <com.xieyx.licenseplate.LicensePlateTextView
                    android:id="@+id/plate_View"
                    android:layout_width="match_parent"
                    android:layout_height="40dp"
                    android:visibility="gone"/>
上一篇下一篇

猜你喜欢

热点阅读