Relative Content

Tag Archive for androidxmlkotlincanvas

How to Create a Custom View with a Linear Gradient Border in Android? (CANVA)

I am trying to create a custom view in Android that has a linear gradient border with rounded corners, similar to the one shown in this image: [![enter image description here][1]][1] [1]: https://i.sstatic.net/z1jKI6O5.png I’ve written the following custom view class in Kotlin, but I am having trouble getting the gradient border to appear correctly. Here […]