If you are using XML layouts, there are a couple things you could try...

1) Set the layout to use fill_parent instead of wrap_content
2) Give the layout a weight... android:layout_weight

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sat, Oct 24, 2009 at 7:52 PM, launchpadtt
<[email protected]>wrote:

>
> Hello,
>
> I'm learning android and I have extremely limited programming
> experience or skills. Basically I want to have an activity whose
> layout kinda looks like the gmail inbox's layout. I want a textview on
> top, and a radio group of radio buttons in the middle and a row of
> buttons at the bottom, but I want the radio group to fill the space in
> between the text view on top and the row of buttons on the bottom.
>
> I tried a LinearLayout with a TextView followed by a ScrollView with a
> RadioGroup with RadioButtons in it followed by a LinearLayout with the
> buttons in it. The moment I added too many radio buttons the linear
> layout with the buttons went past the edge of the screen.
>
> Then I tried the RelativeLayout with the ScrollView below the TextView
> and the LinearLayout with the buttons in it having the
> android:layout_alignParentBottom set to true. That puts the row of
> buttons at the bottom but the scrollview's height reaches the bottom
> of the screen and the radio buttons in it show up behind the row of
> buttons.
>
> I assume that I have to accomplish what I want programatically but I
> don't really know how to do that. I'm thinking that I have to at some
> point get the height of the textview and the linearlayout of buttons
> and set the height of the scrollview to height of the screen - (height
> of the textview + height of the linearlayout.) And that I'd probably
> do that in onDraw or onSizeChanged of the view and I'd have to make a
> new class extending textview or relativelayout that would have the new
> onSizeChanged that would resize the scrollview.
>
> Did I mention my limited skills? *sigh* Any assistance would be
> appreciated.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to