Re: [android-developers] RelativeLayout issue

2014-05-11 Thread dashman
android:layout_alignParentLeft=true android:layout_alignParentRight=true No changes - still the full width of the parent View (not layout) On Saturday, May 10, 2014 9:06:10 PM UTC-4, TreKing wrote: On Sat, May 10, 2014 at 6:57 PM, dashman erjd...@gmail.com

Re: [android-developers] RelativeLayout issue

2014-05-11 Thread Piren
I've come across something like that before. RelativeLayouts do not like their children doing something like that (or asking to be aligned to the right/bottom). Just use a size variable for both the parent and child (see dimensions.xml), will save you the headache understanding android's

Re: [android-developers] RelativeLayout issue

2014-05-11 Thread Kostya Vasilyev
Yep: a child with alignParentRight / alignParentBottom will cause the parent (the RelativeLayout) to stretch to the entire width / height of *its* parent. -- K 2014-05-11 17:05 GMT+04:00 Piren gpi...@gmail.com: I've come across something like that before. RelativeLayouts do not like their

Re: [android-developers] RelativeLayout issue

2014-05-11 Thread dashman
But isn't the logical parent of the child - it's layout parent. in that i've set the width explicitly. On Sunday, May 11, 2014 9:12:00 AM UTC-4, Kostya Vasilyev wrote: Yep: a child with alignParentRight / alignParentBottom will cause the parent (the RelativeLayout) to stretch to the entire

[android-developers] RelativeLayout issue

2014-05-10 Thread dashman
I've got a layout (that's a listitem) and want to set a fixed width. (it's a horizontal listview) ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=60dp android:layout_height=wrap_content Button

Re: [android-developers] RelativeLayout issue

2014-05-10 Thread TreKing
On Sat, May 10, 2014 at 6:57 PM, dashman erjdri...@gmail.com wrote: Shouldn't the width of the button be 60dp - since i've set the width of the button to match-parent - and it's set to 60dp in the layout. It's actually taking up the full width of the parent view - not layout. You'd think,