Create dynamic view with android Create dynamic view with android json json

Create dynamic view with android


When you are generating the widget programmatically, you can assign them your own id.

For example:

Button btn = new Button(this);btn.setId(myBtnId);

And later in your code, you can reference to that button with findViewById(myBtnId).