Skip to content
Snippets Groups Projects
Commit e86ed59e authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko
Browse files

#59 Added missing libraries. Links wrapping fixed.

parent 901dc478
Branches
Tags
No related merge requests found
......@@ -38,7 +38,6 @@ public class AboutScreen extends AbstractTablexiaScreen<Void> {
private static final int IMAGE_PAD = 20;
private static final int CLOSE_BUTTON_PAD_BOTTOM = 25;
private static final int CLOSE_BUTTON_PAD_LEFT = 5;
public static final int MAX_LINKS_PER_ROW = 5;
private static final int CLOSE_BUTTON_SIZE = 35;
private static final int DEFAULT_FONT_PAD = 5;
......@@ -184,7 +183,7 @@ public class AboutScreen extends AbstractTablexiaScreen<Void> {
addDefaultTextToContainer(AboutAssets.PARAGRAPH_3_DETAILS_1_2);
addDefaultTextToContainer(AboutAssets.PARAGRAPH_3_DETAILS_2);
content.add(createTableWithLibrariesLinks()).maxWidth(contentWidth);
content.add(createTableWithLibrariesLinks()).width(contentWidth).center();
content.row();
addParagraphName(AboutAssets.PARAGRAPH_4);
......@@ -242,21 +241,21 @@ public class AboutScreen extends AbstractTablexiaScreen<Void> {
Table linksTable = new Table();
linksTable.align(Align.center);
List<Links> links = Links.getGroupLinks(LinkGroups.LIBRARY);
float rowWidthLeft = contentWidth;
Label label;
int i = 0;
Table temp = new Table();
for (Links link : links) {
label = (createLabelWithLink(link, false));
temp.add(label).padLeft(DEFAULT_FONT_PAD);
i++;
if (i == MAX_LINKS_PER_ROW) {
if (rowWidthLeft < label.getWidth()) {
linksTable.add(temp);
linksTable.row();
temp = new Table();
i = 0;
rowWidthLeft = contentWidth;
linksTable.row();
}
temp.add(label).padLeft(DEFAULT_FONT_PAD);
rowWidthLeft= rowWidthLeft-(label.getWidth() + DEFAULT_FONT_PAD);
}
if (i > 0) {
if(temp.hasChildren()){
linksTable.add(temp);
}
return linksTable;
......
......@@ -12,12 +12,21 @@ public enum Links {
TABLEXIA_SK("www.tablexia.cz", "https://www.tablexia.cz/sk/", LinkGroups.OTHER),
TABLEXIA_DE("www.tablexia.cz", "https://www.tablexia.cz/de/", LinkGroups.OTHER),
TABLEXIA_GIT("GitLab CZ.NIC", "https://gitlab.labs.nic.cz/labs/tablexia/tree/master", LinkGroups.OTHER),
GDX_TOOLS("gdx-tools,", "https://github.com/libgdx/libgdx/tree/master/extensions/gdx-tools", LinkGroups.LIBRARY),
LIBGDX("libGDX,", "https://libgdx.badlogicgames.com/", LinkGroups.LIBRARY),
GRADLE_ANDROID_COMMAND("gradle-android-command-plugin,", "https://github.com/novoda/gradle-android-command-plugin", LinkGroups.LIBRARY),
SDK_MANAGER("sdk-manager-plugin,", "https://github.com/JakeWharton/sdk-manager-plugin", LinkGroups.LIBRARY),
GRADLE_SPOON("gradle-spoon-plugin,", "https://github.com/x2on/gradle-spoon-plugin", LinkGroups.LIBRARY),
ROBOVM("robovm-gradle-plugin,", "https://github.com/robovm/robovm-gradle-plugin", LinkGroups.LIBRARY),
GWT_GRADLE("gwt-gradle-plugin", "https://github.com/steffenschaefer/gwt-gradle-plugin", LinkGroups.LIBRARY);
GWT_GRADLE("gwt-gradle-plugin,", "https://github.com/steffenschaefer/gwt-gradle-plugin", LinkGroups.LIBRARY),
MBASSADOR("mbassador,", "https://github.com/bennidi/mbassador", LinkGroups.LIBRARY),
JCABI_MANIFESTRS("jcabi-manifests,", "http://manifests.jcabi.com/", LinkGroups.LIBRARY),
SQLITE("sqlite-jdbc,", "https://github.com/xerial/sqlite-jdbc", LinkGroups.LIBRARY),
SQLDROID("sqldroid,", "https://github.com/SQLDroid/SQLDroid", LinkGroups.LIBRARY),
FLURRY_ANALYTICS("FlurryAnalytics,", "http://www.flurry.com/", LinkGroups.LIBRARY),
ROBOVM("robovm,", "https://robovm.com/", LinkGroups.LIBRARY),
LIBGDX_UTILS("libgdx-utils,", "https://bitbucket.org/dermetfan/libgdx-utils/wiki/Home", LinkGroups.LIBRARY),
GUAVA("guava,", "https://code.google.com/p/guava-libraries/", LinkGroups.LIBRARY),
JACKSON_CORE("fasterxml,", "http://wiki.fasterxml.com/JacksonHome", LinkGroups.LIBRARY),
SPOON_CLIENT("spoon-client", "https://github.com/square/spoon", LinkGroups.LIBRARY);
// TODO: 20.11.15 add fb & twitter
private String linkName;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment