티스토리 뷰
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 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 앱테크 추천
- onCreateContextMenu
- Intent
- android task
- WEMIX
- task
- 무료채굴
- 안드로이드 서비스
- StartService
- BroadcastReceiver
- android intent
- mPANDO
- onContextItemSelected
- M2E
- android activity flag
- task 생성
- registerForContextMenu
- 앱테크
- p2e
- android flag activity
- StringUtils
- RoomDatabase
- 채굴앱
- bindservice
- notifyDataSetChanged
- 리워드앱
- 무료 채굴
- Android Service
- 리워드 어플
- 안드로이드 인텐트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함