Помогите поставить баннер вниз.
Так как есть сейчас код - выводит сверху.
Ставлю на lAdMob, а в flContainer там много инфо. с прокруткой...
Спасибо.
activity_main.xml
[syntax=xml]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.abfrag.MainActivity"
tools:ignore="MergeRootFrame" >
<LinearLayout
android:id="@+id/flContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/lAdMob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
</LinearLayout>
</LinearLayout>
</RelativeLayout>[/syntax]
Main_Activity.java
[syntax=java5] // Create an ad.
adView = new AdView(context);
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId(AD_UNIT_ID);
// Add the AdView to the view hierarchy. The view
// will have no size
// until the ad is loaded.
LinearLayout layout = (LinearLayout) findViewById(R.id.lAdMob);
layout.addView(adView);[/syntax]
Поставить Admob вниз экрана
Поставить Admob вниз экрана
Тут должна быть подпись.
Re: Поставить Admob вниз экрана
самый простой способ это вручную перетащить его вниз в визуальном редакторе, код сам адаптируется ..