Bonjour
j'ai suivie le tutorial gallery connectée .Il prend en compte un seul type d'image.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 private ArrayList<URL> buildListImages() { int nbTotalImage = 21; ArrayList<URL> listFic = new ArrayList<URL>(); for(int i = 1; i <= nbTotalImage; i++) { try { listFic.add(new URL(SERVER_IM + "/" + i + ".jpg")); } catch (MalformedURLException e) { Log.e("DVP Gallery", "Erreur format URL : " + SERVER_IM + "/" + i + ".jpg"); e.printStackTrace(); } } return listFic; }
Je veux q'elle supporte plusieurs type d'images
Partager