Methods Summary |
---|
public final void | addAction(Action action)Add an Action to the overview.
mActions.add(action);
|
public final void | addAction(int pos, Action action)Add an Action to the overview at the specified position.
mActions.add(pos, action);
|
public final java.util.List | getActions()Gets a read-only view of the list of Actions of this details overview.
return Collections.unmodifiableList(mActions);
|
public final android.graphics.drawable.Drawable | getImageDrawable()Gets the image drawable of this details overview.
return mImageDrawable;
|
public final java.lang.Object | getItem()Gets the main item for the details page.
return mItem;
|
public boolean | isImageScaleUpAllowed()Returns true if the image may be scaled up; false otherwise.
return mImageScaleUpAllowed;
|
public final boolean | removeAction(Action action)Remove the given Action from the overview.
return mActions.remove(action);
|
public final void | setImageBitmap(android.content.Context context, android.graphics.Bitmap bm)Sets a Bitmap as the image of this details overview.
mImageDrawable = new BitmapDrawable(context.getResources(), bm);
|
public final void | setImageDrawable(android.graphics.drawable.Drawable drawable)Sets a drawable as the image of this details overview.
mImageDrawable = drawable;
|
public void | setImageScaleUpAllowed(boolean allowed)Allows or disallows scaling up of images.
Images will always be scaled down if necessary.
mImageScaleUpAllowed = allowed;
|
private void | verify()
if (mItem == null) {
throw new IllegalArgumentException("Object cannot be null");
}
|