title: Text in Text View not scrolling even i set ellipsize="marquee" in xml in android
body: <p>my xml code is</p>
  
  <pre><code> &lt;TextView 
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:layout_gravity="center_vertical"
   android:lines="1" 
   android:singleLine="true" 
   android:textColor="#ffffff"
   android:focusable="true"
   android:marqueeRepeatLimit="marquee_forever" 
   android:ellipsize="marquee" 
   android:typeface="serif"
   android:scrollHorizontally="true" 
   android:focusableInTouchMode="true"&lt;/TextView&gt;
  </code></pre>
  
  <p>and i set text in Activity in onCreate method as below </p>
  
  <pre><code>textView.setText("some text ");             
  textView.setSelected(true);             
  textView.setFocusable(true);
  textView.setFocusableInTouchMode(true);
  </code></pre>
  
  <p>it is working but when close application pressing back button and again restart it text not scroll and also when i change activity and come to the activity where this text view present i wont scroll ?also i tried custom text view </p>
  
  <pre><code>import android.content.Context;
  import android.graphics.Rect;
  import android.util.AttributeSet;
  import android.widget.TextView;
  
  public class CustomTextView extends TextView {
  public CustomTextView(Context context, AttributeSet attrs) {
  super(context, attrs);
  }
  
  @Override
  protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) {
  if(focused)
  super.onFocusChanged(focused, direction, previouslyFocusedRect);
  }
  @Override
  public void onWindowFocusChanged(boolean focused) {
  if(focused)
   super.onWindowFocusChanged(focused);
  }
  @Override
  public boolean isFocused() {
  return true;
  }
  
  }
  </code></pre>
  
  <p>but it wont work</p>