Skip to content
Snippets Groups Projects
Commit 9c208b0b authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#34 Fixed form screen text keys

parent 450fc84a
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,9 @@ import cz.nic.tablexia.util.listener.DragSwitchListener;
public class FormScreen extends AbstractTablexiaScreen<Void> {
private static final String CREATEUSER_FORM_AGE_TEXT_KEY = "createuser_form_age";
private static final String CREATEUSER_FORM_GENDER_TEXT_KEY = "createuser_form_gender";
private static final int MUGSHOT_HEIGHT = 250;
public static final String GFX_PATH = "gfx/";
public static final String AVATAR_PATH = GFX_PATH + "avatar/";
......@@ -74,10 +77,9 @@ public class FormScreen extends AbstractTablexiaScreen<Void> {
});
this.age = 10;
// TODO load texts from resource file
Label age = new Label(getText("createuser_form_age"), getLabelStyle());
Label age = new Label(getText(CREATEUSER_FORM_AGE_TEXT_KEY), getLabelStyle());
ageLabel = new Label(String.valueOf(this.age), getLabelStyle());
Label gender = new Label(getText("createuser_form_genger"), getLabelStyle());
Label gender = new Label(getText(CREATEUSER_FORM_GENDER_TEXT_KEY), getLabelStyle());
nameLabel = new Label("", getLabelStyle());
age.setFontScale(0.7f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment