https://kotlinlang.org logo
#compose
Title
# compose
r

Rafs

11/16/2020, 6:33 PM
Is there anyway to Stroke and Fill a path at the same time using jetpack compose. from the source codes I can only see
Fill
and
Stroke
but i need something like
StrokeAndFill
a

Andrey Kulikov

11/16/2020, 8:48 PM
@Nader Jawad
in the meantime you can first draw with Fill and then with Stroke to achieve it
n

Nader Jawad

11/16/2020, 8:49 PM
Yes this currently requires 2 draw calls. There is a ticker filed internally to add fill and stroke capabilities
The other alternative is to use
drawIntoCanvas
and manage your own
Paint
object to draw with the provided canvas
r

Rafs

11/19/2020, 9:53 AM
Thank you
2 Views