I'm putting together an album, and with the code below, I can see all the images:
@Override
public View getView(int position, View view, ViewGroup viewGroup) {
view = getLayoutInflater().inflate(R.layout.grid_item_layout , viewGroup, false);
ImageView image = (ImageView) view.findViewById(R.id.image);
image.setImageURI(Uri.parse(getItem(position).toString()));
return view;
}
Sointhisway,thememoryofthedevicerunsouttoofast.SoIfoundtwoAPIsthatshoulddothesamejob:PicassoandGlide.Butbyusingtheselines,theimagesdonotappearinImageView.
@OverridepublicViewgetView(intposition,Viewview,ViewGroupviewGroup){view=getLayoutInflater().inflate(R.layout.grid_item_layout,viewGroup,false);ImageViewimage=(ImageView)view.findViewById(R.id.image);//Nenhumadasduasabaixofunciona//Picasso.with(getApplication()).load(Uri.parse(getItem(position).toString())).into(image);//Glide.with(GaleriaActivity.this).load(Uri.parse(getItem(position).toString())).into(image);returnview;}
Result:
How can I resolve this?