forked from BorntoDev/PueanNgi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity_answer.xml
93 lines (90 loc) · 5.42 KB
/
activity_answer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".AnswerActivity">
<android.support.constraint.ConstraintLayout
android:id="@+id/result_layout"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:background="@drawable/background"
app:layout_constraintBottom_toTopOf="@+id/btn_share">
<ImageView
android:layout_width="match_parent"
android:layout_height="350dp" app:srcCompat="@drawable/ic_text_balloon"
android:id="@+id/imageView3"
android:layout_marginTop="16dp" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="16dp"
app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="16dp"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="284dp" app:srcCompat="@drawable/ic_006_friendship_2"
android:id="@+id/iv_friend_ic" app:layout_constraintEnd_toEndOf="parent"
android:scaleType="fitEnd"
android:adjustViewBounds="false" android:cropToPadding="false"
app:layout_constraintBottom_toBottomOf="parent"
android:scrollY="-20dp" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintVertical_bias="1.0"/>
<android.support.constraint.ConstraintLayout
android:layout_width="350dp"
android:layout_height="300dp"
app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="16dp"
app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="16dp"
android:layout_marginTop="20dp" app:layout_constraintTop_toTopOf="parent"
android:padding="16dp" android:id="@+id/constraintLayout">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tv_question"
android:textColor="@android:color/white"
android:layout_marginTop="16dp"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="16dp"
app:layout_constraintStart_toStartOf="parent"
android:maxLines="2"
android:textStyle="bold"
android:textSize="24sp"
android:text="ถ้าจะออกไปกินข้าวตอนนี้กับเพื่อนๆของเราจะดีไหม?"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"/>
<TextView
android:text="ไม่มีอะไรดีกว่านี้อีกแล้วเพื่อน"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tv_answer" android:textSize="38sp"
android:textColor="@android:color/white" android:textAlignment="center"
android:layout_marginStart="16dp" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp" app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginTop="8dp" app:layout_constraintTop_toBottomOf="@+id/tv_question"/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
<Button
android:layout_width="0dp"
android:layout_height="48dp"
android:id="@+id/btn_share" android:background="@color/colorAccent"
android:textColor="@android:color/white"
app:layout_constraintHorizontal_weight="4"
android:text="แชร์"
app:layout_constraintRight_toLeftOf="@id/btn_play_again"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<Button
android:text="เล่นอีกครั้ง"
android:layout_width="0dp"
android:layout_height="48dp"
app:layout_constraintHorizontal_weight="7"
android:id="@+id/btn_play_again"
android:background="@color/colorPrimaryDark"
app:layout_constraintLeft_toRightOf="@id/btn_share"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:textColor="@android:color/white"/>
</android.support.constraint.ConstraintLayout>