aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:00:36 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:00:36 +0100
commit494455de615340599cf2cdba0f3f199a47bf5a66 (patch)
treeae8521428bdde7750294d25c8e49a93df9e95f26
parente79bf68553676c9be09f4616aadcd522149c506e (diff)
Removing background because most dont seem to have one.feature/elements_detail
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt3
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt7
-rw-r--r--app/src/main/res/layout/activity_detail_top_anime.xml35
3 files changed, 0 insertions, 45 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt
index 747ddaf..aa15dfd 100644
--- a/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt
@@ -8,7 +8,4 @@ class RestAnimeResponse{ //only kept the infos I didn't have and that were inter
var mal_id: Int? = null
@SerializedName("synopsis")
var synopsis: String? = null
- @SerializedName("background")
- var background: String? = null
-
}
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt
index 383c73e..3f1d008 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt
@@ -149,16 +149,9 @@ class DetailTopAnimeActivity : AppCompatActivity() {
private fun showDetail(anime: RestAnimeResponse) {
//elements from RestAnimeResponse
val tvSynopsis: TextView = findViewById(R.id.tv_synopsis)
- val tvBackground: TextView = findViewById(R.id.tv_background)
tvSynopsis.text = anime.synopsis.toString()
- tvBackground.text = if (anime.background != null){
- anime.background.toString()
- } else {
- fieldIsNull()
- }
-
}
fun showError(text: String) {
diff --git a/app/src/main/res/layout/activity_detail_top_anime.xml b/app/src/main/res/layout/activity_detail_top_anime.xml
index 6afa6ad..a982bdd 100644
--- a/app/src/main/res/layout/activity_detail_top_anime.xml
+++ b/app/src/main/res/layout/activity_detail_top_anime.xml
@@ -214,46 +214,11 @@
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
- android:id="@+id/cv_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4sp"
app:cardBackgroundColor="@color/black"
app:layout_constraintTop_toBottomOf="@id/cv_synopsis">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="10dp">
-
-
- <TextView
- android:id="@+id/tv_text_background"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/text_background"
- android:textColor="@color/strong_pink"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <TextView
- android:id="@+id/tv_background"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/background"
- android:textColor="@color/slightly_desaturated_magenta"
- android:textIsSelectable="true"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/tv_text_background" />
-
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
-
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="4sp"
- app:cardBackgroundColor="@color/black"
- app:layout_constraintTop_toBottomOf="@id/cv_background">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"