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.

[RESOLU] [ListView] problème de background

Featured Replies

Posté(e)

Salut tout le monde,

Je rencontre actuellement un petit problème avec une liste.

J'ai mis une ListView dans LinearLayout qui possède un background (un png) :

liste1http://farm5.static.flickr.com/4005/4250905954_e8da7fda0e_o.png[/img]

oui c'est moche, mais c'est pour l'exemple. J'ai isolé le problème pour voir si ça persistait et que ce n'était pas lié à un effet de bord d'autres View de l'activité.

Et donc, lorsque je fais défiler la liste, j'ai un fond noir sur chaque item :

liste2http://farm5.static.flickr.com/4006/4250905964_eff4be6096_o.png[/img]

Est-ce que quelqu'un sait comment éviter ça ?

Merci de votre aide !

Modifié par cyril_cc

Posté(e)

Il te suffit de mettre l'attribut XML suivant à ta Listview :

android:cacheColorHint="#00000000"

. Ce "problème" est en fait une optimisation de la liste pour la rendre plus fluide.

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.