How to create UI (user interface) without using xml file? Show with one exam ple on how to create a button without having xml file?

@Override
public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     Button b = new Button(this);
     setContentView(b);
}

No comments:

Post a Comment