底部菜单布局
http://stackoverflow.com/questions/2386866/how-to-align-views-at-the-bottom-of-the-screen
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:text="@string/welcome"
android:id="@+id/TextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true">
</TextView>
<RelativeLayout
android:id="@+id/InnerRelativeLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<Button
android:text="@string/label_submit_button"
android:id="@+id/Button"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Button>
<EditText
android:id="@+id/EditText"
android:layout_width="fill_parent"
android:layout_toLeftOf="@id/Button"
android:layout_height="wrap_content">
</EditText>
</RelativeLayout>
</RelativeLayout> 相关推荐
hqulyc 2020-02-21
fengyeezju 2020-02-02
fengyeezju 2020-02-02
安辉 2020-01-30
pengjin 2020-01-28
安辉 2020-01-25
fengyeezju 2020-01-11
csdnuuu 2020-01-04
相对布局只要是要有参照物,即谁在谁下方,谁在谁左边,和谁左对齐,等等。然后再添加一个按钮使其在textView的下方以及在立即更新按钮的左边。android:text="发现新的版本,您想现在更新吗?
magic00 2020-01-04
安辉 2013-07-14
冰川孤辰 2013-07-12
Tom天天 2013-07-12
WangWY 2013-07-03
Lzn0 2013-09-05
CrazyDavid 2013-09-03
tianhui 2013-08-23
Rgenxiao 2011-04-06
西木 2011-04-06