TextView Example

Package

android.widget.TextView

Layout

<TextView
    android:id="@+id/text_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/app_name"/>

Activity or Fragment

public class TestActivity extends Activity {
    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_activity);

        mTextView = (TextView)findViewById(R.id.text_view);
        mTextView.setText("androidstudio.io");
    }
    ...
}

Marquee

MarqueeTextView for Android

Download

TextViewExample.zip