我正在尝试使用相同的方法替换多个图片(来自本地存储)。过一段时间后,黑屏闪烁消失了,开始正常工作。
观看视频:http://sendvid.com/q92ry52l
我只是这样做:mSimpleDraweeView.setImageURI("file://" + imagesList.get(index));
XML代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/fresco_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
我正在使用 'com.facebook.fresco:fresco:0.13.0' 的 SimpleDraweeView。如何避免黑色闪烁?
谢谢。