am b9674640: Merge "Enforce encapsulation for MarginLayoutParams startMargin and endMargin" into jb-mr1-dev
* commit 'b967464049d7a75face9237a89903342c4724f8a': Enforce encapsulation for MarginLayoutParams startMargin and endMargin
This commit is contained in:
@@ -25551,12 +25551,12 @@ package android.view {
|
|||||||
method protected boolean isLayoutRtl();
|
method protected boolean isLayoutRtl();
|
||||||
method public boolean isMarginRelative();
|
method public boolean isMarginRelative();
|
||||||
method public void setLayoutDirection(int);
|
method public void setLayoutDirection(int);
|
||||||
|
method public void setMarginEnd(int);
|
||||||
|
method public void setMarginStart(int);
|
||||||
method public void setMargins(int, int, int, int);
|
method public void setMargins(int, int, int, int);
|
||||||
field public int bottomMargin;
|
field public int bottomMargin;
|
||||||
field public int endMargin;
|
|
||||||
field public int leftMargin;
|
field public int leftMargin;
|
||||||
field public int rightMargin;
|
field public int rightMargin;
|
||||||
field public int startMargin;
|
|
||||||
field public int topMargin;
|
field public int topMargin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5568,7 +5568,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* to this field.
|
* to this field.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(category = "layout")
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int startMargin = DEFAULT_RELATIVE;
|
private int startMargin = DEFAULT_RELATIVE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The end margin in pixels of the child.
|
* The end margin in pixels of the child.
|
||||||
@@ -5576,7 +5576,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* to this field.
|
* to this field.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(category = "layout")
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int endMargin = DEFAULT_RELATIVE;
|
private int endMargin = DEFAULT_RELATIVE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default start and end margin.
|
* The default start and end margin.
|
||||||
@@ -5723,6 +5723,17 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
initialRightMargin = 0;
|
initialRightMargin = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the relative start margin.
|
||||||
|
*
|
||||||
|
* @param start the start marging size
|
||||||
|
*
|
||||||
|
* @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginStart
|
||||||
|
*/
|
||||||
|
public void setMarginStart(int start) {
|
||||||
|
startMargin = start;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the start margin in pixels.
|
* Returns the start margin in pixels.
|
||||||
*
|
*
|
||||||
@@ -5741,6 +5752,17 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the relative end margin.
|
||||||
|
*
|
||||||
|
* @param end the end marging size
|
||||||
|
*
|
||||||
|
* @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginEnd
|
||||||
|
*/
|
||||||
|
public void setMarginEnd(int end) {
|
||||||
|
endMargin = end;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the end margin in pixels.
|
* Returns the end margin in pixels.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user