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 |
Tags
- 스피너
- getChangePayload
- ktor client
- android ktor
- 유튜브
- build with ai
- list map
- AWS EC2
- kotlin list
- video caching
- DiffUtil.ItemCallback
- doc2vec
- ExoPlayer
- android custom view
- android exoplayer
- exoplayer cache
- 안드로이드
- Zsh
- ListAdapter
- 유튜브 요약
- ChatGPT
- android
- FastAPI
- map
- llm
- kotlin collection
- ktor api call
- 시행착오
- ListAdapter DiffUtil
- Python
Archives
- Today
- Total
목록android textview ellipsize (1)
버튼 수집상
[안드로이드] TextView 원하는 글자만 남기고 말줄임표 보여주기 Custom Ellipsis
배경 텍스트가 길어졌을 때 말줄임표와 함께 & more가 노출되게 해달라는 요구사항이 있었다. brand1, brand2, brand3, brand4 ❌ brand1, brand2, b… ✅ brand1, br… & more TextView의 텍스트 길이가 화면 너비를 넘어갈 때 처리를 위해 ellipsize 옵션이 제공된다. ellipsize 예시 "aaabbbcccddd" none aaabbbccc start …bcccddd middle aaa…cddd end aaabbbc… marquee 오른쪽에서 왼쪽으로 흐르는 효과 단, 아래 조건 필요 textView.isSelected = true textView.isSingleLine=true (singleLine대신 maxLines=1로 잡는 건 안 됨..
TIL - 안드로이드
2023. 12. 7. 15:17