StavFX
07/24/2023, 5:35 PMSurface
(actually <http://androidx.tv|androidx.tv>.material3.Surface
but should be the same i think) with a custom bg, either from xml resources, or a ShaderBrush.
The problem is that it only takes a list of Colors for the different states (focused, pressed etc).
Setting Modifier.paint(painterResource)) doesn't scale up with the Surface's scale indication. Do I have to implement my Layout, or is there an easier way to achieve this?StavFX
07/24/2023, 5:39 PMStylianos Gakis
07/24/2023, 5:41 PMStavFX
07/24/2023, 5:43 PMModfiier.indication(..., ScaleIndication)
Stylianos Gakis
07/24/2023, 5:46 PMdrawWithCache
instead. Does painter do what you expect it to do after all? Was I wrong in my question before about it not painting the background?StavFX
07/24/2023, 5:50 PMModifier.paint
javadoc, seems like you are right:
Paint the content using painter.
But it works as I expected... 🤔