public class UserIcons extends Object
Constructor and Description |
---|
UserIcons() |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
convertToBitmap(Drawable icon)
Converts a given drawable to a bitmap.
|
static Drawable |
getDefaultUserIcon(int userId,
boolean light)
Returns a default user icon for the given user.
|
public static Bitmap convertToBitmap(Drawable icon)
public static Drawable getDefaultUserIcon(int userId, boolean light)
UserHandle.USER_NULL
.userId
- the user id or UserHandle.USER_NULL
for a non-user specific iconlight
- whether we want a light icon (suitable for a dark background)