summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 18:47:30 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 18:47:30 +0100
commitb54b731b3333e3e7936a15ccff925ff8a203dd53 (patch)
tree3cf869121a587417e32b005bc90ef2bda200796c /app/src/main/res/layout
parent2f9de2df29150d092bfaa46ea93e3aad5496a219 (diff)
Removed justification and added links.
Justification cropped the text, decided to get rid of it. Added a url to MAL, it's clickable.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_detail_top_manga.xml44
1 files changed, 39 insertions, 5 deletions
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 dfeb8ba..6d069c9 100644
--- a/app/src/main/res/layout/activity_detail_top_manga.xml
+++ b/app/src/main/res/layout/activity_detail_top_manga.xml
@@ -222,18 +222,18 @@
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"
android:textIsSelectable="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_text_synopsis"
- tools:targetApi="o" />
+ />
</androidx.constraintlayout.widget.ConstraintLayout>
</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"
@@ -258,15 +258,49 @@
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"
android:textIsSelectable="true"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/tv_text_background"
- tools:targetApi="o" />
+ 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"
+ android:padding="10dp">
+
+
+ <TextView
+ android:id="@+id/tv_text_url"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/text_url"
+ android:textColor="@color/strong_pink"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/tv_url"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/url"
+ android:textColor="@color/slightly_desaturated_magenta"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/tv_text_url"
+ android:autoLink="all"
+ />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+ </androidx.cardview.widget.CardView>
+
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView> \ No newline at end of file