Skip to content

Commit e9db820

Browse files
committed
chore: Temporarily add image to RandomScreen
1 parent a610de6 commit e9db820

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131

3232
<p>
3333
<img src="https://github.com/user-attachments/assets/d5acc6df-0a72-48c3-8542-9e271f8ff472", width="300" />
34-
<img src="https://github.com/user-attachments/assets/d8d9dad4-4e7f-41eb-847d-833b82f64439", width="300" />
34+
<img src="https://github.com/user-attachments/assets/d8d9dad4-4e7f-41eb-847d-833b82f64439", width="300" />
35+
</p>
36+
37+
### Random Screen
38+
39+
<p>
40+
<img src="https://github.com/user-attachments/assets/2824a817-5b39-4d51-a47f-d06ddf7cc73a", width="300" />
3541
</p>
3642

3743
## 📂 Project Directory Structure
Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
11
package com.prography.android.test.hyunjung.ui.random
22

3+
import androidx.compose.foundation.Image
4+
import androidx.compose.foundation.background
35
import androidx.compose.foundation.layout.Box
46
import androidx.compose.foundation.layout.fillMaxSize
5-
import androidx.compose.material3.Text
67
import androidx.compose.runtime.Composable
78
import androidx.compose.ui.Modifier
9+
import androidx.compose.ui.res.painterResource
10+
import androidx.compose.ui.tooling.preview.Preview
11+
import com.prography.android.test.hyunjung.R
12+
import com.prography.android.test.hyunjung.ui.theme.White
13+
import com.prography.android.test.hyunjung.ui.theme._10thandroidtestTheme
814

915
@Composable
10-
fun RandomScreen(modifier: Modifier = Modifier) {
16+
fun RandomScreen() {
1117
Box(
1218
modifier = Modifier
1319
.fillMaxSize()
20+
.background(White),
1421
) {
15-
Text("Random Photos")
22+
Image(
23+
painter = painterResource(R.drawable.img_random),
24+
contentDescription = null
25+
)
26+
}
27+
}
28+
29+
@Preview
30+
@Composable
31+
private fun RandomScreenPreview() {
32+
_10thandroidtestTheme {
33+
RandomScreen()
1634
}
1735
}
1.63 MB
Loading

0 commit comments

Comments
 (0)