-2

私のアプリには 2 つの TextView がありますが、2 つ目は表示されません。これを修正するにはどうすればよいですか?

<TextView
    android:id="@+id/logo"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:layout_gravity="center"
    android:text="Medieval 2" 
    android:textSize="30sp"
    android:background="#FF0000"
    android:textColor="#FFFFFF"/>
<TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/logo"
    android:text="The Video Game"/>
4

1 に答える 1

-2

これを試すことができます:

交換

android:layout_below="@id/logo"

android:layout_below="@+id/logo"

これが機能しない場合、グラフィカル レイアウトに警告が表示されることがあります。

于 2013-01-30T02:03:12.530 に答える