J'essaie d'aligner Adview gogole au bas et au centre d'une liste, jusqu'à maintenant, je pouvais forcer l'Adview à venir en bas de la liste sans interférer avec le liste, mais il ne vient pas au centre.Android Comment aligner AdView au centre dans une mise en page linéaire
codeest collé ci-dessous, Désolé cudn't joindre la capture d'écran
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/topLayout"
android:layout_width="wrap_content"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/linearlayoutlistview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/ad_holder"
android:orientation="vertical" >
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dip"
android:drawablePadding="4dip"
android:paddingTop="2dip"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textStyle="bold"
android:typeface="serif" >
</ListView>
</LinearLayout>
<!-- Ad Placeholder -->
<LinearLayout
android:id="@+id/ad_holder"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="bottom" >
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="MY_AD_UNIT_ID"
ads:loadAdOnCreate="true"
ads:testDevices="TEST_EMULATOR" >
</com.google.ads.AdView>
</LinearLayout>
</RelativeLayout>
Bingo !!! C'est ce que je cherchais . Merci beaucoup Alek – Shakti