1 pièce(s) jointe(s)
Linearlayout - mapview pas bon ménage
j'ai des problèmes avec un linearlayout et une mapview voir ci-dessous le rendu - cf pièce jointe.
et voici le Xml, je ne comprend pas pourquoi la mapview vient sur les bouton
et pourquoi l'ensemble n'arrive pas à etre aligné.
merci de vos réponse.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout android:id="@+id/linearLayout2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1"
android:orientation="horizontal">
<Button
android:textColor="@color/Bleu"
android:textStyle="bold"
android:id="@+id/ButonVéhicule"
android:text="Véhicule"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_weight="33">
</Button>
<ImageButton
android:id="@+id/rechercheVéhicule"
android:src="@drawable/recherche"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="33">
</ImageButton>
<Button android:textColor="@color/Bleu"
android:textStyle="bold"
android:id="@+id/ButonParam"
android:text="Paramétre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="33">
</Button>
</LinearLayout>
<LinearLayout android:id="@+id/linearLayout3"
android:orientation="vertical"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.maps.MapView
android:layout_gravity="center_vertical"
android:id="@+id/enRouteMap"
android:layout_weight="1"
android:apiKey="@string/mapKeyD"
android:layout_alignParentTop="true"
android:layout_height="wrap_content"
android:layout_width="match_parent">
</com.google.android.maps.MapView>
</LinearLayout>
</LinearLayout> |