1.在webview中遇到html有输入框,而且需要全屏的时候
这时候即使html写了获取焦点也不会推动webview的内容,这里涉及到AndroidBug5497的问题,在某网大牛发出的代码在我项目里还是有点问题,于是我修改了一下,具体如下:
public class AndroidBug5497Workaround {
private int mDownY;
public static void assistActivity (Activity activity) {
new AndroidBug5497Workaround(activity);
}
private WebView mChildOfContent;
private int usableHeightPrevious;
private LinearLayout.LayoutParams frameLayoutParams;
Activity mActivity;
private AndroidBug5497Workaround(Activity activity) {
mActivity = activity;
LinearLayout content = (LinearLayout) mActivity.findViewById(R.id.rootview);
mChildOfContent = (WebView) content.getChildAt(