Created
March 23, 2022 04:42
-
-
Save adisiji/ec1070d4df8437d838a6f6fab880f3e6 to your computer and use it in GitHub Desktop.
Initial Showcase View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import android.graphics.* | |
import android.util.AttributeSet | |
import android.view.View | |
import com.neobyte.tutorialscreen.R | |
class ShowcaseView @JvmOverloads constructor( | |
context: Context, | |
attrs: AttributeSet? = null, | |
defStyle: Int = 0 | |
) : View(context, attrs, defStyle) { | |
private val semiGrey = Color.parseColor("#802E2E2E") | |
override fun onDraw(canvas: Canvas) { | |
super.onDraw(canvas) | |
canvas.run { | |
drawColor(semiGrey) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment