<TextView
android:id="@+id/tv_title"
style="@style/toolbar_title"
android:text="项目详细内容"
android:layout_marginRight="@dimen/item_padding"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:singleLine="true"/>

上面红色的属性是必须设置的,另外android:singleLine虽然已经弃用,由maxLins="1"来取代,但是在实现跑马灯效果的时候依然需要使用
 android:singleLine="true"属性设置,否则无效。