Requestfoucs (); invalid.
Requestfoucsfromtouch (); invalid.
Webview.settouchlistener; invalid.
The problem lies in:
When inheriting WebView, note the construction method:
Public Commonwebview {
super (context);
Init ();
}
Public Commonwebview (context, AttributeSet attrs) {
Super (context, attrs);
Init ();
}
Public Commonwebview (context, AttributeSet attrs, int defstyleattr) {
Super (context, attrs, defstyleattr);
init ();
}
Defstyleattr can not pass 0, the following error writing:
Public Commonwebview {This
(context,null,0);
}
Public Commonwebview (context, AttributeSet attrs) {This
(context, attrs,0);
}
Public Commonwebview (context, AttributeSet attrs, int defstyleattr) {
Super (context, attrs, defstyleattr);
init ();
}
The above mentioned is small to introduce the Android WebView can not eject the soft keyboard reasons and solutions, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!