takahirom / webview-in-coordinatorlayout

248 stars 71 forks source link

the webview can not get focused on using nestedwebview #1

Closed itemon closed 8 years ago

itemon commented 8 years ago

pls fix

blinkmacalahan commented 8 years ago

I'm not sure if this will solve your issue, but I noticed using this that the softkeyboard would not pop up when an HTML text input was selected. The input would get focus and you could see a cursor, but the keyboard never popped up.

I fixed this issue by passing in android.R.attr.webViewStyle as the 3rd parameter in the "this" call in the constructor with 2 parameters. See the code below:

public NestedWebView(Context context, AttributeSet attrs) {
    this(context, attrs, android.R.attr.webViewStyle);
}
takahirom commented 8 years ago

Thanks!!! I could not solve this issue!