-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用bitmapTools的display方法在ListView中加载多张图片时,存在上下滑动时中间部分的图片会消失的问题 #3
Comments
是否图片过大,代码中display的时候没有传入高宽? |
加载14张网络图片,大小均为20K左右,排除图片过大的原因;使用四个参数的display方法传入宽高,在上下滑动的时候还是存在同样的问题。且重复滑动,消失图片的位置不同。怀疑是否为使用弱引用而没有使用LruCache的原因? |
代码中并没有使用弱引用来做缓存,是否方便提供部分代码?我本地测试一下 |
import android.content.Context; import java.util.ArrayList; public class RecycleAdapter extends RecyclerView.Adapter<RecycleAdapter.RecycleViewHolder> {
} public class MainActivity extends ActionBarActivity {
} 布局就不展示了,随便写一个就行。进入页面之后请上下重复滑动,中间部分有几张图片会消失。 |
No description provided.
The text was updated successfully, but these errors were encountered: