我看到一个奇怪的问题。我的通知内容上的自定义布局在通知滚动中不完全可见。我想知道为什么。
注意最后一个通知布局,2个按钮部分可见。
相关代码
RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.pickupnotification);
contentView.setTextViewText(R.id.title, "Siddharth" + "2km -> 20km");
contentView.setTextViewText(R.id.countDown, "-1:29");
contentView.setTextViewText(R.id.from,
"FROM 2:00pm 14th Jan 2013, Some Address");
contentView.setTextViewText(R.id.to,
"TO4:00pm 14th Jan 2013 Some address");
Notification noti = new NotificationCompat.Builder(this).setContent(contentView)
...
notification.contentView = contentView ;
我使用RelativeLayout作为root的布局。