i am kind of starting coding in android studio. I am trying to get my TextView to be displayed in the app like the below example:
1 2 3 4 5 . . .
Is it possible to change the TextView itself withing the Java xml text Activity or must there be a code written in the mainactivity?
If any of the named above, could you please reach out for me the code for that with a simple and short explanation of what is happening and why is it needed?
Thanks a lot in advance guys!
Have a nice day! Regards
If you include in the text \n
after every char you get what you want:
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1\n2\n3\n4\n5\n.\n.\n."