Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Affichage de plusieurs images à la suite

Featured Replies

Posté(e)

Bonjour à tous,

Habituer à programmer sous php, je commence la programmation sous Android et je bloque dans l'affichage d'images.

Je m'explique, je parse un flux xlm contenant l'url d'images et je veux les afficher les une a la suite des autres.

Ce que je fais :

main.xlm

<ImageView android:id="@+id/ImageView01"
			   android:layout_height="wrap_content"
			   android:layout_width="wrap_content" />

fichier java

 ImageView imageView =(ImageView)findViewById(R.id.ImageView01);
 for (Feed feed : feeds) {
	 UrlImageViewHelper.setUrlDrawable(imageView, feed.getDescription());
	 Log.e("feedPlayer", feed.getDescription());
 }

Ce que j'obtient :

=> Dans le LogCat : toutes les URL des images

=> Dans l’appareil émulé : L'affichage de la dernier photo du flux

Je vous remercie d'avance pour votre aide.

Posté(e)

Si dans ton layout (main.xml), tu n'as qu'une ImageView, il est normal que tu n'affiches qu'une seule image.

Soit tu connais à l'avance le nombre d'images à afficher, et tu prévois les ImageView dans ton layout en conséquence. Soit ce nombre est variable, et alors tu peux peut-être t'orienter vers les ListView pour l'affichage de tes éléments

  • 2 weeks later...

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.