Example #1
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.data_callwordcp);

    mText = (EditText) findViewById(R.id.edittext);

    findViewById(R.id.readall).setOnClickListener(mClickListener);
    findViewById(R.id.readone).setOnClickListener(mClickListener);
    findViewById(R.id.insert).setOnClickListener(mClickListener);
    findViewById(R.id.delete).setOnClickListener(mClickListener);
    findViewById(R.id.update).setOnClickListener(mClickListener);
  }
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.input_contextmenu);

    mBtn = (Button) findViewById(R.id.button);
    registerForContextMenu(mBtn);

    mEdit = (EditText) findViewById(R.id.edittext);
    registerForContextMenu(mEdit);

    mImage = (MyImage) findViewById(R.id.myimage);
    registerForContextMenu(mImage);
  }
Example #3
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.dialog_showdialog);

    Button btn = (Button) findViewById(R.id.call);
    btn.setOnClickListener(
        new Button.OnClickListener() {
          public void onClick(View v) {
            showDialog(SampleDialog);
          }
        });
    Button btn2 = (Button) findViewById(R.id.call2);
    btn2.setOnClickListener(
        new Button.OnClickListener() {
          public void onClick(View v) {
            showDialog(QuestionDialog);
          }
        });
  }
Example #4
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   vw = new MyView(this);
   setContentView(vw);
 }
Example #5
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.layout_lgravity2);
 }