Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- HTTP
- activity
- kotlin
- CollapsingToolbarLayout
- 백준
- LiveData
- ViewModel
- lifecycle
- 안드로이드
- onMeasure
- 알고리즘
- room
- recyclerview
- CoordinatorLayout
- AppBarLayout
- sqlite
- Behavior
- 코틀린
- Coroutine
- Algorithm
- DataBinding
- hilt
- Navigation
- 알림
- CustomView
- Android
- onLayout
- BOJ
- notification
- View
Archives
- Today
- Total
목록RecyclerView 구분선 (1)
개발일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bz9CvE/btqS9YIqEjU/xX4jwtvi3xutNufaw7kLw0/img.png)
ItemDecoration RecyclerView의 ViewHolder를 꾸미는 역할을 한다. ViewHolder간의 동일한 여백을 주거나, 구분선을 넣기, RecyclerView Background 이미지 주기 등 다양한 효과를 줄 수 있다. GridSpacingItemDecoration 여백을 주는 ItemDecoration이다. class GridSpacingItemDecoration(private val spanCount: Int, private val spacing: Int, private val includeEdge: Boolean = true) : RecyclerView.ItemDecoration() { override fun getItemOffsets(outRect: Rect, view: ..
Android (안드로이드)/RecyclerView
2021. 1. 10. 17:54