Android RecyclerView Get Resources

September 26, 2019
class LocalAdapter() : RecyclerView.Adapter<LocalAdapter.ViewHolder>() {

    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
        val resources = holder.itemView.resources
        val padding = resources.getDimension(R.dimen.margin16)
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.