Je suis nouveau codage XML pour fils desinging une application Android et j'ai un problème en utilisant 2 linearLayour dans le même xml ...LinearLayout problème (2 LLayout dans le même XML)
J'ai " erreur dans un fichier XML: build abandon » avec le code 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">
<TextView android:id="@+id/texte_firsttab"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
</LinearLayout>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:id="@+id/accessGraphe"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="test"
android:onClick="selfDestruct" />
<Button android:id="@+id/accessGraphe2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="test2"
android:onClick="selfDestruct" />
</LinearLayout>
peut-on mettre deux disposition linéaire dans le même fichier xml?
parfait, je les ai mis dans une autre disposition linéaire ;-) Merci! Maintenant, je vais comprendre pourquoi les boutons ne veulent pas être affichés ^^ – clement