开发者

Help with android layout?

I have TableLayout and i have ads on my app, but the ads go up under the last button on the screen, how can i get the ad to stick to the bottom of the screen?

<TextView 
android:id="@+id/textView1" 
android:layout_height="wrap_content" android:text="@string/time" 
android:layout_width="wrap_content">
</TextView>

<Button 
android:layout_height="wrap_content"  
android:layout_centerInParent="true"   
android:id="@+id/totime" 
android:layout_width="wrap_content">
</Button>

<Button 
android:layout_height="wrap_content" 
android:te开发者_运维百科xt="Save" 
android:id="@+id/save" 
android:layout_width="wrap_content">
</Button>

<com.mobfox.sdk.MobFoxView

android:id="@+id/mobFoxView" android:layout_width="fill_parent" android:layout_height="50dp" publisherId="**********" />


Then, use RelativeLayout, and put something like:

<com.mobfox.sdk.MobFoxView
    android:id="@+id/mobFoxView"
    android:layout_width="fill_parent"
    android:layout_height="50dp"
    android:layout_alignParentBottom="true"
    publisherId="**********" />

You will have to modify your widgets above the MobFoxView... maybe you can leave them inside the TableLayout, and put that TableLayout inside the RelativeLayout:

<RelativeLayout>
    <TableLayout>
        your other Stuff
    </TableLayout>
    <MobFoxStuff/>
</RelativeLayout>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜