Skip to content
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

Week1 필수과제 #1

Merged
merged 28 commits into from
Apr 16, 2023
Merged

Week1 필수과제 #1

merged 28 commits into from
Apr 16, 2023

Conversation

SeonHwan-Kim
Copy link
Collaborator

@SeonHwan-Kim SeonHwan-Kim commented Apr 5, 2023

Issue Number

필수과제 수행

  • 로그인 페이지
    • id, password 일치 시 로그인
    • 성공했습니다 toast 메세지
    • 비밀번호 보이지 않게 하기
  • 회원가입 페이지
    • 회원가입 성공 조건 만족시키기
    • 스낵바 띄우기
  • 메인 페이지
    • 이름과 특기 불러오기

심화 과제

  • Activity 생명 주기 알아오기
  • 조금 더 좋은 UX 제공하기
    • text 한 줄로 제한
    • 엔터키 입력 시 다음 edittext 속성으로 넘어가기
    • inputType 속성들에 대해 알아보자
    • hideKeyBoard() 함수 만들고 화면 클릭 이벤트 구현하기

도전 과제

  • 홈화면에서 로그인 화면으로 넘어가지 않게 하기

부족한 부분

  • userdata 분리? (data class 이용해보기)
  • 도전과제
  • windowSoftInputMode="adjustResize" 를 사용하면 이상해짐..

Copy link

@skylartosf skylartosf left a comment

Choose a reason for hiding this comment

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

멋.찌.다. 선환아

if (id == binding.etMainId.text.toString() && password == binding.etMainPassword.text.toString()) {
val intent = Intent(this, MainActivity::class.java)
intent.putExtra("name", name)
intent.putExtra("specialty", specialty)

Choose a reason for hiding this comment

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

여기서 "name", "specialty" 와 같은 부분은 매직리터럴이라고 합니다~
만약 MainActivity 에서 intent 로 부터 담긴 value 를 꺼내올때 key 에 오타가 있으면 컴파일 시점에는 잡히지 않는데,
런타임 시점에서는 버그로 발생되어지겠죵?

app/src/main/java/org/android/go/sopt/main/MainActivity.kt Outdated Show resolved Hide resolved
val name = binding.etSignupName.text
val specialty = binding.etSignupSpecialty.text

if(id.length !in 6..10){

Choose a reason for hiding this comment

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

이런 if, else 처리는 개인적으로 코틀린 스럽지 않다고 생각되어지고요..
이런거 해결하는 방법들을 코틀린스럽게 에서 알려줄게요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵!!

@SeonHwan-Kim SeonHwan-Kim merged commit a371f38 into develop Apr 16, 2023
Copy link

@skylartosf skylartosf left a comment

Choose a reason for hiding this comment

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

성환이...최고.....💝

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.

4 participants