-
Notifications
You must be signed in to change notification settings - Fork 0
/
SecondActivity.java
137 lines (125 loc) · 5.15 KB
/
SecondActivity.java
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".SecondActivity">
<EditText
android:id="@+id/tv1"
android:layout_width="200dp"
android:layout_height="0dp"
android:layout_marginStart="150dp"
android:layout_marginLeft="150dp"
android:layout_marginEnd="150dp"
android:layout_marginRight="150dp"
android:layout_marginBottom="23dp"
android:inputType="textPersonName"
app:layout_constraintBottom_toTopOf="@+id/t3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.651"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/t2" />
<EditText
android:id="@+id/tv"
android:layout_width="200dp"
android:layout_height="0dp"
android:layout_marginStart="150dp"
android:layout_marginLeft="150dp"
android:layout_marginEnd="150dp"
android:layout_marginRight="150dp"
android:layout_marginBottom="26dp"
android:inputType="textPersonName"
app:layout_constraintBottom_toTopOf="@+id/t2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.651"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/t1" />
<TextView
android:id="@+id/t1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:text="Book Name"
android:textSize="25dp"
app:layout_constraintBottom_toTopOf="@+id/tv"
app:layout_constraintEnd_toEndOf="@+id/t2"
app:layout_constraintHorizontal_bias="0.51"
app:layout_constraintStart_toStartOf="@+id/t2"
app:layout_constraintTop_toBottomOf="@+id/b2" />
<TextView
android:id="@+id/t2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:text="Author name"
android:textSize="25dp"
app:layout_constraintBottom_toTopOf="@+id/tv1"
app:layout_constraintEnd_toEndOf="@+id/t3"
app:layout_constraintStart_toStartOf="@+id/t3"
app:layout_constraintTop_toBottomOf="@+id/tv" />
<TextView
android:id="@+id/t3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="43dp"
android:layout_marginLeft="43dp"
android:layout_marginBottom="19dp"
android:ems="10"
android:text="Availibility"
android:textSize="25dp"
app:layout_constraintBottom_toTopOf="@+id/rb1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv1" />
<RadioButton
android:id="@+id/rb1"
android:layout_width="150dp"
android:layout_height="0dp"
android:layout_marginStart="49dp"
android:layout_marginLeft="49dp"
android:layout_marginEnd="50dp"
android:layout_marginRight="50dp"
android:layout_marginBottom="9dp"
android:text="Available"
android:textSize="18dp"
app:layout_constraintBottom_toTopOf="@+id/rb2"
app:layout_constraintEnd_toEndOf="@+id/tv1"
app:layout_constraintStart_toStartOf="@+id/t3"
app:layout_constraintTop_toBottomOf="@+id/t3" />
<RadioButton
android:id="@+id/rb2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="47dp"
android:text="Not Available"
android:textSize="18dp"
app:layout_constraintBottom_toTopOf="@+id/b1"
app:layout_constraintStart_toStartOf="@+id/rb1"
app:layout_constraintTop_toBottomOf="@+id/rb1" />
<Button
android:id="@+id/b1"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginBottom="144dp"
android:background="#fafafa"
android:text="Add New"
android:textColor="@android:color/holo_purple"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rb2" />
<Button
android:id="@+id/b2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="76dp"
android:background="#fafafa"
android:text="Connect to library database"
app:layout_constraintBottom_toTopOf="@+id/t1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>