RecyclerView Glide加载图片刷新时会闪一下

时间:2025-04-01 11:55:48
@Override     protected void convert(BaseViewHolder helper, data) {           LinearLayout ic_linearLayout = (LinearLayout)(.ic_linearLayout);         params = ic_linearLayout.getLayoutParams();         = ()/16*9;         ic_linearLayout.setLayoutParams(params);         (mContext).load(())..into((ImageView) (.ic_image));     } <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:andro xmlns:tools="/tools"     android:     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical">     <ImageView         android:         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:adjustViewBounds="true"         android:scaleType="fitXY"         tools:src="@mipmap/bond_ic_game_1" />     <ImageView         android:         android:layout_width="60dp"         android:layout_height="wrap_content"         android:layout_gravity="right"         android:layout_marginRight="12dp"         android:layout_marginTop="7dp"         android:adjustViewBounds="true"         android:scaleType="fitXY"         tools:src="@mipmap/bond_ic_game_ready" /> </LinearLayout>