隐藏虚拟键盘

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

你可能感兴趣的:(xml,api,null,keyboard)