Skip to content

Instantly share code, notes, and snippets.

View viroth-ty's full-sized avatar
⏲️

viroth viroth-ty

⏲️
  • Vattanac Bank Cambodia
  • Phnom Penh
  • 06:00 (UTC +07:00)
View GitHub Profile
@ed-george
ed-george / Ext.kt
Last active October 15, 2021 07:02
A RecyclerView that can display a 'masked' selection
package com.himumsaiddad.example.util
import android.content.res.Resources
val Int.dp: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt()