You have chosen to sponsor your bid up to a maximum amount of .
just want arrange neatly in a flag game:
3 flags images in a table row
Or 6 flags images in two rows or
Or 9 flags images in three rows
Problem with appearance of images other big other small…I want same height images but width vary/ good arrange/alignment/neatly, and not get out of phone screen… images have 5-15dp between themselves and between phone screen. vertical distance between table-rows should be 10dp.
Proceed send more info like xml files????
I inflated guess_flag.xml with an ImageView but not get good sized images(see attached screenshot), how fix? I modified and used thereafter in main2.xml shrinkcolumns attribute(screen shot attached 2nd) and go all images in one line but others were below other upper baseline and between table rows there were big space....
main2.xml java file
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// add 3, 6, or 9 answer Buttons based on the value of guessRows
for (int row = 0; row < guessRows; row++)
TableRow currentTableRow = getTableRow(row);
// place Buttons in currentTableRow
for (int column = 0; column < 3; column++)
// inflate guess_button.xml to create new Button
ImageView newGuessButton = (ImageView) inflater.inflate(R.layout.guess_flag, null);
// get country name and set it as newGuessButton's text
String fileName = fileNameList.get((row * 3) + column);
// register answerButtonListener to respond to button clicks
} // end for
} // end for