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. 回答1: There isn't a JPanel class in Android but you can use layouts just as effectively.