关键是需要在TextView中嵌入requestForcus标签才会有效果。
<TextView
android:id="@+id/widget_item_name"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:text="Baby Room"
android:textColor="@android:color/white"
android:textSize="@dimen/testSize18"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true">
<requestFocus
android:focusable="true"
android:focusableInTouchMode="true"
android:duplicateParentState="true"/>
</TextView>