I have this code in a method where
for (Team t : listOfTeamsJoined)
private void makeTeamButton(String teamName)
Button newTeamButton = new Button(this);
LinearLayout teamButtonHolder = (LinearLayout) findViewById(R.id.availableTeamsList);
The default orientation is horizontal. And you're using a width of
MATCH_PARENT for the widths of both buttons. This means that your first button will take the whole width leaving nothing for the second one, thus making it not visible.
Set the orientation manually if you want your
LinearLayout to be vertical like this:
If you wish to keep it horizontal, then just invert the width and height to be
MATCH_PARENT, respectively. And that'll work too but it'll show them side by side.