當我從字符串中加載數據,就當我向下滾動網頁視圖第一次閃爍幾次閃爍。奇怪的WebView黑色滾動
這是我的代碼,其中我加載數據:
webview.loadDataWithBaseURL(null, message.getmContent(), "text/html", "UTF-8", null);
和XML:
<WebView
android:id="@+id/web_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/footer"
android:layout_below="@id/message_title"
android:layout_margin="4dp"
/>
你把你的網頁視圖滾動視圖內?如果是,請嘗試刪除滾動視圖。 –
嘗試機器人:聚焦=假 –
然後設置機器人:scrollingCache = 「假」 –