We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
LyricsListAdapter.kt
inner class LyricsTextWatcher() : TextWatcher { private var position = 0 fun updatePosition(position: Int){ this.position = position } override fun afterTextChanged(p0: Editable?) {} override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {} override fun onTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) { val text = p0.toString() interpret[position] = text lengthList[position] = text.length textLength = lengthList.sum() // EditText 총 글자 수 changeTextLengthListener.changeLength(textLength) } }
글자수 제한을 여기서 어떻게 걸어야하는지 고민 필요 RecyclerView 라서 뷰 재사용하는방식 때문에, 글자수 카운팅 하는 부분이 복잡함
현재: 완료 버튼 누를 시 <글자수가 초과되었습니다> 토스트 메시지 띄움 목표: 글자 입력 시 자동으로 1100자가 초과되면 입력이 안되게끔 하기
완료
The text was updated successfully, but these errors were encountered:
jaemin-Yoo
No branches or pull requests
LyricsListAdapter.kt
글자수 제한을 여기서 어떻게 걸어야하는지 고민 필요
RecyclerView 라서 뷰 재사용하는방식 때문에,
글자수 카운팅 하는 부분이 복잡함
The text was updated successfully, but these errors were encountered: