package Ġcom . jp vent ura . github . core . ui Ċ Ċ import Ġandroidx . annotation . Drawable Res Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġandroidx . recyclerview . widget . Divider Item Decoration Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ Ċ fun ĠRecyclerView . set Divider (@ Drawable Res Ġdrawable Res : ĠInt ) Ġ{ ĊĠĠĠ Ġval Ġdivider Ġ= ĠDiv ider Item Decoration ( this . context , ĠDiv ider Item Decoration . VERTICAL ) ĊĠĠĠ Ġval Ġdrawable Ġ= ĠContext Compat . get Drawable ( this . context , Ġdrawable Res ) ĊĠĠĠ Ġdrawable ?. let Ġ{ ĊĠĠĠĠĠĠĠ Ġdivider . set Drawable ( it ) ĊĠĠĠĠĠĠĠ Ġadd Item Decoration ( divider ) ĊĠĠĠ Ġ} Ċ } Ċ