[Android/Kotlin] RecyclerView에 Divider 구분선 넣기
참조: RecyclerView [3] Divider 구분선 넣기, 키위남 님 How can a divider line be added in an Android RecyclerView?, StackOverflow XML에 위와 같이 선언되어있을 때, onCreate에서 item_list에 접근할 수 있다. item_list.addItemDecoration(DividerItemDecoration(this, LinearLayoutManager.VERTICAL)) onCreate에서 DividerItemDecoration 객체를 새로 생성한다. 생성자의 파라메터로는 Context와, LinearLayoutManager.VERTICAL값을 넘겨준다. 리스트가 Vertical이 아니라 Horizontal인 경우, ..
2019.02.27