3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
5
android : layout_width =" match_parent"
6
+ android : background =" @color/black"
6
7
android : layout_height =" match_parent"
7
8
tools : context =" .MainActivity"
8
9
android : gravity =" center"
9
10
android : orientation =" vertical" >
10
11
11
12
<LinearLayout
12
- android : id =" @+id/linearLayout"
13
+ android : orientation =" vertical"
14
+ android : layout_width =" match_parent"
15
+ android : layout_height =" match_parent" >
16
+ <ImageView
17
+ android : background =" @drawable/background_gradient"
18
+ android : layout_weight =" 1"
19
+ android : layout_width =" match_parent"
20
+ android : layout_height =" 0dp" />
21
+ <ImageView
22
+ android : layout_weight =" 1"
23
+ android : layout_width =" match_parent"
24
+ android : layout_height =" 0dp" />
25
+ </LinearLayout >
26
+
27
+
28
+ <LinearLayout
29
+
13
30
android : layout_width =" match_parent"
14
31
android : layout_height =" wrap_content"
15
- android : layout_marginStart =" 8dp"
16
- android : layout_marginTop =" 8dp"
17
- android : layout_marginEnd =" 8dp"
18
- android : layout_marginBottom =" 8dp"
19
- app : layout_constraintBottom_toTopOf =" @+id/showInfo"
32
+ android : layout_marginStart =" 45dp"
33
+ android : layout_marginTop =" 0dp"
34
+ android : layout_marginEnd =" 45dp"
35
+ android : layout_marginBottom =" 0dp"
36
+
37
+ app : layout_constraintBottom_toTopOf =" @+id/enterInfo"
20
38
app : layout_constraintEnd_toEndOf =" parent"
21
39
app : layout_constraintHorizontal_bias =" 0.0"
22
40
app : layout_constraintStart_toStartOf =" parent"
23
41
app : layout_constraintTop_toTopOf =" parent"
24
- app : layout_constraintVertical_bias =" 0.613" >
42
+ app : layout_constraintVertical_bias =" 0.8" >
43
+
25
44
26
45
<TextView
27
46
android : id =" @+id/textView"
28
47
android : layout_width =" wrap_content"
29
48
android : layout_height =" wrap_content"
49
+ android : textColor =" #FFFFFF"
30
50
android : text =" Name : "
31
51
android : textSize =" 20sp"
32
52
android : textStyle =" bold"
33
- android : layout_marginLeft =" 30dp " />
53
+ android : layout_marginLeft =" 5dp " />
34
54
35
55
<EditText
56
+ android : drawablePadding =" 20dp"
57
+ android : drawableRight =" @drawable/ic_person"
36
58
android : id =" @+id/nameInput"
37
59
android : layout_width =" match_parent"
38
60
android : layout_height =" wrap_content"
39
- android : layout_marginLeft =" 20dp"
40
- android : layout_marginRight =" 20dp"
61
+ android : backgroundTint =" #fff"
62
+ android : layout_marginLeft =" 0dp"
63
+ android : layout_marginRight =" 5dp"
41
64
android : paddingLeft =" 10dp" />
42
65
</LinearLayout >
43
66
44
67
<Button
45
68
android : id =" @+id/showInfo"
46
- android : layout_width =" wrap_content"
47
- android : layout_height =" wrap_content"
69
+ android : textColor =" #FFFFFF"
70
+ android : textSize =" 15sp"
71
+ android : layout_width =" 350dp"
72
+ android : layout_height =" 50dp"
73
+
48
74
android : layout_marginStart =" 8dp"
49
75
android : layout_marginEnd =" 8dp"
50
- android : layout_marginBottom =" 16dp "
76
+ android : layout_marginBottom =" 250dp "
51
77
android : text =" Show information"
52
- app : layout_constraintBottom_toTopOf = " @+id/enterInfo "
78
+ app : layout_constraintBottom_toBottomOf = " parent "
53
79
app : layout_constraintEnd_toEndOf =" parent"
54
- app : layout_constraintStart_toStartOf =" parent" />
80
+ app : layout_constraintStart_toStartOf =" parent"
81
+ android : background =" @drawable/buttonshape" />
55
82
56
83
<Button
57
84
android : id =" @+id/enterInfo"
58
- android : layout_width =" wrap_content"
59
- android : layout_height =" wrap_content"
85
+ android : textColor =" #FFFFFF"
86
+ android : textSize =" 15sp"
87
+ android : layout_width =" 350dp"
88
+ android : layout_height =" 50dp"
60
89
android : layout_marginStart =" 8dp"
61
90
android : layout_marginEnd =" 8dp"
62
- android : layout_marginBottom =" 332dp "
91
+ android : layout_marginBottom =" 16dp "
63
92
android : text =" Enter Ip : port"
64
- app : layout_constraintBottom_toBottomOf =" parent"
93
+ app : layout_constraintBottom_toTopOf =" @+id/showInfo"
94
+
65
95
app : layout_constraintEnd_toEndOf =" parent"
66
- app : layout_constraintStart_toStartOf =" parent" />
96
+ app : layout_constraintStart_toStartOf =" parent"
97
+ android : background =" @drawable/buttonshape" />
67
98
68
99
69
100
</androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments