FileDocCategorySizeDatePackage
Ticker2.javaAPI DocGoogle Android v1.5 Example2618Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.view

Ticker2

public class Ticker2 extends android.app.Activity implements Ticker.TickerListener
Demonstrates the Ticker view

Fields Summary
private android.widget.Ticker
mMainTicker
private android.widget.Ticker
mTextTicker
private android.widget.TextView
mTickerText
private android.widget.TextView
mStatusText
private android.widget.EditText
mUserText
android.view.View.OnClickListener
mUserTextListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        
        setContentView(R.layout.ticker_2);
        mMainTicker = (Ticker) findViewById(R.id.mainTicker);
        mTextTicker = (Ticker) findViewById(R.id.textTicker);
        mTickerText = (TextView) findViewById(R.id.tickerText);
        mUserText = (EditText) findViewById(R.id.userText);
        mStatusText = (TextView) findViewById(R.id.statusText);

        mUserText.setOnClickListener(mUserTextListener);
        mMainTicker.setTickerListener(this);
        mTextTicker.setTickerListener(this);
    
public voidonTickerFinished(android.widget.Ticker view)


        
        if (view == mMainTicker) {
            mTextTicker.startTicker();
        } else {
           // mStatusText.setText("Done");
            mStatusText.setText(mTextTicker.isHorizontalFadingEdgeEnabled() ? "FADE" : "NOT");
        }