diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-22 01:25:50 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-22 01:25:50 +0100 |
commit | 8e2f9e71a8b5ca3c978007da5c6db59491349d84 (patch) | |
tree | e69a1fbc7517f35dbb50af62ba97d456f5534dd9 /app | |
parent | 3265956c1a74f2346c5f7fedaf938d71b69261ba (diff) |
Text justified and constrained better.
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 7 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_detail_top_manga.xml | 13 |
3 files changed, 11 insertions, 13 deletions
diff --git a/app/build.gradle b/app/build.gradle index fb76368..1e612ce 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,9 +46,10 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' - //Recycleview + //Recycleview for lists implementation "androidx.recyclerview:recyclerview:1.1.0" - //Retrofit + + //Retrofit for REST APIs implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' @@ -59,7 +60,7 @@ dependencies { androidTestImplementation 'com.android.support:support-annotations:28.0.0' androidTestImplementation 'com.android.support.test:runner:1.0.2' - //to display images + //Glide to display images properly implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' 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" /> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.cardview.widget.CardView> @@ -248,16 +248,17 @@ android:textColor="@color/strong_pink" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent"/> + <TextView android:id="@+id/tv_background" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:justificationMode="inter_word" android:text="@string/background" 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_background"/> + app:layout_constraintTop_toBottomOf="@id/tv_text_background" + tools:targetApi="o" /> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.cardview.widget.CardView> |