-
Notifications
You must be signed in to change notification settings - Fork 377
BigImageCard
dexafree edited this page Jan 3, 2015
·
7 revisions
BigImageCard is a Card which shows a big image, a title inside the image, and a description below the image.
For title and description, you only need to call the setTitle(String title)
and setDescription(String description)
methods
Card card = new BigImageCard();
card.setTitle("Your title");
card.setDescription("Your description");
In order to set the image, you need to call the setBitmap()
method, and pass it one of the following:
- A
Bitmap
- A
Context
plus a resource id (such as R.drawable.my_image) - A
Drawable