I am trying to draw elliptical gradients as well as radial ones. What would be the best approach to implement something like this?
The
RadialGradient
allows only one radius in the definition.
n
Nader Jawad
06/21/2021, 6:12 PM
Do you have a mock of what you are trying to build?
We added support for 2 focal point radial gradients in Android 12. If you would like to leverage this in compose you can create a
I want to create the following type of gradient so that I can place text in the lower right corner over the background graphic.
Maik
06/22/2021, 11:47 AM
The Android version is 9 (Pie).
n
Nader Jawad
06/22/2021, 6:29 PM
So we currently don't have support for matrix transformations of shaders in compose, however you can create an android.graphics.RadialGradient with a horizontal scale applied to a matrix passed to