ContentView通知?

时间:2011-06-03 11:51:24

标签: android view notifications

  

可能重复:
  TextView doesn't display all the text

嗨!如何设置我的通知的内容视图以查看我放入的所有文本?我有这段代码:

RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.proba);
contentView.setImageViewResource(R.id.image, R.drawable.icon);
contentView.setTextViewText(R.id.notif1,"Today,you must go for shopping for your list '" + list + "'. "+ "Don't forget!!!"+"\n"+"You must buy "+s);
notification.contentView = contentView;

其中s是StringBuilder,我只看到文本的一部分。我该怎么办?请帮忙

0 个答案:

没有答案