我試圖得到一個通知,有一個像下面這個通知保證金:如何創建通知保證金
你怎麼看通知的白不接觸的邊緣屏幕......這就是我的意思。
我嘗試這樣做:
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