I have been trying to add EditTexts and WebView in a layout. The trouble is with focussing on WebView. I have tried to look through the answers on the web and Stackoverflow
I encountered the same problem a few weeks ago. The answer is simple, set an onTouchListener to the webview and then set it up as follows:
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_UP:
if (!v.hasFocus()) {
v.requestFocus();
}
break;
}
return false;
}
Edit: Infact I found an exact duplicate in the "Related" category, read this.
Let me know if its not what you're looking for.