admob - Android, adview, jfeinstein's sliding menu -
admob - Android, adview, jfeinstein's sliding menu -
my question same this: make adview stick in place when sliding menu
can tell me please how can solve ? give thanks much.
update:
menu = new slidingmenu(this); menu.settouchmodeabove(slidingmenu.touchmode_fullscreen); menu.setshadowwidthres(r.dimen.sliding_menu_shadow_width); menu.setshadowdrawable(r.drawable.sliding_menu_shadow); menu.setbehindoffsetres(r.dimen.sliding_menu_offset); menu.setfadedegree(0.35f); menu.attachtoactivity(this, slidingmenu.sliding_window); menu.setmenu(r.layout.main_menu);
this slidingmenu
and xml :
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/drawerlayout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#444444" android:configchanges="orientation" android:screenorientation="portrait" android:orientation="vertical"> <framelayout android:id="@+id/maincontent" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/adview" android:layout_alignparenttop="true" > </framelayout> <com.google.android.gms.ads.adview android:id="@+id/adview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentleft="true" ads:adsize="banner" ads:adunitid="@string/banner_ad_unit_id" > </com.google.android.gms.ads.adview> </relativelayout>
so have 2 different xml file 1 menu , 1 "main page" .
take framelayout , add together jfeinstein sliding menu , adview in it. construction be.
<framelayout .... > <jfeinsteinslider ... /> <adview .../> shoul wrap_content height , set apropirate gravity view </framelayout>
hope solve problem
android admob adview
Comments
Post a Comment