次の問題があります。Android のドキュメントで指示されているように、RelativeLayout を多用しています。しかし、数日後、理由がわかりません。これはもう機能していません。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/background"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/boton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Button" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/boton"
android:layout_centerHorizontal="true"
android:layout_marginTop="60dp"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000" />
</RelativeLayout>
これは私のレイアウトで、とてもシンプルです。したがって、これによれば、textView はボタンの下にあるはずですが、代わりにボタンの上に表示されます。
.
何が起こったのか誰か説明してくれませんか?
編集:問題は、デバイスで実行しようとしたときではなく、Eclipse用ADTプラグインのグラフィカルレイアウトで表示されたときに発生します...