private fun RecyclerView.customItemDecoration() {
val decoration = DividerItemDecoration(context, RecyclerView.VERTICAL)
val drawable = ContextCompat.getDrawable(context, R.drawable.background_f0f2f5_height_1)
decoration.setDrawable(requireNotNull(drawable))
addItemDecoration(decoration)
}
Kotlin
복사
•
지역검색/장소검색