Hi Megha,
Thanks for your replay, it was really helpful.
I have done this according to your msg. it does work.
However, this things is that if content of LinearLayout is not enought
to fill the screen,
while the LinearLayout's background is set to YELLOW or WHITE,or what
ever not BLACK(since the default background color is BLACK)
The background color of filled area will be displayed correctly, the
rest area is still BLACK.
So it is so odd.
Here is my Code :
public View getView(.....){
ScrollView sv = new ScrollView(mCtx);
sv.setLayoutParams(new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
sv.addView(mLL,new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
return sv;
}
mLL definition is :
mLL = new LinearLayout(mCtx);
mLL.setOrientation(LinearLayout.VERTICAL);
mLL.setLayoutParams(new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
mLL.setVerticalScrollBarEnabled(true);
mLL.setBackgroundColor(0xffffcc99);
...
Thanks
On Apr 9, 5:10 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think you have not placed your LinearLayout inside a ScrollView, this is
> needed if you want the scrollbars.
>
> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>
> <LinearLayout
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:id="@+id/linearLayout">
>
> </LinearLayout>
> </ScrollView>
>
> Thanks,
> Megha
>
> On Wed, Apr 9, 2008 at 1:25 PM, Android-Berry <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > Hi There,
>
> > I have created Linearlayout dynamatically. and added some Checkbox,
> > and RadioButton to.
> > which can not display within one screen.
>
> > however, it does not show Vertical Scroll bar, and down - arrow does
> > not work neither.
>
> > here is the source code that I am using,
>
> > mLL = new LinearLayout(mCtx);
> > mLL.setOrientation(LinearLayout.VERTICAL);
> > mLL.setLayoutParams(new LinearLayout.LayoutParams(
> > LayoutParams.FILL_PARENT,
> > LayoutParams.WRAP_CONTENT));
> > mLL.setVerticalScrollBarEnabled(true);
> > mLL.setBackgroundColor(0xffffcc99);
>
> > and it is displayed within TabPanel.
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---