I have a scrollview created that I add a variable amount of buttons to programmatically, but I now have to make it so that I have a second smaller button beside each of the buttons within the scrollview. Here is my screen now:

I would like there to be a small button beside each of those that would let me delete the option or something along those lines.
Here is my code I have now to build the buttons
public void addButtons() {
LinearLayout linearLayout = findViewById(R.id.loadLinearLayout);
int i = 0;
for(File file : files) {
Button newButton = new Button(this);
String filename = file.getName();
newButton.setId(i);
newButton.setText(filename);
newButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
loadGame(view.getId());
}
});
i++;
linearLayout.addView(newButton);
}
}
Any help would be greatly appreciated.