跑馬燈出錯
我的代碼是:
<string name="hello_world">我是一個TextView,我是一個TextView,我是一個TextView.</string>
為什么在模擬器中運行時變成:
其中3個是跑馬燈效果,另外3個不動
我的代碼是:
<string name="hello_world">我是一個TextView,我是一個TextView,我是一個TextView.</string>
為什么在模擬器中運行時變成:
其中3個是跑馬燈效果,另外3個不動
2017-07-19
舉報
2017-07-19
android:singleLine="true"
2017-07-19
<com.penguin.administrator.marqueetextviewdemon.MarqueeText
? ?android:id="@+id/textView"
? ?android:layout_width="wrap_content"
? ?android:layout_height="wrap_content"
? ?android:singleLine="true"
? ?android:ellipsize="marquee"
? ?android:focusable="true"
? ?android:focusableInTouchMode="true"
? ?android:text="@string/Hello_world"
? ?android:textSize="18dp"
? ?/>
仔細看看xml少啦什么哦