第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

跑馬燈程序,寫了兩個自定義控件,然而第二個不會跑,求大神解答

跑馬燈程序,寫了兩個自定義控件,然而第二個不會跑,求大神解答

酒濃巷深3292107 2016-08-03 20:55:22
布局代碼:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"? ? xmlns:tools="http://schemas.android.com/tools"? ? android:layout_width="match_parent"? ? android:layout_height="match_parent"? ? android:orientation="vertical"? ? tools:context=".MainActivity" >? ? <com.imooc.primer.MarqueeTest? ? ? ? android:id="@+id/textView1"? ? ? ? android:layout_width="wrap_content"? ? ? ? android:layout_height="wrap_content"? ? ? ? android:ellipsize="marquee"? ? ? ? android:singleLine="true"? ? ? ? android:focusable="true"? ? ? ? android:focusableInTouchMode="true"? ? ? ? android:text="@string/marquee1" />? ? <com.imooc.primer.MarqueeTest? ? ? ? android:id="@+id/textView2"? ? ? ? android:layout_width="wrap_content"? ? ? ? android:layout_height="wrap_content"? ? ? ? android:layout_marginTop="24dp"? ? ? ? android:ellipsize="marquee"? ? ? ? android:singleLine="true"? ? ? ? android:focusable="true"? ? ? ? android:focusableInTouchMode="true"? ? ? ? android:text="@string/marquee2" /></LinearLayout>主程序代碼:public class MarqueeTest extends TextView{ public MarqueeTest(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub } public MarqueeTest(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub } public MarqueeTest(Context context) { super(context); // TODO Auto-generated constructor stub } public boolean isFoused(){ return true; }}清單文件設(shè)置了。<activity android:name="com.imooc.primer.MarqueeTest"></activity>
查看完整描述

2 回答

已采納
?
ziom

TA貢獻(xiàn)948條經(jīng)驗(yàn) 獲得超1109個贊

試試加上這個屬性:

android:marqueeRepeatLimit="marquee_forever"


查看完整回答
2 反對 回復(fù) 2016-08-03
  • 2 回答
  • 0 關(guān)注
  • 1307 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號