mzlogin / android-ui-demos

Android UI develop practices / Custom Views
MIT License
6 stars 0 forks source link

How to create a notification with default height more than 64dp? #1

Open mzlogin opened 8 years ago

mzlogin commented 8 years ago

I have tried send notification with custom layout, and set notification.bigContentView,

        Notification notification = builder.build();

        if (android.os.Build.VERSION.SDK_INT >= 16) {
            notification = builder.build();
            notification.bigContentView = contentViews;
        }
        notification.contentView = contentViews;

but in Nexus 5 with AOSP 6.0.1 inside, this notification is showing default 64dp and cannot extend height.

In Xiaomi 2S and Xiaomi 5, it is showing default 64dp height but can extend to 256dp with two finger touch gesture.