Reputation: 7028
I have an address column on MySql Database like below.
This table data is fetching by Mobile Application. I would like to apply line break on address column data for Mobile application. How can I store data in Address column so that it will look like below in Mobile Application ?
2nd floor,
Stock Exchange Building,
9/F Motijheel C/A
Dhaka-1000
Upvotes: 1
Views: 138
Reputation: 1373
You can store the data for address in HTML content string-
you can use <br>
tag for this and tell to Android developer to load address string as HTML content. It will solve the problem.
Reference for Android developer- How to display HTML in TextView?
OR
we can use \n for break line in Android,so you can store address in below format, It may work.
"2nd floor, \n Stock Exchange Building, \n 9/F Motijheel C/A \n Dhaka-1000"
Upvotes: 1