I am kinda a freak who wants to see things in nice order with everything on a new line.
Now I wanted to use break lines, (HTML
, JAVA \n) but these don't work and just get printed on your screen.
For example:
I want to make a Toast that shows the inserted username and password. I want both of these on a seperate line.
Using java Syntax Highlighting
- Toast.makeText( Login.this,
- "Username: " + username.getText() + " Password: " + password.getText(),
- Toast.LENGTH_LONG).show();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Simply adding \n doesn't work.. anyone knows how to add a break line in Android?
This also does not work in the setText of a TextView..





