android - Adding ad to the bottom of linearLayout -


I do not know how to put a view to the bottom of the linear layout. I tried to use layout_gravity = "bottom", but it does not work. This is my code:

  & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: ads = "http: // schemas Android.com/apk/res-auto" xmlns: tools = "http: / Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: Orientation = "vertical" Android: PaddingBottom = "@ dimen / activity_vertical_margin" Android: paddingLeft = "@ dimen / activity_horizontal_margin" Android: paddingRight = "@ dimen / activity_horizontal_margin" Android: paddingTop = "@ dimen / activity_vertical_margin" Android: background = "@draubable / background_reister_login" tool: reference = "com.mcd.fantaleghe.MainActivity $ placeholder fragment" & gt; Android: layout_height = "wrap_content" Android: layout_gravity = "bottom" ads: adUnitId = "Android: MY_AD_UNIT_ID" ad: adSize = "BANNER" /> & Lt; / LinearLayout & gt;  

Good ... you can solve this problem in many ways, but The easiest:

1- Turn your linerlayout into a frame layout and delete the line android: orientation = "vertical" 2- Add it to your linear target \ code> Android: Gravity = " "

3- You can follow this and forget about including Exxtion in XLL, because in the tutorial, it is called Programmati A form has been included.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -