即时使用该代码;相对布局不放按钮
<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" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:text="Button" />
</RelativeLayout>
由于某种原因,这不适用于模拟器与540x960。该按钮出现在模拟器的中间。
在我的droid2中,它能正常工作。
左图展示它是如何工作在我的Droid 2的手机,而右侧显示如何是工作在HTC sensationXe模拟器
什么操作系统版本是模拟器?也许你应该把TextView固定在某个东西上。 –
我已经更新了我的问题,并且我上传了一些图片,以便您能够看到问题 – Yayo28