I am updating the normal(smart) admob banners for admob Anchored adaptive banners, I am following the example of google but I have several doubts.
I use LinearLayout as a general structure and not RelativeLayout like the google example.
When using the code to display the banner, it underlines two lines.
Code example:
<FrameLayout
android:id="@+id/ad_view_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_alignParentBottom="true" />
Yellow underline in android studios (code):
android:layout_centerInParent="true"
Message or warning: Invalid layout param in a LinearLayout: layout_centerInParent
android:layout_alignParentBottom="true"
Message or warning: Invalid layout param in a LinearLayout: layout_alignParentBottom
In the application the test ads are displayed well and work. But I don't like the messages of the underlined code (to avoid problems)
What would be the solution if my main structure is LinearLayout?
---------
Another option:
Could I use this code for the Anchored adaptive banners?
<LinearLayout
android:id="@+id/ad_view_container"
android:orientation="vertical"
android:gravity="bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
or does it have to be FrameLayout..?
Thank you for your answers