我正在从一个字符串中加载数据,在首次向下滚动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"
/>