public void printStarterservices(View view) {
((TextView) findViewById(R.id.smartliving_text))
.setText("• Personal Care Services" + "• HouseHold Task" +
"• Shopping Tasks" + "• Rehabilitation" +
"• Smart Living" + "• Respite & Befriending Care" +
"• Walking or Sleep overnight" + "• Cleaning" +
"• Bed making and more");
}
答案 0 :(得分:0)
最简单的方法是在您的商品之间添加\n
换行符。
// ...
"• Personal Care Services" + "\n\n" +
"• HouseHold Task"
这将解决每个项目的新行。
替代方案是
<ul>
和<li>
与Html.fromHtml()
格式化TextView