Stylus usage in text fields is supported. Tapping on a text field moves the text cursor to the tapped point. Blocks of text can be selected by moving the stylus while holding it down against the screen (horizontal dragging). Horizontal dragging can be continued with vertical movement to move content upwards and downwards.
The API to use for providing text editing functionality is the Editors API. For implementation information, see Using the Editors API.