티스토리 뷰
728x90
이번 포스팅에서는 GridView 에 image + text 를 출력하는 방법에 대해 알아보자.

Adapter
Data(text) 를 GridView 에 표현하기 위해서는 Adapter 가 필요하다.
Adapter 는 데이터와 화면에 출력될 view 를 연결해 주는 역할을 한다.
Adapter 관련 상세 설명은 이전 ListView 포스팅을 참조하기 바란다.
[Android/UI] - ListView (2) - ListView 에 text 출력하기
[Android/UI] - ListView (3) - ListView 에 image 추가하기
ViewHolder
ViewHolder 는 각 layout 객체에 존재하는 view 를 보관하는 holder 객체다.
ViewHolder 관련 상세 설명은 이전 ListView 포스팅을 참조하기 바란다.
[Android/UI] - ListView (3) - ListView 에 image 추가하기
Source code
https://github.com/parkho79/GridView_1
728x90
'Android > UI' 카테고리의 다른 글
| GridView (4) - GridView item click 시 context menu 출력하기 (0) | 2021.02.15 |
|---|---|
| GridView (3) - GridView item 의 click 처리하기 (0) | 2021.02.09 |
| GridView (1) (0) | 2021.01.07 |
| ListView (8) - ListView 에 header, footer 달기 (0) | 2021.01.07 |
| ListView (7) - ListView item 추가, 수정, 삭제 (0) | 2020.12.24 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 무료 채굴
- onContextItemSelected
- M2E
- notifyDataSetChanged
- 채굴앱
- android task
- 안드로이드 인텐트
- android flag activity
- 앱테크 추천
- Android Service
- 무료채굴
- registerForContextMenu
- StringUtils
- bindservice
- p2e
- StartService
- android activity flag
- WEMIX
- 앱테크
- RoomDatabase
- BroadcastReceiver
- Intent
- task 생성
- 리워드 어플
- android intent
- task
- 안드로이드 서비스
- mPANDO
- 리워드앱
- onCreateContextMenu
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
