From 6b2be06eda93487ce348e744630be63a306faab4 Mon Sep 17 00:00:00 2001 From: anonTree1417 Date: Tue, 31 Mar 2020 04:04:11 +0200 Subject: [PATCH] Adjusting proportions of issue labels. --- .../org/mian/gitnex/activities/IssueDetailActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/activities/IssueDetailActivity.java b/app/src/main/java/org/mian/gitnex/activities/IssueDetailActivity.java index 675e20b7..65ce4753 100644 --- a/app/src/main/java/org/mian/gitnex/activities/IssueDetailActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/IssueDetailActivity.java @@ -427,7 +427,7 @@ public class IssueDetailActivity extends BaseActivity { if(singleIssue.getLabels() != null) { labelsScrollView.setVisibility(View.VISIBLE); - int width = 33; + int width = 25; for (int i = 0; i < singleIssue.getLabels().size(); i++) { String labelColor = singleIssue.getLabels().get(i).getColor(); @@ -443,11 +443,11 @@ public class IssueDetailActivity extends BaseActivity { .beginConfig() .useFont(Typeface.DEFAULT) .textColor(new ColorInverter().getContrastColor(color)) - .fontSize(36) + .fontSize(30) .width((width * labelName.length()) - ((width / 4) * labelName.length())) - .height(60) + .height(50) .endConfig() - .buildRoundRect(labelName, color, 8); + .buildRoundRect(labelName, color, 10); labelsView.setImageDrawable(drawable); labelsLayout.addView(labelsView);