<TextView
android:id="@+id/myTextView"
android:layout_width="180px"
android:layout_height="wrap_content"
android:textColor="@android :color/white"
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text=""
>
</TextView>
/
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignTop="@+id/imageView1"
android:layout_toLeftOf="@+id/imageView1"
android:drawablePadding="3dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="adsfaweterhdfwETR ESRasdsfdgfjhgkjg.yfhgsedffdxgvfgnjhgf"
android:textColor="@android:color/white"
android:textSize="18sp" />
转载于:https://my.oschina.net/juna/blog/688563