I had gone through this situation where textview marquee was not working. However follow this and I am sure it will work. :)
<TextView
android:id="@+id/tv_marquee"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:maxLines="1"
android:scrollHorizontally="true"
android:text="This is a sample code of marquee and it works"/>
and programmatically add these 2 lines...
tvMarquee.setHorizontallyScrolling(true);
tvMarquee.setSelected(true);
tvMarquee.setSelected(true) is required incase if any one of the view is already focused and setSelected will make it work.
No need to use.
android:singleLine="true"
it is deprecated and above codes works.