5
The title of the question is to understand that it is simple I ask silly ,but I would not like to know how to replace the space of a EditText
by something else ,as in the image below:
In the case of the image the spaces are replaced by gray dots that are before the declarations of the Javascript variables. If copy one of the balls and paste into another EditText
,that is not the one of the editor ,the ball becomes a space.
Replace where? In Android Studio editor?
– ramaral
No ,I’m making a code editor, in it I want to make the replacement.
– AndronCreation
Use the method addTextChangedListener . So you can change the text after changes to it.
– Valdeir Psr
Not that way ,in the image editor ,if you copy a ball of those and go in another editor the copied ball becomes a space.
– AndronCreation
Put the problem-relevant code in the question. How is it to save/show what code appears in the editor?
– Isac
The focus of the question has nothing to do with the code of the image and yes we spaces that in this specific application are balls ,but if copy one of the balls and paste in another application the ball becomes a space.
– AndronCreation
So what is specifically your question ? How to transform a space of a
String
on a ball ? Any character replacement can be done withreplace
. I haven’t been to see but it certainly has Unicode characters that resemble balls– Isac
I think I have the answer to the question ,I’m not sure but I think it may be the source of the image editor.
– AndronCreation
These "balls" do not actually exist, they are only space, the editor displays so to make it easier to read, so when copying, only spaces come
– Denis Rudnei de Souza
Is a configuration of the editor
– Denis Rudnei de Souza
This is an Android application not Pc. And I know that the balls do not exist if I did not know would not have come to the conclusion that are spaces.
– AndronCreation
I think I get it, you want it to appear like that in the editor, and when copying, don’t go like
.
but spaces. That’s it?– Denis Rudnei de Souza
Yes ,the Android application that has this function is called Es File Explorer in Note Editor ,in this editor the tab is also changed but instead a ball is a bar.
– AndronCreation