From 881419e02845ace759b27611ffaa7ce993de714d Mon Sep 17 00:00:00 2001 From: Ryan Warsaw Date: Sun, 9 Sep 2018 01:38:59 -0500 Subject: [PATCH] Fix scaling TextView bug on Android API 27 and below --- app/build.gradle | 2 +- app/src/main/res/layout/activity_main.xml | 3 ++- .../res/layout/fragment_quiz_free_text.xml | 17 ++++++------- .../res/layout/fragment_quiz_multi_choice.xml | 25 +++++++++---------- app/src/main/res/values/strings.xml | 1 + 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f5d57ff..ccee207 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,7 +22,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:support-v4:26.1.0' implementation 'com.android.support:appcompat-v7:26.1.0' - implementation 'com.android.support.constraint:constraint-layout:1.1.2' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.google.code.gson:gson:2.8.2' implementation 'com.google.android.exoplayer:exoplayer-core:2.7.3' implementation 'com.google.android.exoplayer:exoplayer-ui:2.7.3' diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index a73ab06..2666efb 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -16,7 +16,8 @@ app:layout_constraintBottom_toTopOf="@+id/guideline_image_bottom" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="@id/guideline_header" /> + app:layout_constraintTop_toTopOf="@id/guideline_header" + android:contentDescription="@string/logo_description" /> - - - - - + app:layout_constraintGuide_percent="0.3" /> + app:layout_constraintGuide_percent="0.35" /> - + app:layout_constraintGuide_percent="0.4" /> + app:layout_constraintGuide_percent="0.45" /> Uguherahezwa kw\'akabazo Hitamwo kimwe: %1$s : Ikibazo ca (%2$d muri %3$d) + Coach Erevu logo \ No newline at end of file