File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
java/com/prography/android/test/hyunjung/ui/random Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11package com.prography.android.test.hyunjung.ui.random
22
3+ import androidx.compose.foundation.Image
4+ import androidx.compose.foundation.background
35import androidx.compose.foundation.layout.Box
46import androidx.compose.foundation.layout.fillMaxSize
5- import androidx.compose.material3.Text
67import androidx.compose.runtime.Composable
78import 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}
You can’t perform that action at this time.
0 commit comments