Which API to use to create a gallery

0

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?

    
asked by anonymous 09.10.2016 / 00:48

1 answer

0

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.

    
10.10.2016 / 15:58