-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox.kt
More file actions
23 lines (23 loc) · 691 Bytes
/
Box.kt
File metadata and controls
23 lines (23 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Box(
modifier = Modifier
.background(color = Color.Blue)
.fillMaxWidth()
.height(180.dp)
) {
Text("Hello")
Box(
modifier = Modifier
.fillMaxSize()
.padding(8.dp),
contentAlignment = Alignment.BottomEnd
){
Text("Hi------")
}
}
}
}
}