유니버설 이미지 로더를 사용하여 이미지를로드하는 중 이상한 문제가 발생합니다. 모든 구석이 둥근 이미지를 표시하고 싶지만 출력 이미지가 요구 사항에 따라 표시되지 않습니다.유니버설 이미지 로더를 사용하는 동안 이미지 모서리가 둥글 리지 않습니다
ImageLoaderUniversal.ImageLoadWithRoundedCorners(mContext,ImageURI, mFeedIV);
을로드 이미지 마지막 코드 - -
여기<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:id="@+id/container_rl"
android:background="@color/transparent_color"
android:layout_height="300dp">
<ImageView
android:id="@+id/object_iv"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<View
android:background="@drawable/rounded_corner_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/name_tv"
android:layout_centerInParent="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginLeft="@dimen/space_20"
android:layout_marginRight="@dimen/space_20"
android:text="@string/app_name"
android:textColor="@color/white"
android:textSize="@dimen/size_18"/>
</RelativeLayout>
코드가 어댑터에 - 아래
어댑터 항목 XML 내 코드입니다public static void ImageLoadWithRoundedCorners(Context mContext,final String URl, final ImageView imageView){
DisplayImageOptions options = new DisplayImageOptions.Builder()
.showImageOnLoading(R.mipmap.ic_default_media)
.showImageForEmptyUri(R.mipmap.ic_default_media)
.showImageOnFail(R.mipmap.ic_default_media)
.cacheOnDisk(true)
.displayer(new RoundedBitmapDisplayer(25))
.build();
ImageLoaderConfiguration.Builder builder = new ImageLoaderConfiguration.Builder(mContext).defaultDisplayImageOptions(
options).memoryCache(new WeakMemoryCache());
ImageLoaderConfiguration config = builder.build();
imageLoader = ImageLoader.getInstance();
if (!imageLoader.isInited()) {
imageLoader.init(config.createDefault(mContext));
}
imageLoader.displayImage(URl, imageView, options);
}
여기에 추가 위의 코드를 사용하여 이미지가 표시되는 방식을 첨부 한 scrren입니다.
내 문제에 대한 해결책을 제공해주십시오.
TIA
이 시도 이상의 참조]을 참조로 저
근무와 같은 결과 – Ravi