私は viewpager で webview を使用したい、これは webview の私のコードです:
String MyHtml="this is my html 1 <br />this is my html 2 <br />this is my html 3 <br />this is my html 4 <br />this is my html 5 <br />this is my html 6 <br />this is my html 7 <br />this is my html 8 <br />this is my html 9 <br />this is my html 10 <br />this is my html 11 <br />this is my html 12 <br />this is my html 13 <br />this is my html 14 <br />this is my html 15 <br />this is my html 16 <br />this is my html 17 <br />this is my html 18 <br />this is my html 19 <br />this is my html 20 <br />";
MyWebView=(WebView)findViewById(R.id.webView1);
MyWebView.setPadding(0, 0, 0, 0);
MyWebView.setInitialScale(getScale());
MyWebView.loadData(MyHtml, "text/html", "UTF-8");
MyWebView.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
return (event.getAction() == MotionEvent.ACTION_MOVE);
}
});
今、私は webview の最後の表示行を取得したいですか? 次のページの次の行をロードするには!