android中的虚线输入字段,用于确认代码 [英] Dashed input field in android for confirmation codes
本文介绍了android中的虚线输入字段,用于确认代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为Android布局中的数字创建一个虚线输入字段,例如 _ _ _ _,我可以在其中添加4个数字并将其添加到我的主要活动中。我进行了很多搜索,但没有找到更好的解决方案。
I am trying to create a Dashed input field for numbers in android layout, such as " _ _ _ _ " where I can add 4 numbers and get them in my main activity. I have searched a lot but not getting any better solution.
推荐答案
使用此库可以实现您的目标。
https://github.com/glomadrian/material-code-input
Use this library to achieve your objective. https://github.com/glomadrian/material-code-input
这篇关于android中的虚线输入字段,用于确认代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文