I am fighting with focus management of WebView: WebView messes with focus management of classic components. Here is a simple application with just an EditBox and a WebView i
Just add android:focusable="true" to your WebView layout:
<WebView android:id="@+id/uiContent"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:focusable="true"/>
make sure that parent layout that extends "ViewGroup
" doesn't have property
android:descendantFocusability = "blocksDescendants"
which prevent child layout from getting focused
This helped my problem for focus:
Webview.requestFocus(View.FOCUS_DOWN|View.FOCUS_UP);
and this for sensitive touch:
Webview.getSettings().setLightTouchEnabled(true);