Thanks Mark, I'll give those a shot tonight.

--
Chris Stewart
http://chriswstewart.com



On Fri, Apr 1, 2011 at 2:31 PM, Mark Murphy <mmur...@commonsware.com> wrote:

> On Fri, Apr 1, 2011 at 2:15 PM, Chris Stewart <cstewart...@gmail.com>
> wrote:
> > I have a ScrollView, in a fragment, which takes up the remaining width of
> > the screen.  There are two fragments that proceed this fragment on the
> left
> > side of the screen.
> > What I'd like to do is add another layout to the right of the ScrollView
> > that only takes up a small amount of width and hugs the right side of the
> > screen, and effectively lets the ScrollView "take up what's left".  I've
> > done things like set the ScrollView's marginRight to 10dp and similar to
> > leave some space for the final layout, but it doesn't seem to work.  I've
> > tried searching for similar scenarios but maybe I just haven't found the
> > right keyword combination to yield the results I'm after.
> > Does this ring any bells for anyone?  Any insight would be helpful,
> thanks.
>
> Wrap the ScrollView in a RelativeLayout, anchor your right thingy to
> the right/top/bottom, and anchor your ScrollView to the
> left/top/bottom + the right thingy.
>
> Or, wrap the ScrollView in a LinearLayout, assign it 0px width but a
> weight of 1, and put the right thingy after it.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to