java.lang.Object | |
↳ | android.support.percent.PercentLayoutHelper.PercentLayoutInfo |
Container for information about percentage dimensions and margins. It acts as an extension
for LayoutParams
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bottomMarginPercent | |||||||||||
endMarginPercent | |||||||||||
heightPercent | |||||||||||
leftMarginPercent | |||||||||||
rightMarginPercent | |||||||||||
startMarginPercent | |||||||||||
topMarginPercent | |||||||||||
widthPercent |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fills
ViewGroup.LayoutParams dimensions based on percentage values.
| |||||||||||
Fills
ViewGroup.MarginLayoutParams dimensions and margins based on percentage
values.
| |||||||||||
Restores original dimensions after they were changed for percentage based values.
| |||||||||||
Restores original dimensions and margins after they were changed for percentage based
values.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Fills ViewGroup.LayoutParams
dimensions based on percentage values.
Fills ViewGroup.MarginLayoutParams
dimensions and margins based on percentage
values.
Restores original dimensions after they were changed for percentage based values. Calling
this method only makes sense if you previously called
fillLayoutParams(ViewGroup.LayoutParams, int, int)
.
Restores original dimensions and margins after they were changed for percentage based
values. Calling this method only makes sense if you previously called
fillMarginLayoutParams(ViewGroup.MarginLayoutParams, int, int)
.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.