-
Notifications
You must be signed in to change notification settings - Fork 8
2주차 미션 / 2조 김대한 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
about-kim
wants to merge
13
commits into
Konkuk-KUIT:about-kim
Choose a base branch
from
about-kim:about-kim/week2
base: about-kim
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
2주차 미션 / 2조 김대한 #17
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
74d2238
Create PULL_REQUEST_TEMPLATE.md
ProtossManse b23ca46
김대한 제출완료
about-kim 94f81be
Merge branch 'Konkuk-KUIT:main' into about-kim/week1
about-kim 5d92e23
Merge pull request #1 from about-kim/about-kim/week1
about-kim a3c8509
테스트
about-kim ecf92f8
테스트2
about-kim 4180006
동기화 수정
about-kim 960c19c
테스트3
about-kim 7ead13b
Merge branch 'about-kim/week1'
about-kim 2777d01
수정
about-kim 041fc45
fix3
about-kim 4579cc7
fixed4
about-kim 027e658
최종제출
about-kim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| - 제목: | ||
| N주차 미션 / N조 000 (확인 후 지워주세요) | ||
|
|
||
| ## 1. 미션 | ||
| 각 주차에 해당하는 미션 체크리스트 | ||
|
|
||
| - | ||
|
|
||
| ## 2. 구현에 대한 설명 | ||
| 본인이 구현한 것에 대한 설명 | ||
|
|
||
| - | ||
|
|
||
| ## 3. 스크린샷 & 실행영상 | ||
| 실행영상이 있다면 실행영상을, 없다면 스크린샷 첨부 | ||
|
|
||
| - | ||
|
|
||
| ## 4. 기타 | ||
| 기타 문의사항이나 질문사항, 그 외 하고싶은 말 | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.example.kuit7 | ||
|
|
||
| data class Call( | ||
| val image: Int, | ||
| val name: String, | ||
| val phone: String | ||
| ) { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| package com.example.kuit7 | ||
|
|
||
| import androidx.compose.foundation.Image | ||
| import androidx.compose.foundation.layout.Arrangement | ||
| import androidx.compose.foundation.layout.Column | ||
| import androidx.compose.foundation.layout.Row | ||
| import androidx.compose.foundation.layout.Spacer | ||
| import androidx.compose.foundation.layout.fillMaxSize | ||
| import androidx.compose.foundation.layout.fillMaxWidth | ||
| import androidx.compose.foundation.layout.height | ||
| import androidx.compose.foundation.layout.padding | ||
| import androidx.compose.foundation.layout.size | ||
| import androidx.compose.foundation.lazy.LazyColumn | ||
| import androidx.compose.foundation.lazy.items | ||
| import androidx.compose.material3.HorizontalDivider | ||
| import androidx.compose.material3.Text | ||
| import androidx.compose.runtime.Composable | ||
| import androidx.compose.ui.Alignment | ||
| import androidx.compose.ui.Modifier | ||
| import androidx.compose.ui.res.painterResource | ||
| import androidx.compose.ui.text.font.FontWeight | ||
| import androidx.compose.ui.tooling.preview.Preview | ||
| import androidx.compose.ui.unit.dp | ||
| import androidx.compose.ui.unit.sp | ||
|
|
||
| @Composable | ||
| fun ContactScreen(modifier: Modifier = Modifier) { | ||
| val callList = listOf<Call>( | ||
| Call( | ||
| image = R.drawable.call1, | ||
| name = "박서연", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call2, | ||
| name = "김건국", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call3, | ||
| name = "홍길동", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call1, | ||
| name = "박서연", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call2, | ||
| name = "김건국", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call3, | ||
| name = "홍길동", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call1, | ||
| name = "박서연", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call2, | ||
| name = "김건국", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call3, | ||
| name = "홍길동", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call1, | ||
| name = "박서연", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call2, | ||
| name = "김건국", | ||
| phone = "010-1234-5678" | ||
| ), | ||
| Call( | ||
| image = R.drawable.call3, | ||
| name = "홍길동", | ||
| phone = "010-1234-5678" | ||
| ) | ||
| ) | ||
| Column(Modifier.fillMaxSize()) { | ||
|
|
||
| Row( | ||
| Modifier.fillMaxWidth(), | ||
| horizontalArrangement = Arrangement.Center, | ||
| ) { | ||
| Text( | ||
| text = "연락처", | ||
| fontSize = 20.sp, | ||
| fontWeight = FontWeight.Bold | ||
| ) | ||
| } | ||
| Spacer(modifier = Modifier.height(height = 42.dp)) | ||
|
|
||
| LazyColumn(Modifier.fillMaxSize().padding(horizontal = 20.dp)) { | ||
| items(callList) { call -> | ||
| Column() { | ||
| Spacer(modifier.height(3.dp)) | ||
| Row( | ||
| modifier.fillMaxWidth(), | ||
| verticalAlignment = Alignment.CenterVertically, | ||
| horizontalArrangement = Arrangement.SpaceBetween | ||
| ) { | ||
| Image( | ||
| painterResource(call.image), | ||
| contentDescription = null, | ||
| modifier.size(63.dp) | ||
| ) | ||
|
|
||
| Text( | ||
| text = call.name, | ||
| fontSize = 16.sp | ||
| ) | ||
| Text( | ||
| text = call.phone, | ||
| fontSize = 16.sp | ||
| ) | ||
| } | ||
|
|
||
| Spacer(modifier.height(10.dp)) | ||
| HorizontalDivider(thickness = 1.dp) | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @Preview(showBackground = true) | ||
| @Composable | ||
| private fun ContactScreenPreview() { | ||
| ContactScreen() | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NewsScreen을 호출해주시면 실행 화면에서도 확인하실 수 있습니다!
예) NewsScreen(modifier = Modifier.padding(innerPadding))