1
1
@Composable
2
- fun TextPage (modifier: Modifier = Modifier) {
2
+ fun TelephoneInterFace (modifier: Modifier = Modifier) {
3
3
Box(
4
4
modifier = modifier
5
5
.requiredWidth(width = 360.dp)
6
6
.requiredHeight(height = 834.dp)
7
7
.background(brush = Brush.linearGradient(
8
8
0f to Color(0xffc72c3f),
9
- 1f to Color.Black,
9
+ 1f to Color.Black,
10
10
start = Offset(180f, 0f),
11
11
end = Offset(180f, 834f)))
12
12
) {
@@ -37,15 +37,15 @@ fun TextPage(modifier: Modifier = Modifier) {
37
37
.align(alignment = Alignment.TopStart)
38
38
.offset(x = 108.dp,
39
39
y = 0.dp))
40
- TextButton (
41
- onClick = { } ,
42
- colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent) ,
40
+ Image (
41
+ painter = painterResource(id = R.drawable.icons8edit36hdpi1) ,
42
+ contentDescription = "icons8-edit-36(-hdpi) 1" ,
43
43
modifier = Modifier
44
44
.align(alignment = Alignment.TopStart)
45
45
.offset(x = 128.dp,
46
46
y = 100.dp)
47
47
.requiredWidth(width = 38.dp)
48
- .requiredHeight(height = 40.dp)){ }
48
+ .requiredHeight(height = 40.dp))
49
49
TextField(
50
50
value = "",
51
51
onValueChange = {},
@@ -55,6 +55,15 @@ fun TextPage(modifier: Modifier = Modifier) {
55
55
y = 57.dp)
56
56
.requiredWidth(width = 300.dp)
57
57
.requiredHeight(height = 150.dp))
58
+ TextButton(
59
+ onClick = { },
60
+ colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent),
61
+ modifier = Modifier
62
+ .align(alignment = Alignment.TopStart)
63
+ .offset(x = 116.dp,
64
+ y = 100.dp)
65
+ .requiredWidth(width = 63.dp)
66
+ .requiredHeight(height = 51.dp)){ }
58
67
}
59
68
}
60
69
}
@@ -94,15 +103,15 @@ fun TextPage(modifier: Modifier = Modifier) {
94
103
.align(alignment = Alignment.TopStart)
95
104
.offset(x = 89.dp,
96
105
y = 0.dp))
97
- TextButton (
98
- onClick = { } ,
99
- colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent) ,
106
+ Image (
107
+ painter = painterResource(id = R.drawable.icons8edit36hdpi1) ,
108
+ contentDescription = "icons8-edit-36(-hdpi) 1" ,
100
109
modifier = Modifier
101
110
.align(alignment = Alignment.TopStart)
102
111
.offset(x = 128.dp,
103
112
y = 100.dp)
104
113
.requiredWidth(width = 38.dp)
105
- .requiredHeight(height = 40.dp)){ }
114
+ .requiredHeight(height = 40.dp))
106
115
TextField(
107
116
value = "",
108
117
onValueChange = {},
@@ -112,6 +121,15 @@ fun TextPage(modifier: Modifier = Modifier) {
112
121
y = 57.dp)
113
122
.requiredWidth(width = 300.dp)
114
123
.requiredHeight(height = 150.dp))
124
+ TextButton(
125
+ onClick = { },
126
+ colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent),
127
+ modifier = Modifier
128
+ .align(alignment = Alignment.TopStart)
129
+ .offset(x = 116.dp,
130
+ y = 97.dp)
131
+ .requiredWidth(width = 63.dp)
132
+ .requiredHeight(height = 48.dp)){ }
115
133
}
116
134
}
117
135
}
@@ -160,15 +178,15 @@ fun TextPage(modifier: Modifier = Modifier) {
160
178
.align(alignment = Alignment.TopStart)
161
179
.offset(x = 99.dp,
162
180
y = 0.dp))
163
- TextButton (
164
- onClick = { } ,
165
- colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent) ,
181
+ Image (
182
+ painter = painterResource(id = R.drawable.icons8edit36hdpi1) ,
183
+ contentDescription = "icons8-edit-36(-hdpi) 1" ,
166
184
modifier = Modifier
167
185
.align(alignment = Alignment.TopStart)
168
186
.offset(x = 128.dp,
169
187
y = 100.dp)
170
188
.requiredWidth(width = 38.dp)
171
- .requiredHeight(height = 40.dp)){ }
189
+ .requiredHeight(height = 40.dp))
172
190
TextField(
173
191
value = "",
174
192
onValueChange = {},
@@ -178,6 +196,15 @@ fun TextPage(modifier: Modifier = Modifier) {
178
196
y = 57.dp)
179
197
.requiredWidth(width = 300.dp)
180
198
.requiredHeight(height = 150.dp))
199
+ TextButton(
200
+ onClick = { },
201
+ colors = ButtonDefaults.buttonColors(containerColor = Color.Transparent),
202
+ modifier = Modifier
203
+ .align(alignment = Alignment.TopStart)
204
+ .offset(x = 119.dp,
205
+ y = 94.dp)
206
+ .requiredWidth(width = 58.dp)
207
+ .requiredHeight(height = 53.dp)){ }
181
208
}
182
209
}
183
210
}
@@ -186,6 +213,6 @@ fun TextPage(modifier: Modifier = Modifier) {
186
213
187
214
@Preview(widthDp = 360, heightDp = 834)
188
215
@Composable
189
- private fun TextPagePreview () {
190
- TextPage (Modifier)
216
+ private fun TelephoneInterFacePreview () {
217
+ TelephoneInterFace (Modifier)
191
218
}
0 commit comments