现在的位置: 首页 > 综合 > 正文

隐藏虚拟键盘

2013年10月01日 ⁄ 综合 ⁄ 共 467字 ⁄ 字号 评论关闭

setInputType(0)

public class
TextView
extends View
implements ViewTreeObserver.OnPreDrawListener

public void setInputType (int type)


Since: API Level 3
Set
the type of the content with a constant as defined for inputType. This
will take care of changing the key listener, by calling
setKeyListener(KeyListener), to match the given content type. If the
given content type is TYPE_NULL then a soft keyboard will not be
displayed for this text view.

Related XML Attributes
android:inputType

See Also
getInputType()
setRawInputType(int)
InputType

抱歉!评论已关闭.