Tôi đang tải dữ liệu từ một Chuỗi và lần đầu tiên khi tôi cuộn xuống chế độ xem web, nhấp nháy vài lần.Strange webview black nhấp nháy khi cuộn
Đây là mã của tôi, nơi tôi load dữ liệu:
webview.loadDataWithBaseURL(null, message.getmContent(), "text/html", "UTF-8", null);
Và 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"
/>
bạn đã đặt chế độ xem web của mình trong chế độ xem cuộn? Nếu có, hãy thử gỡ bỏ chế độ xem cuộn. –
thử android: focus = false –
rồi đặt android: scrollingCache = "false" –