public class ViewOffsetHelper
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.
android.support.design.widget.ViewOffsetHelper| Constructor and Description |
|---|
ViewOffsetHelper(android.view.View view) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLayoutLeft() |
int |
getLayoutTop() |
int |
getLeftAndRightOffset() |
int |
getTopAndBottomOffset() |
void |
onViewLayout() |
boolean |
setLeftAndRightOffset(int offset)
Set the left and right offset for this
android.support.design.widget.ViewOffsetHelper's view. |
boolean |
setTopAndBottomOffset(int offset)
Set the top and bottom offset for this
android.support.design.widget.ViewOffsetHelper's view. |
public void onViewLayout()
public boolean setTopAndBottomOffset(int offset)
android.support.design.widget.ViewOffsetHelper's view.offset - the offset in px.public boolean setLeftAndRightOffset(int offset)
android.support.design.widget.ViewOffsetHelper's view.offset - the offset in px.public int getTopAndBottomOffset()
public int getLeftAndRightOffset()
public int getLayoutTop()
public int getLayoutLeft()