Put text in random places within an edittext?

U

unba1300

Guest
I wonder how I'd do this: Use a loop to show random words in a large edit text in random positions. I already know how to use lists and get random words from them, but how to create a kind of animation displaying the words in different places within the edit text? Thanks.
 
U

unba1300

Guest
No, I guess not. I could use some other container for the text and make the edittext visible after the animation. But still, I don't know how to position the cursor in random positions before writing some text.
 
Upvote 0

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
No, I guess not. I could use some other container for the text and make the edittext visible after the animation. But still, I don't know how to position the cursor in random positions before writing some text.

I'm not necessarily recommending the following, but if you can't find any other way, you could consider this as a last resort:

Use a separate label for each character of the text, then it is easy to position the cursor where you want it. As an example, see my sample custom keyboard code.
 
Upvote 0
Top