Linked Questions
10 questions linked to/from How do I add a newline to a TextView in Android?
3
votes
1answer
2k views
How can I add a line break to a TextView? [duplicate]
Possible Duplicate:
How do I add a newline to a TextView in Android?
I would like to manually add a line break to my TextView. Now sure how I can do this.
0
votes
0answers
986 views
LIne Break in TextView [duplicate]
Possible Duplicate:
How do I add a newline to a TextView in Android?
I want to put line break in TextView in Android.
I have used \n but it is not working.
1
vote
2answers
194 views
splitting one String so that the text is under eachother [duplicate]
i have a string that will get picked up by an intentExtra in my next class and be set as the text for a multiline TextView. i was wodnering if there is a way to split the text up so they are under ...
4
votes
4answers
18k views
New line (\n) not Supporting in android?
I am trying to split the single string in to two lines using \n in android but it shows as it is with \n too. I am expecting below,
String new = "Hi, How are you";
In EditText box I need,
Hi,
How ...
-1
votes
1answer
689 views
How to break line(XML code) in android studio?
How to show the text in emulator as we need it using text view?
I am writing a code inside android:text element in textview.I want that the code must be shown exactly like how i want it to be means i ...
1
vote
4answers
79 views
Textview not getting displayed as desired from strings.xml
I had to display some code in my textview with syntax highlighting. So i am testing if the syntax hhighligting works or not
I added some test code to my strings.xml and tried to display it in ...
0
votes
3answers
249 views
show textview in next line
TextView textView =(TextView)findViewById(R.id.text);
for(int i=1;i<6;i++)
{
textView.setText(i);
textView.setText("\n");
}
This is not printing
1
2
3
4
5
Please help me how to print ...
1
vote
3answers
69 views
Newline for button in XML not respected but it does with Java code
I have a button with a long text that I would like to spread over two lines to the width of the button is the same size as the others.
The issue is that when I do this via the XML code, the newline ...
1
vote
1answer
68 views
Print the next line from SQLite
My problem:
In my application I read the address details from a SQLite database & display the result in a textview.
My sqlite sample address - 41 South Station Road,'\n' Colchester, '\n' CO1 1RQ
...
-2
votes
1answer
32 views
textview in preview is ok but after build apk text are misaligned in Android Studio
textview in preview is ok but after build apk text are misaligned in Android Studio. plz help me for this thanks in advance.