Issue 51: [android] ListView with small images looks bad
Status:  Fixed
Owner: ----
Closed:  Jun 2010
Reported by Kot.Zgu...@gmail.com, Jun 1, 2010
What steps will reproduce the problem?
1. Create list with small (16x16) icons.

public class MainMenu extends List {
    public MainMenu() {
        super("Test", List.IMPLICIT);
        try {
        Image imgTest = Image.createImage("/test.png");
        }catch(Exception e) {}
        append("Test", imgTest);
    }
}



What is the expected output? What do you see instead?
Text is big (~26px), icons are small and aligned to left-top. It looks
better, when they are centered (vertically at least).

What version of the product are you using? On what operating system?
Irrelevant.

Please provide any additional information below.
This could be improved by changing file
/src/org/microemu/android/device/ui/AndroidListUI.java line: 170
public View getView(int position, View convertView, ViewGroup parent) {
			if (convertView == null) {
				//TODO figure out a better layout - see example of different image and
text sizes.
				LinearLayout layout = new LinearLayout(activity);
+                                layout.setGravity( 0x10 | 0x07); //
center_vertical + fill_horizontal


Jun 2, 2010
Project Member #1 bar...@gmail.com
Fixed on trunk
Status: Fixed
Labels: Milestone-3.0