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.

Probleme bouton et changementy d'états.

Featured Replies

Posté(e)

Salut.

J'aimerais utiliser les lignes de code de cette page: http://developer.android.com/intl/fr/reference/android/widget/ImageButton.html

afin de donner plusieurs états à mon bouton.

Le petit soucis est que je suis les instructions et au moment ou je dois créer mon xml dans drawable avec ces lignes:

 <?xml version="1.0" encoding="utf-8"?>


          android:drawable="@drawable/button_pressed" /> 
          android:drawable="@drawable/button_focused" /> 

J'obtiens des erreurs difficlement compréhensibles:

ERROR Error parsing XML: XML or text declaration not at start of entity    buttonsearch.xml    /monprog 1.6/res/drawable    line 1    Android AAPT Problem

The processing instruction target matching "[xX][mM][lL]" is not allowed.    buttonsearch.xml    /monprog 1.6/res/drawable    line 1    Android XML Format Problem

Pourriez-vous me donner un petit coup de main ou m'orienter sur la bonne méthode à utiliser?

Posté(e)
  • Auteur

Oui, je découvre ton blog et je lui trouve énormément de qualités!

Posté(e)

Merci :) Hésite pas à demander si y'a des sujets qui te semblent intéressants de traiter. Je ne suis pas compétent dans le "tout" Android mais tout ce qui concerne le "UI" n'a normalement pas trop de secrets pour moi vu que c'est principalement ce qui m'intéresse.

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.