e jay
e jay

Reputation: 217

Android notification text length on API<16

Is it possible to get the maximum number of message's characters in the notification bar on API less than 16 (where message is shown on the single line)?

Upvotes: 2

Views: 2918

Answers (2)

Sahil Mahajan Mj
Sahil Mahajan Mj

Reputation: 11141

Increase android notification text length on API<16 ?

The straight answer is NO. because Android system has its own standards and due to some limits, it wont allow the notifications to be too big. However it depends on the device also. The notification size might vary according to the device screen size.

For your information, JellyBean has provided with a feature something like this, Expandable Notifications. The official Doc says,

With Jelly Bean you have the option to provide more event detail. You can use this to show the first few lines of a message or show a larger image preview. This provides the user with additional context, and - in some cases - may allow the user to read a message in its entirety. The user can pinch-zoom or two-finger glide in order to toggle between base and expanded layouts. For single event notifications, Android provides two expanded layout templates (text and image) for you to re-use in your application.

Upvotes: 0

murielK
murielK

Reputation: 1020

Dude the notification length will depend on the screen size for that circumstance, so bigger the screen more text will be shown otherwise the rest will appear as "..."

Upvotes: 3

Related Questions