Emy*_*son 2 android text marquee short textview
我想将marquee属性用于短文本.我写了这段代码:
<TextView
android:id="@+id/MarqueeText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:marqueeRepeatLimit="marquee_forever"
android:paddingLeft="15dip"
android:paddingRight="15dip"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="Hello" >
Run Code Online (Sandbox Code Playgroud)
它不起作用.但当我把文字更改为"你好你好你好你好你好等" (长文)它有效.如何将短框用于短文本?
归档时间: |
|
查看次数: |
1574 次 |
最近记录: |