[android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-04-27 Thread kodlan
I'm having the same issue. Is there any workaround for that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-04-26 Thread pnemonic
in RelativeLayout.java we find private void applyHorizontalSizeRules(LayoutParams childParams, int myWidth) { ... if (0 != rules[ALIGN_PARENT_RIGHT]) { if (myWidth = 0) { childParams.mRight = myWidth - mPaddingRight - childParams.rightMargin; } else

[android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-03-21 Thread Zsolt Vasvari
I have never noticed this and I have many-many Relative layouts. On Wednesday, March 21, 2012 10:21:59 AM UTC+8, rdietrick wrote: I have a RelativeLayout that encapsulates several other views. I have the layout_width of the parent (RelativeLayout) set to wrap_content. If I set the

[android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-03-21 Thread rdietrick
I don't make this stuff up. Try this one on for size: Take out the android:layout_alignParentRight=true attribute from the child view and you'll see that the parent_layout reverts back to it's min_width of 280dp. But with that attribute set to true the parent_layout expands horizontally to

[android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-03-21 Thread rdietrick
Forgot to paste the closing RelativeLayout tag. Just add this to the end of the XML: /RelativeLayout On Wednesday, March 21, 2012 11:28:53 AM UTC-7, rdietrick wrote: I don't make this stuff up. Try this one on for size: Take out the android:layout_alignParentRight=true attribute from the

Re: [android-developers] Re: RelativeLayout layout_alignParentRight changes parent

2012-03-21 Thread Kostya Vasilyev
Yep, I've seen this too. Makes RelativeLayout less useful, but, oh well :) -- unless I'm missing something, like android:layout_alignParentRightButDontMakeSelfAsWideAsParent=true. 21 марта 2012 г. 22:28 пользователь rdietrick rdietr...@gmail.com написал: I don't make this stuff up.  Try this