Visit our large screen gallery for design and UX guidance for creativity and productivity apps.
You can use motion events to detect whether the input type is a stylus. The MotionEvent object contains data on the tool type used, like a finger, stylus, or eraser.
Use information about the pressure and tilt of the stylus to render the stroke from the MotionEvent.
Avoid stray marks when the user accidentally touches the screen while drawing or writing with a stylus.
Recognize handwritten text and classify gestures on a digital surface with ML Kit Digital Ink Recognition.
Help users easily identify where the focus is on the screen for precise input. For example, add a focus indicator like a thicker border when a user hovers over it.
While hovering, update the cursor to show a preview of the brush type or current action.
Drag and drop images, text, and other content so users can quickly share from your app to another app.