Skip to content

[정현수_Android] 6-2주차 과제 제출#6

Open
Rickettsia1234 wants to merge 2 commits into
BCSDLab-Edu:mainfrom
Rickettsia1234:week6-2
Open

[정현수_Android] 6-2주차 과제 제출#6
Rickettsia1234 wants to merge 2 commits into
BCSDLab-Edu:mainfrom
Rickettsia1234:week6-2

Conversation

@Rickettsia1234

Copy link
Copy Markdown

No description provided.

@JaeYoung290 JaeYoung290 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고 많으셨습니다!

Comment on lines +118 to +119
setTextViewText(notificationBinding.tvTitle.id, getString(R.string.notification_title))
setTextViewText(notificationBinding.tvContent.id, getString(R.string.notification_content, count))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tvTitle, tvContent 모두 R.id로 대체 가능해 보입니다.

Comment on lines +156 to 165
companion object {
const val CHANNEL_ID = "notification_channel"
const val NOTIFICATION_ID = 1
const val ACTION_MORE = "ACTION_MORE"
const val ACTION_CLOSE = "ACTION_CLOSE"
const val ACTION_LAUNCH_MAIN2 = "ACTION_LAUNCH_MAIN2"
const val EXTRA_NOTIFICATION_ID = "NOTIFICATION_ID"
const val EXTRA_INTENT_COUNT = "INTENT_COUNT"
const val EXTRA_RETURN_COUNT = "RETURN_COUNT"
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

MainActivity.kt에서 선언한 상수를 MainActivity2.kt에서도 사용되는데, 이럴 경우 두 클래스 사이에 결합도가 높아집니다.
별도 constant 파일로 분리하시는 것도 좋아보입니다.

Comment on lines +40 to +57
<TextView
android:id="@+id/btn_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_more_text"
android:textColor="@color/blue_3F"
android:textSize="14sp"
android:textStyle="bold"
android:paddingEnd="24dp" />

<TextView
android:id="@+id/btn_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_close_text"
android:textColor="@color/red_FF"
android:textSize="14sp"
android:textStyle="bold" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

textView라 btn_ 보다는 tv_ 접두어가 괜찮아 보입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants