What API to use to create a gallery

Asked

Viewed 49 times

0

I need to create a gallery but I don’t know how to load the images from the card in the view. Can anyone help me which API to use?

1 answer

0


You will use a library called Glide or Picasso. They try to load the images in the lists without crashing Android.

Example of use:

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

Works on both Activity and fragments or adapters.

  • thanks helped a lot

Browser other questions tagged

You are not signed in. Login or sign up in order to post.