From 76b8df2b28cb2bfc080f6205e4b169b1b51ee2cd Mon Sep 17 00:00:00 2001 From: neslihanturan Date: Sat, 19 May 2018 23:41:05 +0300 Subject: [PATCH] Change category question text sizes --- .../fr/free/nrw/commons/review/ReviewImageFragment.java | 8 +++++++- app/src/main/res/layout/fragment_review_image.xml | 3 ++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java b/app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java index bab8df6df..e3e20bac9 100644 --- a/app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java +++ b/app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java @@ -3,10 +3,12 @@ package fr.free.nrw.commons.review; import android.app.AlertDialog; import android.os.Bundle; import android.text.TextUtils; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; +import android.widget.TableLayout; import android.widget.TextView; import com.facebook.drawee.view.SimpleDraweeView; @@ -47,6 +49,7 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment { if (catsView != null) { ((TextView) catsView).setText(catString); } + } @Override @@ -61,6 +64,8 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment { View layoutView = inflater.inflate(R.layout.fragment_review_image, container, false); View textView = layoutView.findViewById(R.id.reviewQuestion); + View textViewQuestion = layoutView.findViewById(R.id.reviewQuestion); + View textViewQuestionContext = layoutView.findViewById(R.id.reviewQuestionContext); catsView = layoutView.findViewById(R.id.reviewCategories); String question; switch(position) { @@ -68,6 +73,8 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment { question = getString(R.string.review_copyright); break; case CATEGORY: + textViewQuestion.setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT, 0.35f)); + textViewQuestionContext.setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT, 0.35f)); question = getString(R.string.review_category); catsView.setVisibility(View.VISIBLE); break; @@ -88,5 +95,4 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment { } return layoutView; } - } diff --git a/app/src/main/res/layout/fragment_review_image.xml b/app/src/main/res/layout/fragment_review_image.xml index 7abf88f01..aa5d19414 100644 --- a/app/src/main/res/layout/fragment_review_image.xml +++ b/app/src/main/res/layout/fragment_review_image.xml @@ -5,7 +5,7 @@ android:layout_height="match_parent" android:weightSum="6" android:orientation="vertical" - android:gravity="center_horizontal" + android:gravity="center_horizontal|bottom" > diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 838897dd1..c1904d51f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -480,5 +480,6 @@ Upload your first media by touching the camera or gallery icon above. Is this a copyright violation? Is this mis-categorized? Is this spam? + This image is uncategorized