Это приложение, основанное на контенте. Я пытаюсь добавить рекламный баннер внизу экрана, но я создал файл xml в Linearlayout со многими текстовыми представлениями. поэтому будет очень сложно перейти на относительную компоновку. Как я могу разместить рекламный баннер внизу экрана, не меняя много кода?
мой XML-код:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/tan_background"
android:divider="?android:dividerHorizontal"
android:orientation="vertical"
android:showDividers="middle"
tools:context="com.androcreatorx.inspiringwords.MainActivity">
<TextView
style="@style/CategoryStyle"
android:onClick="callAbdul"
android:text="@string/abdul"/>
<TextView
style="@style/CategoryStyle"
android:onClick="callAbraham"
android:text="@string/Abrahm"/>
</LinearLayout>
</ScrollView>