首页
编程教程
编程导航
编程博文
常见问题
编程问答
编程百科
编程实例
软件教程
操作系统
办公软件
硬件设备
移动数码
对于EditText,如何不使用Spinner强制用户或接受某些字符串?
编程问答
2022-04-26
问题描述
| 我不想使用微调器,因为它占用了太多空间。 如何限制用户输入字符串数组中包含的文本,例如{\“ Celery \”,\“ Carrot \”,\“ Apple \”}?
解决方法
您必须使用列表对话框与微调框类似,但是占用的空间更少。还要使edittext的editable为false。这样它将只接受字符串数组中存在的那些值。
edittext
spinner
何不
使用
使用
使用
字符串
字符串
强制
接受
用户
用户
相关问答
matplotlib报错:AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?
使用本地python环境可以成功执行 import pandas as pd impor...
gitlab登录失败,报错:This challenge page was accidentally cached by an intermediary and is no longer available.
设置时间 控制面板
后端开发常见错误
错误1:Request method ‘DELETE‘ not supported 错误还原:...
docker常见错误
错误1:启动docker镜像时报错:Error response from daemon:...
idea常见错误
错误1:private field ‘xxx‘ is never assigned 按Alt...
pip安装依赖失败
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...