Probleme imageView android
Résolu
angelus1821
Messages postés
191
Date d'inscription
Statut
Membre
Dernière intervention
-
ghaouar Messages postés 174 Date d'inscription Statut Membre Dernière intervention -
ghaouar Messages postés 174 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
dans mon application, j'ai essayé de mettre des images, mais elle ne s'affichent pas . J'ai donc créer un nouveau projet basic qui contient qu'une image à afficher ( le projet helloWorld + une image), voici mon fichier xml :
et ma classe :
Pourtant j'ai une image dans chaque dossier drawable qui s'intitule icon.png, et quand je lance mon application elle ne veut pas s'afficher .....
Pourtant j'ai regarder plusieurs tutoriels et ils disent tous la meme chose, je suis les indications mais rien n'y fait, l'image ne s'affiche pas ......
Un grand merci pour votre aide!!!
dans mon application, j'ai essayé de mettre des images, mais elle ne s'affichent pas . J'ai donc créer un nouveau projet basic qui contient qu'une image à afficher ( le projet helloWorld + une image), voici mon fichier xml :
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content"> android:src="@drawable/icon" </ImageView> </LinearLayout>
et ma classe :
package fr.src; import android.app.Activity; import android.os.Bundle; public class Image extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } }
Pourtant j'ai une image dans chaque dossier drawable qui s'intitule icon.png, et quand je lance mon application elle ne veut pas s'afficher .....
Pourtant j'ai regarder plusieurs tutoriels et ils disent tous la meme chose, je suis les indications mais rien n'y fait, l'image ne s'affiche pas ......
Un grand merci pour votre aide!!!
A voir également:
- Probleme imageView android
- Android recovery - Guide
- Begone android - Accueil - Protection
- À quoi sert google drive sur android - Guide
- Historique presse-papier android - Guide
- Emulateur pokemon android - Guide