I'm adding AdMob to my application. Apparently I need to add the following layout snippet to each one of my layouts:
<LinearLayout
android:id="@+id/linearLayout"
android:orientation="vertical"
android:layout_below="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
However, I'd rather add the above snippet dynamically, instead of copy-pasting it into each layout.
What I am having trouble with is translating the following snippet:
android:layout_below="@+id/button2"
into Java code.