TextView marquee not working in code
<p>Here is the code what i used in my activiy can anyone plz help if i am wrong anywhere.</p>

<pre><code>    LinearLayout liveLinearLay = new LinearLayout(this);
    liveLinearLay.setOrientation(liveLinearLay.VERTICAL);

    String ticker;

    TextView tickerText= new TextView(this);
    tickerText.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
                                   LayoutParams.WRAP_CONTENT));
    tickerText.setText(ticker);
    tickerText.setTextColor(Color.BLUE);
    tickerText.setTextSize(12);
    tickerText.setBackgroundColor(Color.LTGRAY);
    tickerText.setEllipsize(TruncateAt.MARQUEE);
    tickerText.setHorizontallyScrolling(true);
    tickerText.setFocusableInTouchMode(true);
    tickerText.setEnabled(true);
    tickerText.setMarqueeRepeatLimit(-1);
    tickerText.setSingleLine();
    tickerText.setSelected(true);
    liveLinearLay.addView(tickerText);
</code></pre>
