Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Android
- FullScreen
- 변수
- 안드로이드
- 회원가입
- SharedPreference
- Visible
- 코틀린
- 휴대전화
- 자바
- Button
- invisible
- 버튼 투명화
- 생명주기
- Regex
- 상수
- Gone
- ExoPlayer2
- 면접준비
- 비밀번호
- Val
- call by reference
- 유효성 검사
- 핸드폰번호
- 전체화면
- Kotlin
- 4대컴포넌트
- call by value
- ExoPlayer
- Var
Archives
- Today
- Total
목록휴대전화 (1)
천천히 , 강하게 멀리
코틀린 유효성 검사
//이메일 유효성 if (!Patterns.EMAIL_ADDRESS.matcher(editEmail.text.toString()).matches()) { Toast.makeText(this, "이메일 형식이 아닙니다", Toast.LENGTH_SHORT).show() editEmail.requestFocus() } // 비밀번호 유효성 val passMatches = Regex("^(?=.*[a-zA-Z0-9])(?=.*[!@#\$%^*+=-]).{8,20}$") if (!editPassword.text.toString().matches(passMatches)){ Toast.makeText(this, "올바른 비밀번호가 아닙니다.", Toast.LENGTH_SHORT).show() editPassword..
Programming/Kotlin
2020. 3. 26. 13:56