Jump to content

Problème Layout


M&M

Recommended Posts

Bonjour tout le monde,

mon problème est le suivant; j'ai créer un Layout "Main.xml" qui contient deux LinearLayout imbriqués dont le code est le suivant

<?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"

android:background="@drawable/bg">

<TextView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="Entrez un titre"

android:textColor="#000000">

</TextView>

<EditText

android:id="@+titre/titre"

android:layout_width="fill_parent"

android:layout_height="wrap_content">

</EditText>

<TextView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="Entrez la description"

android:textColor="#000000">

</TextView>

<EditText

android:id="@+description/description"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:inputType="textMultiLine"

android:scrollHorizontally="false"

android:minWidth="10.0dip"

android:maxWidth="5.0dip"

android:lines="6">

</EditText>

<Button

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+id/buttonAdd"

android:text="Ajouter Photo"

android:layout_gravity="center">

</Button>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="horizontal"

android:layout_width="fill_parent"

android:layout_height="wrap_content">

<ImageView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+picture1/picture1"

android:src="@drawable/noimage"

android:layout_weight="1">

</ImageView>

<ImageView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+picture2/picture2"

android:src="@drawable/noimage"

android:layout_weight="1">

</ImageView>

<ImageView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+picture3/picture3"

android:src="@drawable/noimage"

android:layout_weight="1">

</ImageView>

</LinearLayout>

<Button

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+id/buttonSend"

android:text="Envoyer"

android:layout_gravity="center">

</Button>

</LinearLayout>

Lorsque j’intègre ce Layout dans mon application (qui contient plusieurs activités) il ne s'affiche pas correctement (voir capture 1) par contre dans une application à part ça marche bien (voir capture 2)

SVP c'est d'û à quoi ce problème ??

Merci d'avance pour votre aide.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...