티스토리 뷰
728x90
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 의 왼쪽, 오른쪽, 위, 아래 padding 을 설정한다.
◼ scleType
ImageView 안에 image 의 크기를 확대, 축소 하거나 이동시킬 수 있는 속성이다.
상세한 사항은 하단 link 를 참조하자.
[Android/UI] - ImageView scaleType
728x90
'Android > UI' 카테고리의 다른 글
| DatePicker (0) | 2019.08.12 |
|---|---|
| ImageView scaleType (0) | 2019.08.07 |
| ImageButton (0) | 2019.08.05 |
| Button (0) | 2019.07.26 |
| RadioButton & RadioGroup (0) | 2019.07.22 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 무료 채굴
- RoomDatabase
- 앱테크
- task
- 안드로이드 인텐트
- Android Service
- 무료채굴
- bindservice
- onContextItemSelected
- StartService
- task 생성
- 안드로이드 서비스
- 리워드 어플
- 앱테크 추천
- registerForContextMenu
- mPANDO
- Intent
- p2e
- android task
- M2E
- StringUtils
- 채굴앱
- WEMIX
- notifyDataSetChanged
- android intent
- onCreateContextMenu
- BroadcastReceiver
- android activity flag
- 리워드앱
- android flag activity
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
250x250

