Reco.dy
close
프로필 배경
프로필 로고

Reco.dy

    • 분류 전체보기
      • Android
      • Kotlin
      • RxJava
      • Git
      • 활동
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 태그
  • 방명록
[Android] EditText에 InputFilter 적용이 안될 때

[Android] EditText에 InputFilter 적용이 안될 때

EditText를 이용할 때 입력 문자에 제한을 두어야 할 때가 있습니다. 한글만 입력이 가능하게 한거나, 특수문자 입력을 막거나 할 때 등등 보통 InputFilter를 사용하여 입력을 막도록 하는데요 최근에 개발하다가 Filter 조건을 잘 걸었지만 이상하게 동작하는 현상이 발견돼서 기록해보려고 합니다!!! 1. InputFilter EditText에서 InputFilter를 사용하여 특정 문자 입력을 제한, 문자열 길이 제한 조건 설정을 할 수 있습니다. fun EditText.filterDigitAndSpecialChar() { this.filters = arrayOf( InputFilter { source, start, end, dest, dstart, dend -> val pattern = "..

  • format_list_bulleted Android
  • · 2023. 9. 13.
  • textsms
  • «
  • 1
  • »
공지사항
전체 카테고리
  • 분류 전체보기
    • Android
    • Kotlin
    • RxJava
    • Git
    • 활동
최근 글
인기 글
최근 댓글
태그
  • #basictextfield
  • #Kotlin
  • #composeUI
  • #git client
  • #InputFilter
  • #callbackFlow
  • #개발동아리
  • #android
  • #Coroutine
  • #Jetpack Compose
  • #suspendCancellableCoroutine
  • #appWidget
  • #java
  • #suspendCoroutine
  • #Rxjava
  • #git-fork
  • #Compose
  • #Flow
  • #repeatOnLifeCycle
  • #BiometricPrompt
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바