1
我可以在Spinner內部使用String-array 但是我不知道是否可以放任何其他東西? 我想把一些Button放在Spinner中,但是當我把一些XML放到應用程序中時,應用程序崩潰了!可以將按鈕放在Spinner中嗎
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spinner"
android:layout_below="@+id/textView"
android:layout_toRightOf="@+id/textView"
android:layout_toEndOf="@+id/textView"
android:layout_marginTop="125dp" >
<Button
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<Button
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</Spinner>
這是正確的做法 或什麼?
一個原因,我想到的是你沒有給按鈕..this標識是強制性... – therealprashant
沒有,,,我剛纔把ID 什麼都沒有發生 – Maysara
請發表您的日誌 – therealprashant