Skip to content

Instantly share code, notes, and snippets.

@2hamed
Created January 1, 2019 11:43
Show Gist options
  • Select an option

  • Save 2hamed/103cd73b7ca7c7d5fb4ed98fefc79d1e to your computer and use it in GitHub Desktop.

Select an option

Save 2hamed/103cd73b7ca7c7d5fb4ed98fefc79d1e to your computer and use it in GitHub Desktop.
private val radiusDiff = dpToPx(10).toFloat()
private val innerPaint = Paint().apply {
color = Color.WHITE
isAntiAlias = true
}
private val outerPaint = Paint().apply {
color = Color.parseColor("#99FFFFFF")
strokeWidth = radiusDiff.toFloat()
style = Paint.Style.FILL
isAntiAlias = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment