Re: [android-developers] Layout problem: equal margins in XML

2011-06-13 Thread Mark Murphy
On Sun, Jun 12, 2011 at 10:23 PM, Ted Hopp wrote: > I thought I had addressed that. Assuming that the smaller margins are at > least the minimum, then the larger margins should shrink (the ListView > should expand in that dimension) until they are equal all around. I think > you are right that thi

Re: [android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Ted Hopp
I thought I had addressed that. Assuming that the smaller margins are at least the minimum, then the larger margins should shrink (the ListView should expand in that dimension) until they are equal all around. I think you are right that this cannot be done in XML alone, but I asked hoping that

Re: [android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Kostya Vasilyev
What if the list view's content produces unequal margins in the horizontal and vertical directions? I don't think your requirement, as written, can handle this. If equal horizontal and vertical margins weren't a requirement, I'd say make a FrameLayout with minimum margins (or padding), then set yo

[android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Ted Hopp
I have a rather involved requirement for a rather simple layout. I have an activity with a single ListView floating in the middle of the screen with a background margin of uniform width all around. So far no problem. Now I need the margin to be as large as possible given the content of the ListV