Jump to content

Probleme bouton et changementy d'états.


Profete162

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...