android textview换行问题

想要每行只显示一个字串。但是出现了问题,汉字可以正常每行显示一个,但是数字的话如果是1,那么就显示两个了,其他的数字显示正常,详细的请看图
TextView tv1 = new TextView(mContext);
TextView tv2 = new TextView(mContext);
ImageView iv = new ImageView(mContext);
tv1.setTextSize(22);
tv2.setTextSize(22);
tv1.setWidth(30);
tv2.setWidth(30);
tv1.setGravity(Gravity.CENTER);
tv2.setGravity(Gravity.CENTER);
tv1.setPadding(5, 10, 5, 10);
tv2.setPadding(5, 10, 5, 10);
tv1.setTextColor(mContext.getResources()
.getColor(R.color.app_white));
tv2.setTextColor(mContext.getResources()
.getColor(R.color.app_white));
String start = mData.get(i).start;
if (start.length() > 9)
start = start.substring(0, 8) + "…";
String end = mData.get(i).end;
if (end.length() > 9)
end = end.substring(0, 8) + "…";
tv1.setText("\n" + start + "\n");
tv2.setText("\n" + end + "\n");
tv1.setBackgroundResource(R.drawable.tmc_bg);图片说明
tv2.setBackgroundResource(R.drawable.tmc_bg);

加判断吧,是连续俩个1时1面加个\n,不知道12或者13这种是不是也会连着显示。如果是,再加判断,,,

ndroid的TextView在显示文字的时候有个问题就是一行还没显示满就跳到下一行,原因是:

1) TextView在显示中文的时候 标点符号不能显示在一行的行首和行尾,如果一个标点符号刚好在一行的行尾,该标点符号就会连同前一个字符跳到下一行显示;

2)一个英文单词不能被显示在两行中( TextView在显示英文时,标点符号是可以放在行尾的,但英文单词也不能分开 );

......
答案就在这里:Android TextView换行问题
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

不必这么写代码,,有属性的, 我记得是textalign

我猜测应该是你数据的问题,你看下接口返回的数据吧