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 | 31 |
Tags
- LazyInitialization
- 클래스다이어그램
- scaletype
- 구조패턴
- 유스케이스다이어그램
- ArchitecturePatterns
- SDLC
- SharedFlow
- stateflow
- 전역상태관리
- SoftwareArchitecture
- 아키텍쳐패턴
- threadsafety
- RxJava
- LayeredArchitecture
- 이미지짤림
- SystemDesign
- 싱글톤패턴
- 이미지찌그러짐
- NetworkCommunication
- DistributedSystems
- android
- 옵서버
- ClientServerArchitecture
- 행위패턴
- Kotlin
- ImageView
- 시퀀스다이어그램
- decoding
- MVVM
Archives
- Today
- Total
목록ImageView (1)
Kyung_Development
android ImageView 이미지 scaleType
ImageView 에 이미지를 설정하다보면 간혹 짤리거나 찌그러지는 경우가 있는데scaleType을 설정해두면 해결되는 심플한 문제입니다. scaleType center이미지 원본 크기 유지, 중앙 배치.centerCrop이미지 중앙 기준, 뷰를 채우며 잘림 발생.centerInside이미지가 뷰 내부에 맞게 축소/중앙 배치, 넘치면 축소.fitCenter뷰 내부에 맞게 축소/확대, 중앙 정렬.fitStart뷰 내부에 맞게 축소/확대, 상단 정렬.fitEnd뷰 내부에 맞게 축소/확대, 하단 정렬.fitXY뷰 크기에 강제로 맞춤, 비율 무시.matrix직접 변환 설정 필요 (커스텀). 예제
android/Layout
2024. 11. 25. 14:39