<TextView
android:id="@+id/tv_ad4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:maxLines="1"
android:ellipsize="marquee"
android:text="浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市浙江省杭州市"
android:textColor="@color/black"
android:focusableInTouchMode="true"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
/>
Go and check out MOOC.com. . .
Is there any necessary connection between the existence of these two controls and the absence of the marquee effect? . . .
Personal test, no problem. . .
Inherit textview and then override it
If you need to let the textview get the focus, you can try requestFocus()