Advertisement
Guest User

Untitled

a guest
Aug 18th, 2010
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. package de.foxylion.android.testapp;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.widget.Button;
  6. import android.widget.TextView;
  7.  
  8. public class Sub extends Activity {
  9.     /** Called when the activity is first created. */
  10.     @Override
  11.     public void onCreate(Bundle savedInstanceState) {
  12.         super.onCreate(savedInstanceState);
  13.         setContentView(R.layout.main);
  14.        
  15.         TextView tv = (TextView) findViewById(R.id.text);
  16.         tv.setText("Sub.class");
  17.        
  18.         Button button = (Button) findViewById(R.id.button);
  19.         button.setEnabled(false);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement