Is it possible to make a custom indication that ma...
# compose
a
Is it possible to make a custom indication that manipulates graphicsLayer?
l
Yeah I believe this should work. You would need your indication implementation to implement LayoutModifierNode and call placeWithLayer, look at the implementation of graphicsLayer for more information
a
Okay, that's what I was assuming, but I didn't want to necessarily reinvent the wheel if it wasn't needed. Thank you!
l
For simple transforms (such as scaling) you can just do this in a DrawModifierNode directly too
a
Yeah, I need to access compositing strategy in this case
This works well, thank you! I was way overthinking this 🙂
s
How does it look like in code btw, I am curious. Is it possible to share here what you did to make this work?
a
BasicPressNode.kt
Sure 🙂
l
Note with the current implementation if you do something like, focus an item, press on it, and then release the press, you will animate back to resting even though it is still focused
a
Good to know 🙂
I'll fix that up so it handles that condition a little nicer