Fix corner case of RelativeLayout with pinned edges
LayoutParams without a specified layout_width value automatically get a default of 0. This works in most cases, when the view is pinned by various constraints (such as alignParentLeft and alignParentRight), but breaks down when the child lies in negative coordinates. Negative coordinates are supposed to be a signal, in RelativeLayout, that that coordinate is variable. However, negative margins can cause a negative value to be calculated, at which point it should be used as a concrete value, not a behavior trigger. The fix is to use Integer.MIN_VALUe as the tirgger instead, to distinguish that impossible value from negative values which could reasonably have been computed during measurement. Also, removes dead code from earlier attempt at rtl. Issue #10606777 Time picker can't display 10, 11, or 12 oclock when font size is huge Issue #16516577 resolveLayoutDirection doesn't act as intended Change-Id: Ia564603012f3c45636e69cd3776205fb544fda48
Loading
Please register or sign in to comment