public class ViewOffsetHelper extends Object
| 构造器和说明 |
|---|
ViewOffsetHelper(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
ViewOffsetHelper's view. |
boolean |
setTopAndBottomOffset(int offset)
Set the top and bottom offset for this
ViewOffsetHelper's view. |
public void onViewLayout()
public boolean setTopAndBottomOffset(int offset)
ViewOffsetHelper's view.offset - the offset in px.public boolean setLeftAndRightOffset(int offset)
ViewOffsetHelper's view.offset - the offset in px.public int getTopAndBottomOffset()
public int getLeftAndRightOffset()
public int getLayoutTop()
public int getLayoutLeft()