I have Spinner with some items, some of which have long text(我有一些项目的旋转,其中一些有很长的文本)
问题描述
我有带一些物品的旋转器。有些项目有很长的文本,所以它不会出现在微调按钮上。如何在微调按钮上滚动文本?
推荐答案
对于微调工具,您必须创建xml文件
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text1"
style="android:attr/dropDownItemStyle"
android:singleLine="true"
android:layout_width="fill_parent"
android:layout_height="45px"
android:ellipsize="marquee"
android:textColor="#000000"
android:gravity="center_vertical" />
这篇关于我有一些项目的旋转,其中一些有很长的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!