Java imageview动画gif仅显示静态
我有这个代码,在视图中显示横幅,但只显示静态图像,即使它是动画gif,如何使动画gif的工作Java imageview动画gif仅显示静态,java,android,xml,eclipse,image,Java,Android,Xml,Eclipse,Image,我有这个代码,在视图中显示横幅,但只显示静态图像,即使它是动画gif,如何使动画gif的工作 ImageLoader.getInstance().displayImage(ConstValue.CONTENTS_IMAGE+"big/"+companyMap.get("banner"), imgthumb, options, animateFirstListener); java代码 ImageLoader.getInstance().displayImage(ConstValue.C
ImageLoader.getInstance().displayImage(ConstValue.CONTENTS_IMAGE+"big/"+companyMap.get("banner"), imgthumb, options, animateFirstListener);
java代码
ImageLoader.getInstance().displayImage(ConstValue.CONTENTS_IMAGE+"big/"+companyMap.get("banner"), imgthumb, options, animateFirstListener);
xml代码
ImageLoader.getInstance().displayImage(ConstValue.CONTENTS_IMAGE+"big/"+companyMap.get("banner"), imgthumb, options, animateFirstListener);
<ImageView
android:id="@+id/img_thumb"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:src="@drawable/thumb_bg" />
您可以使用在ImageView中显示gif动画。用法:
ImageLoader.getInstance().displayImage(ConstValue.CONTENTS_IMAGE+"big/"+companyMap.get("banner"), imgthumb, options, animateFirstListener);
Glide.with(context).load(YOUR_IMAGE_URL).asGif().crossFade().into(YOUR_IMAGE_VIEW);
使用android.graphics.Movie如何使用它?我会因此出错,还有其他方法吗