From 8e2f9e71a8b5ca3c978007da5c6db59491349d84 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 22 Feb 2021 01:25:50 +0100 Subject: Text justified and constrained better. --- .../xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt | 4 ---- app/src/main/res/layout/activity_detail_top_manga.xml | 13 +++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt index 5749071..1863815 100644 --- a/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt @@ -1,14 +1,10 @@ package xyz.adjutor.aniki.topmanga -import android.content.Context import android.os.Bundle -import android.view.View import android.widget.ImageView import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity -import androidx.recyclerview.widget.LinearLayoutManager -import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import com.google.gson.GsonBuilder diff --git a/app/src/main/res/layout/activity_detail_top_manga.xml b/app/src/main/res/layout/activity_detail_top_manga.xml index ffb9791..f5ce8b9 100644 --- a/app/src/main/res/layout/activity_detail_top_manga.xml +++ b/app/src/main/res/layout/activity_detail_top_manga.xml @@ -218,12 +218,12 @@ android:id="@+id/tv_synopsis" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:justificationMode="inter_word" android:text="@string/synopsis" android:textColor="@color/slightly_desaturated_magenta" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/tv_text_synopsis"/> + app:layout_constraintTop_toBottomOf="@id/tv_text_synopsis" + tools:targetApi="o" /> @@ -248,16 +248,17 @@ android:textColor="@color/strong_pink" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent"/> + + app:layout_constraintTop_toBottomOf="@id/tv_text_background" + tools:targetApi="o" /> -- cgit v1.2.3