yanzhenjie / Album

:watermelon: Album and Gallery for Android platform.
https://github.com/yanzhenjie/Album
Apache License 2.0
2.51k stars 507 forks source link

缩略图都是白色的 #201

Open ProgrammerXZ opened 6 years ago

ProgrammerXZ commented 6 years ago

87888bea-7017-4db5-bd01-42e467199a27

ProgrammerXZ commented 6 years ago

初始化代码: Album.image(House_Picture_Upload.this) // Image selection. .multipleChoice() .camera(true) .columnCount(3) .selectCount(9) .checkedList(mAlbumFiles) .onResult(new Action<ArrayList>() { @Override public void onAction(@NonNull ArrayList result) { mAlbumFiles = result; AlbumFile albumFile = result.get(0); LJLog.e("path="+albumFile.getPath()); LinearLayout layout = view.findViewById(R.id.upload_gridview_item_linerlayout); layout.setBackground(BitmapDrawable.createFromPath(albumFile.getPath())); ImageView imageView = view.findViewById(R.id.item_image); imageView.setImageResource(0); TextView textView = view.findViewById(R.id.item_title); textView.setTextColor(Color.rgb(255, 255, 255)); } }) .onCancel(new Action() { @Override public void onAction(@NonNull String result) { } }) .start();

            }
6Weiqi commented 6 years ago

应该是你的图片加载器的问题

Reathin commented 6 years ago

需要配置loader,如果是Picasso不要忘了load的时候加上 "file://"

Dream97 commented 6 years ago

请问楼上loader在哪里配置?

Reathin commented 6 years ago

image image 作者主页开头就有啊 @Dream97

huangShan-gitHub commented 2 years ago

碰到和楼主一样的问题了