Loading api/17.txt +1 −1 Original line number Diff line number Diff line Loading @@ -25677,7 +25677,7 @@ package android.view { ctor public ViewGroup.LayoutParams(android.content.Context, android.util.AttributeSet); ctor public ViewGroup.LayoutParams(int, int); ctor public ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams); method public void onResolveLayoutDirection(int); method public void resolveLayoutDirection(int); method protected void setBaseAttributes(android.content.res.TypedArray, int, int); field public static final deprecated int FILL_PARENT = -1; // 0xffffffff field public static final int MATCH_PARENT = -1; // 0xffffffff api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -25703,7 +25703,7 @@ package android.view { ctor public ViewGroup.LayoutParams(android.content.Context, android.util.AttributeSet); ctor public ViewGroup.LayoutParams(int, int); ctor public ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams); method public void onResolveLayoutDirection(int); method public void resolveLayoutDirection(int); method protected void setBaseAttributes(android.content.res.TypedArray, int, int); field public static final deprecated int FILL_PARENT = -1; // 0xffffffff field public static final int MATCH_PARENT = -1; // 0xffffffff core/java/android/view/View.java +1 −1 Original line number Diff line number Diff line Loading @@ -10000,7 +10000,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ private void resolveLayoutParams() { if (mLayoutParams != null) { mLayoutParams.onResolveLayoutDirection(getLayoutDirection()); mLayoutParams.resolveLayoutDirection(getLayoutDirection()); } } Loading core/java/android/view/ViewGroup.java +2 −2 Original line number Diff line number Diff line Loading @@ -5633,7 +5633,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * {@link View#LAYOUT_DIRECTION_LTR} * {@link View#LAYOUT_DIRECTION_RTL} */ public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { } /** Loading Loading @@ -5977,7 +5977,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * may be overridden depending on layout direction. */ @Override public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { setLayoutDirection(layoutDirection); if (!isMarginRelative()) return; Loading core/java/android/widget/RelativeLayout.java +4 −4 Original line number Diff line number Diff line Loading @@ -741,7 +741,7 @@ public class RelativeLayout extends ViewGroup { final int layoutDirection = getLayoutDirection(); int[] rules = params.getRules(layoutDirection); params.onResolveLayoutDirection(layoutDirection); params.resolveLayoutDirection(layoutDirection); if (params.mLeft < 0 && params.mRight >= 0) { // Right is fixed, but left varies Loading Loading @@ -995,7 +995,7 @@ public class RelativeLayout extends ViewGroup { if (child.getVisibility() != GONE) { RelativeLayout.LayoutParams st = (RelativeLayout.LayoutParams) child.getLayoutParams(); st.onResolveLayoutDirection(getLayoutDirection()); st.resolveLayoutDirection(getLayoutDirection()); child.layout(st.mLeft, st.mTop, st.mRight, st.mBottom); } } Loading Loading @@ -1405,7 +1405,7 @@ public class RelativeLayout extends ViewGroup { } @Override public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { final boolean isLayoutRtl = isLayoutRtl(); if (isLayoutRtl) { if (mStart != DEFAULT_RELATIVE) mRight = mStart; Loading @@ -1419,7 +1419,7 @@ public class RelativeLayout extends ViewGroup { resolveRules(layoutDirection); } // This will set the layout direction super.onResolveLayoutDirection(layoutDirection); super.resolveLayoutDirection(layoutDirection); } } Loading Loading
api/17.txt +1 −1 Original line number Diff line number Diff line Loading @@ -25677,7 +25677,7 @@ package android.view { ctor public ViewGroup.LayoutParams(android.content.Context, android.util.AttributeSet); ctor public ViewGroup.LayoutParams(int, int); ctor public ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams); method public void onResolveLayoutDirection(int); method public void resolveLayoutDirection(int); method protected void setBaseAttributes(android.content.res.TypedArray, int, int); field public static final deprecated int FILL_PARENT = -1; // 0xffffffff field public static final int MATCH_PARENT = -1; // 0xffffffff
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -25703,7 +25703,7 @@ package android.view { ctor public ViewGroup.LayoutParams(android.content.Context, android.util.AttributeSet); ctor public ViewGroup.LayoutParams(int, int); ctor public ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams); method public void onResolveLayoutDirection(int); method public void resolveLayoutDirection(int); method protected void setBaseAttributes(android.content.res.TypedArray, int, int); field public static final deprecated int FILL_PARENT = -1; // 0xffffffff field public static final int MATCH_PARENT = -1; // 0xffffffff
core/java/android/view/View.java +1 −1 Original line number Diff line number Diff line Loading @@ -10000,7 +10000,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ private void resolveLayoutParams() { if (mLayoutParams != null) { mLayoutParams.onResolveLayoutDirection(getLayoutDirection()); mLayoutParams.resolveLayoutDirection(getLayoutDirection()); } } Loading
core/java/android/view/ViewGroup.java +2 −2 Original line number Diff line number Diff line Loading @@ -5633,7 +5633,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * {@link View#LAYOUT_DIRECTION_LTR} * {@link View#LAYOUT_DIRECTION_RTL} */ public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { } /** Loading Loading @@ -5977,7 +5977,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * may be overridden depending on layout direction. */ @Override public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { setLayoutDirection(layoutDirection); if (!isMarginRelative()) return; Loading
core/java/android/widget/RelativeLayout.java +4 −4 Original line number Diff line number Diff line Loading @@ -741,7 +741,7 @@ public class RelativeLayout extends ViewGroup { final int layoutDirection = getLayoutDirection(); int[] rules = params.getRules(layoutDirection); params.onResolveLayoutDirection(layoutDirection); params.resolveLayoutDirection(layoutDirection); if (params.mLeft < 0 && params.mRight >= 0) { // Right is fixed, but left varies Loading Loading @@ -995,7 +995,7 @@ public class RelativeLayout extends ViewGroup { if (child.getVisibility() != GONE) { RelativeLayout.LayoutParams st = (RelativeLayout.LayoutParams) child.getLayoutParams(); st.onResolveLayoutDirection(getLayoutDirection()); st.resolveLayoutDirection(getLayoutDirection()); child.layout(st.mLeft, st.mTop, st.mRight, st.mBottom); } } Loading Loading @@ -1405,7 +1405,7 @@ public class RelativeLayout extends ViewGroup { } @Override public void onResolveLayoutDirection(int layoutDirection) { public void resolveLayoutDirection(int layoutDirection) { final boolean isLayoutRtl = isLayoutRtl(); if (isLayoutRtl) { if (mStart != DEFAULT_RELATIVE) mRight = mStart; Loading @@ -1419,7 +1419,7 @@ public class RelativeLayout extends ViewGroup { resolveRules(layoutDirection); } // This will set the layout direction super.onResolveLayoutDirection(layoutDirection); super.resolveLayoutDirection(layoutDirection); } } Loading