Lire sur le poids de mise en page - http://developer.android.com/guide/topics/ui/layout-objects.html
Si vous avez trois vues et définir les poids à 0, 1 et 0 - alors la vue centrale redimensionnera, les deux autres resteront une taille fixe, de sorte qu'il est un bonne solution pour ajouter l'en-tête & à une vue de redimensionnement. Essayez ce code de modèle, et notez comment les poids de mise en page sont définis:
<?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">
<!-- Header -->
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
/>
<!-- Map -->
<MapView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
....
/>
<!-- Footer, or another embedded Layout -->
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
/>
</LinearLayout>
tout d'abord merci pour votre réponse cela fonctionne très bien. Aussi j'ai atteint 15 réputation juste aujourd'hui, donc à partir de maintenant je peux cocher des réponses comme un utile :) –