+ Reply to Thread
Results 1 to 2 of 2

Thread: how to add button dynamically in android?

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    14

    how to add button dynamically in android?

    how to add button dynamically in android?

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    14
    Code:
    Button btn = new Button(this); 
            btn.setText("MyButton"); 
            layout.addView(btn);

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts