Last active
August 3, 2017 05:29
-
-
Save SelvinPL/e300ab5c34343988aa46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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