Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import android.app.Activity;
- import android.graphics.Color;
- import android.os.Bundle;
- import android.widget.TextView;
- public class ADeadlySpoon extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- TextView t = new TextView(this);
- t.setText("Hello");
- t.setBackgroundColor(Color.BLUE);
- t.setTextColor(Color.MAGENTA);
- t.setSingleLine(true);
- setContentView(t);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement