android怎么设置能把控件放在屏幕最下面 没分了,请大家见谅 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在你的xml文件里,给你的控件加个属性 android:layout_gravity="bottom" 经测试:<?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" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:background="@android:drawable/edit_text" android:layout_alignParentBottom="true"/></RelativeLayout> <?xml version="1.0" encoding="utf-8"?><!--首先要用RelativeLayout相对布局,因为线性布局不支持有些属性--><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" ><!--第二将你要摆在屏幕最底下的控件设置属性android:layout_alignParentBottom="true",意思是将此控件位于父控件的底部,这个属性页可以加载布局layout中--> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:background="@android:drawable/edit_text" android:layout_alignParentBottom="true"/></RelativeLayout> 急!!!安卓4.x的版本中怎么在代码里设置wifi的参数 高分求教widget动画?? Android怎么调用wcf服务? ctrl+]函数跳转问题 如何实现图中效果? 虚拟机 和 Ubuntu 已经装好,并可运行。如何见到android 画面? Android 如何代码修改SeekBar进度颜色,不用xml BroadcastReceiver这样理解对吗? ListView点击跳转问题 Android中的Uri存在的必要性?和path的区别? 异步任务 AsyncTask 问题 如何给一个Preference加上一个提示图形
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" > <TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
android:background="@android:drawable/edit_text"
android:layout_alignParentBottom="true"/></RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--首先要用RelativeLayout相对布局,因为线性布局不支持有些属性-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<!--第二将你要摆在屏幕最底下的控件设置属性android:layout_alignParentBottom="true",意思是将此控件位于父控件的底部,这个属性页可以加载布局layout中-->
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
android:background="@android:drawable/edit_text"
android:layout_alignParentBottom="true"/></RelativeLayout>