2

Android 4.2以降でテキストが新しい行に折り返されるように、スピナーを持っており、spinnerModeをダイアログに設定しますが、そうすると、スピナーの情報が幅を埋めません。すなわちhttp://i.imgur.com/TDMXNnZ.png。幅を埋めるだけでなく、4.2+で新しい行に折り返すにはどうすればよいですか?

    <Spinner
        android:id="@+id/spinner3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:spinnerMode="dialog"  />
4

1 に答える 1

0

Make sure that the layout in which the spinner is wrapped in is set to:

android:layout_width="fill_parent"

In essence this effects the properties of all widgets in that layout.

Hope this helps :)

于 2014-06-15T09:07:59.380 に答える