Scandit.Margins Class Reference

Public Member Functions

 Margins (int left, int top, int right, int bottom)
 
 Margins (String left, String top, String right, String bottom)
 

Detailed Description

Margins for a view.

Since
4.11.0

Constructor & Destructor Documentation

Margins ( int  left,
int  top,
int  right,
int  bottom 
)
Parameters
leftThe left margin.
topThe top margin.
rightThe top margin.
bottomThe bottom margin.
Margins ( String  left,
String  top,
String  right,
String  bottom 
)

Construct a new margins object by passing the margins as strings.

You may specify the margins in percent by adding a '%' at the end of the string. When expressing the margins in percent, the margin is set to the desired percentage of the screen width or height.

Parameters
leftThe left margin.
topThe top margin.
rightThe top margin.
bottomThe bottom margin.