I need to create a gallery but I do not know how to load the images from the card into the view. Can anyone help me which API to use?
I need to create a gallery but I do not know how to load the images from the card into the view. Can anyone help me which API to use?
You will use a library called Glide or Picasso . They try to load the images into the lists without crashing Android.
Example usage:
Glide.with(this).load(imagem).into(imageView);
//this é o contexto
//imagem pode ser um link da internet, um drawable...qualquer coisa carrega.
//imageView é o lugar onde vai carregar
It works both in the activity and in fragments or adapters.