Имам просто примерно приложение WebView, което има следното оформление:
<?xml version="1.0" encoding="utf-8"?>
<!-- This file is /res/layout/main.xml -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/urlToLoad"
android:hint="Type url to load"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<Button android:id="@+id/webviewgo"
android:text="Go"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false" />
<com.example.exWebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
Работи според очакванията, но се интересувам от насочване на събитие от клавиатурата към WebView. В момента, дори ако избера WebView (и превъртя и т.н.), когато напиша произволен клавиш, той отива в контролата EditText... което не е това, което искам.
Как да накарам събитие от клавиатурата да отиде в WebView вместо това?