Make the text and images centered.

This commit is contained in:
The Dax committed 2013-10-20 00:36:05 -04:00
1 parent d18253e7d5
commit fc64b9a64f
1 file changed
+8 -3
+8 -3
View File
@@ -73,11 +73,16 @@ void TouchControlVisibilityScreen::CreateViews() {
row->Add(new CheckBox(i->second, "", "", new LinearLayoutParams(50, WRAP_CONTENT)));
imageFinder = keyImages.find(i->first);
Choice *choice;
if (imageFinder != keyImages.end()) {
row->Add(new Choice(keyImages[imageFinder->first], new LinearLayoutParams(1.0f)));
choice = new Choice(keyImages[imageFinder->first], new LinearLayoutParams(1.0f));
choice->SetCentered(true);
row->Add(choice);
} else {
row->Add(new Choice(mc->T(i->first.c_str()), new LinearLayoutParams(1.0f)));
choice = new Choice(mc->T(i->first.c_str()), new LinearLayoutParams(1.0f));
choice->SetCentered(true);
row->Add(choice);
}
grid->Add(row);
}