title: Marquee in android
body: <p>In my android application i need to scroll a marquee text continuously.
  in my Xml i have this code:</p>
  
  <pre><code>&lt;TextView
     android:id="@+id/widget28"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_alignParentRight="true"                
     android:singleLine="true"        
     android:ellipsize="marquee"
     android:fadingEdge="horizontal"
     android:marqueeRepeatLimit="marquee_forever"
     android:scrollHorizontally="true"
     android:textColor="#ff4500"
     android:text="Simple application that shows how to use RelativeLayout " /&gt;
  </code></pre>
  
  <p>And in my Java source code i have:</p>
  
  <pre><code>TextView tv = (TextView )findViewById(R.id.widget28);
  tv.setSelected(true);
  </code></pre>
  
  <p>Now my issue is this code works fine and marquee runs fine even if the focus is not on the control but the scrolling of text is not complete.I need the text to scroll completely.If i add space to the text both before and after the text it works fine but that is not good programming. Is there a good way to this?</p>