当前位置: 代码迷 >> Android >> android自定义键盘有关问题
  详细解决方案

android自定义键盘有关问题

热度:47   发布时间:2016-05-01 21:51:03.0
android自定义键盘问题
现在自定义了键盘对一个edittext输入密码,设定edittext的属性password=“true”,而要隐藏自带的软键盘,设定为edit.setInputType(InputType.TYPE_NULL),此时冲突,输入的密码是明文,将setInpuType去除,又会弹出自带键盘,我该怎么设置,哪位高手能帮忙解决一下。

------解决方案--------------------
没想过。。。求教
------解决方案--------------------
探讨

本人已搞定,供大家参考:
password = (EditText) findViewById(R.id.edittext_firststylebyhand_enterpassword);
password.setInputType(InputType.TYPE_NULL);
然后在click事件里设置:
password.setTransformationMethod(Password……
  相关解决方案