11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <androidx .constraintlayout.widget.ConstraintLayout
3+ xmlns : android =" http://schemas.android.com/apk/res/android"
34 xmlns : app =" http://schemas.android.com/apk/res-auto"
45 xmlns : tools =" http://schemas.android.com/tools"
5- android : background = " @color/white "
6+ android : layout_height = " match_parent "
67 android : layout_width =" match_parent"
7- android : layout_height =" match_parent" >
8+ >
9+ <androidx .appcompat.widget.Toolbar
10+ android : id =" @+id/toolbar"
11+ app : layout_constraintTop_toTopOf =" parent"
12+ app : layout_constraintStart_toStartOf =" parent"
13+ app : layout_constraintEnd_toEndOf =" parent"
14+ android : layout_width =" match_parent"
15+ app : navigationIcon =" @drawable/ic_arrow_back_black_24dp"
16+ app : background =" @color/colorPrimary"
17+ android : layout_height =" 56dp" />
818
9- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
19+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
1020 xmlns : app =" http://schemas.android.com/apk/res-auto"
1121 xmlns : tools =" http://schemas.android.com/tools"
22+ app : layout_constraintTop_toBottomOf =" @id/toolbar"
1223 android : layout_width =" match_parent"
13- android : layout_height =" match_parent" >
14-
15- <androidx .appcompat.widget.Toolbar
16- android : id =" @+id/toolbar"
17- android : layout_width =" match_parent"
18- android : layout_height =" 45dp"
19- app : layout_constraintTop_toTopOf =" parent"
20- app : navigationIcon =" @drawable/ic_arrow_back_black_24dp" />
24+ android : layout_height =" match_parent"
25+ android : background =" @color/white" >
2126
22- <ImageView
23- android : id =" @+id/imgBook"
27+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
28+ xmlns : app =" http://schemas.android.com/apk/res-auto"
29+ xmlns : tools =" http://schemas.android.com/tools"
2430 android : layout_width =" match_parent"
25- android : layout_height =" 500dp"
26- app : layout_constraintTop_toBottomOf =" @id/toolbar"
27- tools : src =" @drawable/ic_library_books_white_24dp" />
31+ android : layout_height =" match_parent" >
32+
33+ <ImageView
34+ android : id =" @+id/imgBook"
35+ android : layout_width =" match_parent"
36+ android : layout_height =" 500dp"
37+ app : layout_constraintTop_toBottomOf =" parent"
38+ tools : src =" @drawable/ic_library_books_white_24dp" />
39+
40+ <TextView
41+ android : id =" @+id/txtTitle"
42+ android : layout_width =" wrap_content"
43+ android : layout_height =" wrap_content"
44+ android : layout_marginStart =" 16dp"
45+ android : layout_marginTop =" 16dp"
46+ android : layout_marginEnd =" 16dp"
47+ android : gravity =" center"
48+ android : maxLines =" 3"
49+ android : textSize =" 34sp"
50+ app : layout_constraintEnd_toEndOf =" parent"
51+ app : layout_constraintStart_toStartOf =" parent"
52+ app : layout_constraintTop_toBottomOf =" @+id/imgBook"
53+ tools : text =" The Picture of Dorian Gray on Saturday" />
54+
55+ <TextView
56+ android : id =" @+id/txtAuthorLabel"
57+ android : layout_width =" wrap_content"
58+ android : layout_height =" wrap_content"
59+ android : layout_marginStart =" 16dp"
60+ android : layout_marginTop =" 16dp"
61+ android : text =" @string/author_label"
62+ app : layout_constraintStart_toStartOf =" parent"
63+ app : layout_constraintTop_toBottomOf =" @+id/txtTitle" />
2864
29- <TextView
30- android : id =" @+id/txtTitle"
31- android : layout_width =" wrap_content"
32- android : layout_height =" wrap_content"
33- android : layout_marginStart =" 16dp"
34- android : layout_marginTop =" 16dp"
35- android : layout_marginEnd =" 16dp"
36- android : gravity =" center"
37- android : maxLines =" 3"
38- android : textSize =" 34sp"
39- app : layout_constraintEnd_toEndOf =" parent"
40- app : layout_constraintStart_toStartOf =" parent"
41- app : layout_constraintTop_toBottomOf =" @+id/imgBook"
42- tools : text =" The Picture of Dorian Gray on Saturday" />
65+ <TextView
66+ android : id =" @+id/txtAuthorName"
67+ android : layout_width =" wrap_content"
68+ android : layout_height =" wrap_content"
69+ android : layout_marginTop =" 16dp"
70+ app : layout_constraintStart_toEndOf =" @+id/txtAuthorLabel"
71+ app : layout_constraintTop_toBottomOf =" @+id/txtTitle"
72+ tools : text =" James Barr" />
4373
44- <TextView
45- android : id =" @+id/txtAuthorLabel"
46- android : layout_width =" wrap_content"
47- android : layout_height =" wrap_content"
48- android : layout_marginStart =" 16dp"
49- android : layout_marginTop =" 16dp"
50- android : text =" @string/author_label"
51- app : layout_constraintStart_toStartOf =" parent"
52- app : layout_constraintTop_toBottomOf =" @+id/txtTitle" />
5374
54- <TextView
55- android : id =" @+id/txtAuthorName"
56- android : layout_width =" wrap_content"
57- android : layout_height =" wrap_content"
58- android : layout_marginTop =" 16dp"
59- app : layout_constraintStart_toEndOf =" @+id/txtAuthorLabel"
60- app : layout_constraintTop_toBottomOf =" @+id/txtTitle"
61- tools : text =" James Barr" />
6275
63- <com .google.android.material.button.MaterialButton
64- android : id =" @+id/btnToRead"
65- android : layout_width =" 160dp"
66- android : layout_height =" 45dp"
67- android : layout_marginTop =" 24dp"
68- android : text =" @string/to_read_btn"
69- app : icon =" @drawable/ic_bookmark_white_24dp"
70- app : layout_constraintEnd_toStartOf =" @+id/btnCompleted"
71- app : layout_constraintHorizontal_bias =" 0.5"
72- app : layout_constraintStart_toStartOf =" parent"
73- app : layout_constraintTop_toBottomOf =" @id/txtAuthorName" />
76+ <com .google.android.material.button.MaterialButton
77+ android : id =" @+id/btnToRead"
78+ android : layout_width =" 160dp"
79+ android : layout_height =" 45dp"
80+ android : layout_marginTop =" 24dp"
81+ android : text =" @string/to_read_btn"
82+ app : icon =" @drawable/ic_bookmark_white_24dp"
83+ app : layout_constraintEnd_toStartOf =" @+id/btnCompleted"
84+ app : layout_constraintHorizontal_bias =" 0.5"
85+ app : layout_constraintStart_toStartOf =" parent"
86+ app : layout_constraintTop_toBottomOf =" @id/txtAuthorName" />
7487
75- <com .google.android.material.button.MaterialButton
76- android : id =" @+id/btnCompleted"
77- android : layout_width =" 160dp"
78- android : layout_height =" 45dp"
79- android : layout_marginTop =" 24dp"
80- android : text =" @string/completed_btn"
81- app : icon =" @drawable/ic_library_books_white_24dp"
82- app : layout_constraintEnd_toEndOf =" parent"
83- app : layout_constraintHorizontal_bias =" 0.5"
84- app : layout_constraintStart_toEndOf =" @+id/btnToRead"
85- app : layout_constraintTop_toBottomOf =" @id/txtAuthorName" />
86- </androidx .constraintlayout.widget.ConstraintLayout>
87- </ScrollView >
88+ <com .google.android.material.button.MaterialButton
89+ android : id =" @+id/btnCompleted"
90+ android : layout_width =" 160dp"
91+ android : layout_height =" 45dp"
92+ android : layout_marginTop =" 24dp"
93+ android : text =" @string/completed_btn"
94+ app : icon =" @drawable/ic_library_books_white_24dp"
95+ app : layout_constraintEnd_toEndOf =" parent"
96+ app : layout_constraintHorizontal_bias =" 0.5"
97+ app : layout_constraintStart_toEndOf =" @+id/btnToRead"
98+ app : layout_constraintTop_toBottomOf =" @id/txtAuthorName" />
99+ </androidx .constraintlayout.widget.ConstraintLayout>
100+ </ScrollView >
101+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments