Jeremy
Jeremy

Reputation: 3809

Does Android have the equivalent of a JPanel?

Is there an Android equivalent to Java's panel? I need something with a set size that I can add different views in dynamically. Is there such a technique?

I'm basically wanting a blank area with a set size in xml code where I can add buttons later through the activity. The reason for adding later is the number of buttons and size of the buttons will range dramatically, but still needing the area to fill.

Upvotes: 4

Views: 10654

Answers (1)

Jeremy
Jeremy

Reputation: 3809

There isn't a JPanel class in Android but you can use layouts just as effectively. Check out this link.

Upvotes: 2

Related Questions