Dimension

public class Dimension extends Object

This class was deprecated.
Use WalletFragmentStyle.Dimension instead.

Constants for specifying dimensions in WalletFragmentStyle.

Constant Summary

int MATCH_PARENT Special value for width/height of a view.
int UNIT_DIP Dimension unit - device independent pixels
int UNIT_IN Dimension unit - inches
int UNIT_MM Dimension unit - millimeters
int UNIT_PT Dimension unit - points
int UNIT_PX Dimension unit - raw pixels
int UNIT_SP Dimension unit - scaled pixel
int WRAP_CONTENT Special value for width/height of a view.

Inherited Method Summary

Constants

public static final int MATCH_PARENT

Special value for width/height of a view. It means that the view wants to be as big as its parent, minus the parent's padding, if any.

Constant Value: -1

public static final int UNIT_DIP

Dimension unit - device independent pixels

Constant Value: 1

public static final int UNIT_IN

Dimension unit - inches

Constant Value: 4

public static final int UNIT_MM

Dimension unit - millimeters

Constant Value: 5

public static final int UNIT_PT

Dimension unit - points

Constant Value: 3

public static final int UNIT_PX

Dimension unit - raw pixels

Constant Value: 0

public static final int UNIT_SP

Dimension unit - scaled pixel

Constant Value: 2

public static final int WRAP_CONTENT

Special value for width/height of a view. It means the view wants to be just large enough to fit its own internal content, taking its own padding into account.

Constant Value: -2