30.05.2014, 23:11. Просмотров 835. Ответов 3
Помогите поставить баннер вниз.
Так как есть сейчас код - выводит сверху.
Ставлю на lAdMob
Спасибо.
XML |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <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="vertical" >
<LinearLayout
android:id="@+id/lAdMob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
</RelativeLayout> |
|
Main_Activity.jav
Java |
1
2
3
4
5
6
7
8
9
10
| // 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); |
|
Добавлено через 1 час 26 минут
android:orientation="horizontal" поставил - без разницы.
В flContainer много текста... и прокрутка...
Как сделать что бы постоянно висел банне внизу ? Сенкс.