Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- 제목:
N주차 미션 / N조 000 (확인 후 지워주세요)

## 1. 미션
각 주차에 해당하는 미션 체크리스트

-

## 2. 구현에 대한 설명
본인이 구현한 것에 대한 설명

-

## 3. 스크린샷 & 실행영상
실행영상이 있다면 실행영상을, 없다면 스크린샷 첨부

-

## 4. 기타
기타 문의사항이나 질문사항, 그 외 하고싶은 말

-
95 changes: 27 additions & 68 deletions app/src/main/java/com/example/kuit7/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

불필요한 임포트 정리하는 단축키:
Windows/Linux: Ctrl + Alt + O
macOS: Option + Command + O

import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.kuit7.ui.theme.KUIT7week1Theme

class MainActivity : ComponentActivity() {
Expand All @@ -31,75 +33,32 @@ class MainActivity : ComponentActivity() {
setContent {
KUIT7week1Theme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Box(Modifier.padding(innerPadding)) {
Row {
Column(
Modifier
.padding(top = 30.dp, start = 70.dp),
verticalArrangement = Arrangement.spacedBy(20.dp)
) {
Box(
Modifier
.size(60.dp)
.background(Color.Black, shape = RoundedCornerShape(20.dp))
)
Box(
Modifier
.size(60.dp)
.border(
width = 2.dp,
color = Color.Black,
shape = RoundedCornerShape(20.dp)
)
)
Box(
Modifier
.size(76.dp)
.border(width = 1.dp, color = Color.Black)
.padding(8.dp)
.background(Color.Red)
)
Image(
painter = painterResource(R.drawable.image),
contentDescription = "강아지 이미지",
modifier = Modifier.size(80.dp)
)
}
Column(
Modifier
.padding(top = 30.dp, start = 60.dp),
verticalArrangement = Arrangement.spacedBy(20.dp)
) {
Box(
Modifier
.size(60.dp)
.background(Color.Black, shape = CircleShape)
)
Box(
Modifier
.size(60.dp)
.border(
width = 2.dp,
color = Color.Black,
shape = CircleShape
)
)
Box(
Modifier
.size(76.dp)
.border(width = 1.dp, color = Color.Black)
.padding(8.dp)
.background(Color.Blue, CircleShape)
)
Image(
painter = painterResource(R.drawable.image),
contentDescription = "강아지 이미지",
modifier = Modifier.size(80.dp)
.clip(CircleShape)
)
}
Box(
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

바깥 Box 없이 Column 만으로도 충분히 같은 디자인 구현하실 수 있습니다!

modifier = Modifier
.padding(paddingValues = innerPadding)
.padding(top = 50.dp, start = 50.dp)
.size(300.dp)
.border(
width = 2.dp, color = Color.Black, shape = RoundedCornerShape(15.dp)
)
.background(Color.White)
) {
Column(
Modifier.padding(top = 20.dp, start = 20.dp),
verticalArrangement = Arrangement.spacedBy(1.dp)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.dp 보다는 큰 값이 좋을 것 같습니다!

) {
Image(
painter = painterResource(R.drawable.picture),
contentDescription = "프로필 사진",
modifier = Modifier
.size(100.dp)
.clip(RoundedCornerShape(30.dp))
)
Text("이름: 김대한", fontSize = 15.sp)
Text("학번: 202415176", fontSize = 15.sp)
Text("학과: 컴퓨터공학부", fontSize = 15.sp)
Text("생년월일: 2002/05/22", fontSize = 15.sp)
}

}
}
}
Expand Down
Binary file added app/src/main/res/drawable/picture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.