我试图得到一个通知,有一个像下面这个通知保证金:如何创建通知保证金
你怎么看通知的白不接触的边缘屏幕......这就是我的意思。
我尝试这样做:
BigTextStyle bigStyle = new NotificationCompat.BigTextStyle();
bigStyle.bigText(eventDescription);
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_event)
.setLargeIcon(BitmapFactory.decodeResource(
getResources(), R.drawable.notif_background))
.setContentTitle(eventTitle)
.setContentText(eventLocation)
.setContentIntent(viewPendingIntent)
.addAction(R.drawable.ic_map,
getString(R.string.map), mapPendingIntent)
.setStyle(bigStyle);
但产生的卡触摸屏幕的边缘。我怎样才能做到这一点?
参考http://stackoverflow.com/questions/18367631/change-notification-layout – sasikumar