[android] 국제화 text style 입히기 - Eng : Best practices for text on Android Es : Texto en Android: mejores prácticas 여기서 Text, Texto 에만 bold 처리를 하고 싶다면? - 간단한 styling 은 HTML tag 를 이용하자. Text 와 Texto 를 각각 tag 로 감싸고, setText(Html.fromHtml(…)) API 호출을 해주자. - HTML tag 로 해결하기 어려운 복잡한 케이스는 annotation 을 이용하자. strings.xml 에 태그를 사용하면 된다. custom key, value pair 를 xml 에 정의하고, annotation tag 를 사용할 수 있다. string resource 를 SpannedString 로 얻어.. 2021. 1. 27. 반응형 이전 1 다음