このコードを使用しています。相対レイアウトでボタンを配置しない
<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では正しく動作します。
左の写真は、あなたがあなたのTextViewにアンカーポイントを設定する必要がHTC sensationXeエミュレータで
エミュレータのOSのバージョンはどれですか?また、TextViewを何かに固定する必要があります。 –
私は既に私の質問を更新して、いくつかの画像をアップロードするので、問題がわかります – Yayo28