android-flip
android-flip copied to clipboard
Webview with scroolTo method when flip.
Hello! I've face with this issue, in getView I'll return a webview and when flip this webview will scrollTo position in webview, here is my code: public View getView(int position, View convertView, ViewGroup parent) { WebView mWeb = null; if (convertView == null) { mWeb = new WebView(parent.getContext()); String mCustomHtml = "
Test 0
"; for (int i = 1; i < 20; i++) { mCustomHtml += "Test " + String.valueOf(i) + "
"; } mWeb.loadData(mCustomHtml, "text/html; charset=UTF-8", null); } else { mWeb = (WebView) convertView; mWeb.scrollTo(0, position * 200); } return mWeb; }When flip, the page 2 and page 3 don't have any content.
Any idea?