title: TextView marquee not working in ListView android
body: <p>I have one ListView with some TextView. I am displaying file name in textview and I want marquee for large file name.</p>
  
  <p>I have set ellipsize= "marquee" and set singleline="true". but unfortunately code not working.</p>
  
  <p>Here is my xml layout file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/ll_file"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:orientation="horizontal" &gt;
  
      &lt;FrameLayout
          android:layout_width="50dp"
          android:layout_marginLeft="10dp"
          android:layout_height="50dp" &gt;
  
          &lt;TextView
              android:id="@+id/tv_ext"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="center"
              android:ellipsize="marquee"
              android:gravity="center"
              android:marqueeRepeatLimit="marquee_forever"
              android:singleLine="true"
              android:textColor="@color/white"
              android:textSize="20sp" /&gt;
  
          &lt;TextView
              android:id="@+id/tv_mode"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:focusable="false"
              android:focusableInTouchMode="false"
              android:singleLine="true"
              android:textColor="@color/white"
              android:textIsSelectable="false"
              android:textSize="12sp"
              android:layout_gravity="end|bottom"
              android:padding="2dp"
              tools:ignore="SmallSp" /&gt;
      &lt;/FrameLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5dp"
          android:orientation="horizontal"
          android:padding="10dp" &gt;
  
          &lt;LinearLayout
              android:id="@+id/layout"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1 "
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/tv_file_name"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:singleLine="true"
                  android:ellipsize="marquee"
                  android:marqueeRepeatLimit="marquee_forever"
                  android:scrollHorizontally="true"
                  android:textColor="@color/black"
                  android:textIsSelectable="false"
                  android:textSize="15sp" /&gt;
  
              &lt;TextView
                  android:id="@+id/tv_info"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:focusable="false"
                  android:focusableInTouchMode="false"
                  android:singleLine="true"
                  android:textColor="@color/black"
                  android:textIsSelectable="false"
                  android:textSize="10sp"
                  tools:ignore="SmallSp" /&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;ImageView
              android:id="@+id/iv"
              android:layout_width="10dp"
              android:layout_height="10dp"
              android:layout_gravity="center"
              android:contentDescription="@null"
              android:src="@drawable/ic_notification"
              android:visibility="gone" /&gt;
  
          &lt;CheckBox
              android:id="@+id/checkbox"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:focusable="false"
              android:focusableInTouchMode="false"
              android:paddingBottom="10dp"
              android:paddingLeft="10dp"
              android:paddingRight="0dp"
              android:paddingTop="10dp"
              android:visibility="visible" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>