티스토리 뷰
728x90
ImageButton 은 일반 Button 에 custom image 를 보여주기 위해 사용한다.
Image 는 xml 의 "src" 속성이나 code 상의 "setImageResource()" method 를 사용해 설정할 수 있다.
How to
◼ ImageButton code in XML
◼ ImageButton code in JAVA
Attributes
◼ id
id 는 해당 ImageButton 을 유일하게 식별할 수 있는 속성이다.
◼ src
ImageButton 에 표시할 image 를 설정한다.
◼ background
ImageButton 의 배경색을 설정한다.
- color 값이나 drawable 을 설정할 수 있다.
◼ padding
ImageButton 의 왼쪽, 오른쪽, 위, 아래 padding 을 설정한다.
728x90
'Android > UI' 카테고리의 다른 글
ImageView scaleType (0) | 2019.08.07 |
---|---|
ImageView (0) | 2019.08.06 |
Button (0) | 2019.07.26 |
RadioButton & RadioGroup (0) | 2019.07.22 |
CheckBox (0) | 2019.07.18 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 앱테크 추천
- Android Service
- registerForContextMenu
- android intent
- 리워드 어플
- android task
- 리워드앱
- 무료채굴
- onCreateContextMenu
- task 생성
- 앱테크
- 안드로이드 인텐트
- 안드로이드 서비스
- StringUtils
- 무료 채굴
- 채굴앱
- BroadcastReceiver
- RoomDatabase
- task
- mPANDO
- android flag activity
- WEMIX
- Intent
- StartService
- onContextItemSelected
- notifyDataSetChanged
- p2e
- bindservice
- android activity flag
- M2E
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함