如果要做第三個(gè)走馬燈效果的一行文字,該怎么做?
如果要做第三個(gè)走馬燈效果的一行文字,因?yàn)榈诙€(gè)textview沒(méi)有id,是layout_below="@+id/textview1",所以如果有第三個(gè),該怎么設(shè)置?
如果要做第三個(gè)走馬燈效果的一行文字,因?yàn)榈诙€(gè)textview沒(méi)有id,是layout_below="@+id/textview1",所以如果有第三個(gè),該怎么設(shè)置?
2017-07-05
舉報(bào)
2017-07-05
<com.example.lenovo.textview.MarqueeText
? ?android:id="@+id/textview1"
? ?android:layout_width="wrap_content"
? ?android:layout_height="wrap_content"
? ?android:text="@string/text_view1"
? ?android:singleLine="true"
? ?android:ellipsize="marquee"
? ?android:focusable="true"
? ?android:focusableInTouchMode="true"/>
<com.example.lenovo.textview.MarqueeText
? ?android:id="@+id/textview2"
? ?android:layout_below="@id/textview1"
? ?android:layout_marginTop="10dp"
? ?android:layout_width="wrap_content"
? ?android:layout_height="wrap_content"
? ?android:text="@string/text_view2"
? ?android:singleLine="true"
? ?android:ellipsize="marquee"
? ?android:focusable="true"
? ?android:focusableInTouchMode="true"/>
<com.example.lenovo.textview.MarqueeText
? ?android:id="@+id/textview3"
? ?android:layout_below="@id/textview2"
? ?android:layout_marginTop="10dp"
? ?android:layout_width="wrap_content"
? ?android:layout_height="wrap_content"
? ?android:text="@string/text_view2"
? ?android:singleLine="true"
? ?android:ellipsize="marquee"
? ?android:focusable="true"
? ?android:focusableInTouchMode="true"/>