public class QMUIViewOffsetHelper
extends java.lang.Object
View around using
View.offsetLeftAndRight(int) and
View.offsetTopAndBottom(int).
Also the setting of absolute offsets (similar to translationX/Y), rather than additive offsets.
| 构造器和说明 |
|---|
QMUIViewOffsetHelper(android.view.View view) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getLayoutLeft() |
int |
getLayoutTop() |
int |
getLeftAndRightOffset() |
int |
getTopAndBottomOffset() |
void |
onViewLayout() |
boolean |
setLeftAndRightOffset(int offset)
Set the left and right offset for this
QMUIViewOffsetHelper's view. |
boolean |
setTopAndBottomOffset(int offset)
Set the top and bottom offset for this
QMUIViewOffsetHelper's view. |
public void onViewLayout()
public boolean setTopAndBottomOffset(int offset)
QMUIViewOffsetHelper's view.offset - the offset in px.public boolean setLeftAndRightOffset(int offset)
QMUIViewOffsetHelper's view.offset - the offset in px.public int getTopAndBottomOffset()
public int getLeftAndRightOffset()
public int getLayoutTop()
public int getLayoutLeft()