Skip to content

Instantly share code, notes, and snippets.

@SelvinPL
Last active August 3, 2017 05:29
Show Gist options
  • Save SelvinPL/e300ab5c34343988aa46 to your computer and use it in GitHub Desktop.
Save SelvinPL/e300ab5c34343988aa46 to your computer and use it in GitHub Desktop.
//use this builder instead NotificationCompat.BigPictureStyle (also use standard Notification not compat)
static class MyPictureBuilder extends Notification.BigPictureStyle{
@NonNull
@Override
protected RemoteViews getStandardView(int layoutId) {
RemoteViews ret = super.getStandardView(layoutId);
int id = Resources.getSystem().getIdentifier("text", "id", "android");
ret.setBoolean(id, "setSingleLine", false);
ret.setInt(id, "setLines", 4);
return ret;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment