compose textfield1 Android Compose TextField 천 단위 콤마로 표현하기 📌Util 함수 만들어주기// 천 단위 콤마 변환을 함수로 구현fun thousandSeparatorTransformation(): VisualTransformation { return VisualTransformation { text -> val originalText = text.text val formattedText = originalText.toLongOrNull()?.let { DecimalFormat("#,###").format(it) } ?: originalText val offsetMapping = object : OffsetMapping { override fun originalToTrans.. 2024. 10. 24. 이전 1 다음