我已经完成了关于Spinner([http://developer.android.com/resources/tutorials/views/hello-spinner.html])的教程。但是,如果文本比行星名称长得多,则单击微调器后,显示的文本将被截断,不会完整显示。
有没有人碰巧知道如何使较长的文本显示在几行中?
单击微调器后,文本将显示在名为CheckedTextViews的obejcts表中。也许应该修改这些偏好的一些偏好 - 这只是一个快速的想法。
将很高兴得到任何支持。
这也很好用。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="350dp"
android:layout_height="wrap_content">
<TextView
android:id="@android:id/text1"
style="?android:attr/spinnerDropDownItemStyle"
android:layout_width="match_parent"
android:layout_height="50dp"
android:ellipsize="marquee"
android:gravity="center_vertical"
android:singleLine="false" />
</LinearLayout>