Closed blinkmacalahan closed 8 years ago
I will look at it later.
Sorry for late reply.
webViewStyle
equals following.
So your suggestion is probably good!
So, I have applied it to this project.
<item name="focusable">true</item>
<item name="focusableInTouchMode">true</item>
<item name="scrollbars">horizontal|vertical</item>
This could possibly be a duplicate of Issue #1, but I'm creating a separate issue just in case.
When tapping the text input/field the input got focus and a cursor appeared; however, Android's soft keyboard never appeared. After hacking around and through trial and elimination, I found that removing all the code this class had and only using the constructors provided that the issue still existed. So I looked at Android's WebView constructor with 2 parms and noticed it passes com.android.internal.R.attr.webViewStyle for the defStyleAttr parameter. I took a shot in the dark and tried passing android.R.attr.webViewStyle as the defStyleAttr parm instead of 0 and now the soft keyboard appears.
So the fix is to remove this constructor:
and instead use this one:
I have no idea why this fixes the issue. I would have to take a closer look at what android.R.attr.webViewStyle declares.