• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Dynamically inserting text into textview on cursor location?

Hiya,

I'm trying to figure out how to insert preset text (via menu) into a textview textbox where the cursor is currently located.

In an ideal world if I intended to insert preset text to the very end of the textview content, I would just use the theory of textview.value + "preset text". But this is not what I require.

I would like to be able to click an area of the textview content and insert preset text between the start and end of the textbox, so where I place the cursor.

Anybody that can help me would be an absolute star!!!

Thanks in advance! :)
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones