Android AdMob not showing LinearLayout on Bottom

前端 未结 2 431
无人及你
无人及你 2020-12-18 06:12

Okay really weird situation with AdMob. I want to place the ad on the bottom I have a LinearLayout. When I do it never shows up. When I place it on top it shows up perfec

2条回答
  •  一整个雨季
    2020-12-18 06:57

    This might help too... Admob ads not showing - Android

    As Ted says, the list view may be taking up all available real-estate. Even with wrap_content, if the list is populated with a lot of data before the adView populates, the adView will not be able to expand and place the ad.

    Unless you do what I did and hard code it's height to about 50dp. Not very elegant, but still effective.

提交回复
热议问题