嗨,我有自定义列表视图在页面上应该有水平滚动文本。但是横排文本没有滚动。所以请大家帮帮我。
我使用了下面的xml代码。
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:layout_x="2px"
android:layout_y="690px"
android:background="@drawable/bg_1"
android:textColor="#cc0000"
android:scrollHorizontally="true"
android:singleLine="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
/>提前谢谢你。
发布于 2011-02-03 16:18:28
“椭圆大小”不是一个打字错误吗?你不是说“省略号”吗?
发布于 2011-02-03 17:05:41
设置listview可聚焦为false
listview.setfocusable(false);https://stackoverflow.com/questions/4872152
复制相似问题