how to apply marquee in android for string
<p>I am trying to implement marquee a style to print string in android. I'm able to to it with static data but for dynamic it isn't displaying the marquee style.</p>

<p>When I print:</p>

<pre><code>String st="this is test application testing for marquee"
</code></pre>

<p>I get the marquee style.</p>

<p>However, after parsing when I'm getting data:</p>

<pre><code>&lt;TextView
        android:id="@+id/twxmorq"
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:layout_marginBottom="5dp"
        android:layout_marginTop="5dp"
        android:ellipsize="marquee"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:marqueeRepeatLimit="marquee_forever"
        android:padding="5dip"
        android:scrollHorizontally="true"
        android:singleLine="true"
        android:textColor="#FF0000" /&gt;
</code></pre>

<p>I run:</p>

<pre><code>myString = myString + "| "+ json_data.getString("news_title").toString();

txt1 = (TextView) findViewById(R.id.twxmorq);
txt1.setText(myString1);
</code></pre>

<p>and I <em>don't</em> get the marquee style when I print <code>mystring</code>.</p>

<p>Please help me.</p>

<p><strong>Summary</strong>: For the string ' ST ' I'm getting a marquee style printed string but for <code>mystring1</code> I am not getting marequee style.</p>
