I am using big-contentview for notification message using remoteViews. That big content view shows good in nexus 7 but in Samsung 10" tablet showing like collapsed layout. And other application like Google play music shows only collapsed notification only.
I tested with SM-T520 (10" tablet)
1) Wther no support for bigcontentview in tablet/samsung.
2) Or how to handle to show a collapsed notification in such a condition.
1st Pic : This is the samsung tablet screen, that bigcontentview not fully visible.
2nd Pic : Expected Output.
layout-v16 I had expand layout.
layout-v11 I had collapsed layout.
Code (Java) :
mNotificationTemplate = new RemoteViews(mContext.getPackageName(),
R.layout.notification_download_latest);
if (NotificationHelper.hasHoneycomb()) { // Notification Builder
mNotification = new NotificationCompat.Builder(mContext)
.setSmallIcon(R.drawable.ic_launcher)
.setContentIntent(getPendingIntent(mContext, url))
.setPriority(Notification.PRIORITY_DEFAULT)
.setOngoing(true).setContent(mNotificationTemplate).build();
if (NotificationHelper.hasJellyBean()) {
// Expanded notifiction style
// mExpandedView = new RemoteViews(context.getPackageName(), //
// R.layout.notification_download_latest);
**mNotification.bigContentView = mNotificationTemplate;**
mNotificationTemplate.setOnClickPendingIntent(
R.id.notification_cancelBtn,
getPendingIntent(mContext, url));