이번 포스팅에서는 안드로이드 앱 개발 시 많이 사용하는 ImageView 에 다양한 크기의 image 를 보여주는 방법에 대해 소개한다. ImageView 에 대한 상세 사항은 하단 link 를 참조하자. [Android/UI] - ImageView scaleType ImageView 안에 image 의 크기를 확대, 축소 하거나 이동시킬 수 있는 속성이다. 기본값은 "fitCenter" 이다. 하단은 scaleType 에 사용된 원본 image 이다.(572x640) ◼ center 원본 image 그대로 ImageView 의 중앙에 위치한다. ◼ centerCrop ImageView 의 가로 or 세로 크기 중 큰쪽에 맞게 이미지를 확대 or 축소 후 남는 부분은 crop(자름) ◼ centerIns..
ImageView 는 image file 을 보여주기 위해 사용한다. Image file 을 다양한 Android 단말의 화면 크기에 맞추기 위해서는 scaleType 을 잘 알아야 한다. [Android/UI] - ImageView scaleType How to ◼ ImageView code in XML ◼ ImageView code in JAVA Attributes ◼ id id 는 해당 ImageView 을 유일하게 식별할 수 있는 속성이다. ◼ src ImageView 에 표시할 image 를 설정한다. ◼ background ImageView 의 배경색을 설정한다. - color 값이나 drawable 을 설정할 수 있다. ◼ padding ImageView 의 왼쪽, 오른쪽, 위, 아래 pad..
- Total
- Today
- Yesterday
- 리워드앱
- registerForContextMenu
- Android Service
- 앱테크 추천
- RoomDatabase
- p2e
- android task
- task 생성
- android intent
- BroadcastReceiver
- 안드로이드 인텐트
- StartService
- StringUtils
- WEMIX
- Intent
- android flag activity
- M2E
- onCreateContextMenu
- 무료 채굴
- task
- 채굴앱
- 안드로이드 서비스
- 앱테크
- 리워드 어플
- onContextItemSelected
- bindservice
- mPANDO
- notifyDataSetChanged
- android activity flag
- 무료채굴
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |