I want to show notification with big picture(BigPictureStyle) and big text(BigTextStyle). How can I do it?
Setstyle only allows either BigPictureStyle or BigTextStyle. If you need a non-standard notification style, you may have to use a custom notification layout.
See Change Notification Layout and How to make an image fit a custom 256dp Big Picture Notification in Android? on using a custom notification layout. For multi-line long text use android:inputType="textMultiLine"
for the TextView. The latter answer contains an example of custom big picture.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.