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