Android: how to give bulletpoints, line break to text in textview

Thank you all...i finally ended up doing this

String nodata="hi how are you<br/>&#8226;welcome to stackoverflow"
TextView nodata= ((TextView) findViewById(R.id.nodata));
nodata.setText(Html.fromHtml(nodatafound)); 

and for justify left i did change in my layout file android:layout_gravity=center|left

i hope there is a betterway doing this.


You forgot the colon after &#8226;

So change it to this:

String nodata="hi how are you<br/>&#8226;welcome to stackoverflow"
TextView nodata= ((TextView) findViewById(R.id.nodata));
nodata.setText(Html.fromHtml(nodatafound)); 

place this code in strings.xml

hi how are you \n

•  welcome to stackoverflow

set this text to your textview