No, you need to put your LinearLayout (with a height of wrap_content) inside a ScrollView.
On Thu, Jun 11, 2009 at 8:59 PM, TheBeefiest<geriatricdancepa...@gmail.com> wrote: > > I have a simple form > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > > <LinearLayout android:layout_width="wrap_content" > android:layout_height="wrap_content" android:id="@+id/Layoutbuttons"> > <Button android:layout_width="wrap_content" > android:layout_height="wrap_content" android:id="@+id/Bsave" > android:text="Save"></Button> > <Button android:layout_width="wrap_content" > android:layout_height="wrap_content" android:text="Clear" android:id="@ > +id/Beditclear"></Button> > </LinearLayout> > > <LinearLayout android:layout_width="fill_parent" > android:layout_height="fill_parent" android:id="@+id/Ledititems" > android:orientation="vertical" android:scrollbars="vertical" > android:scrollbarStyle="insideInset" > android:scrollbarAlwaysDrawVerticalTrack="true" > android:fadingEdge="vertical" android:fadingEdgeLength="8px"></ > LinearLayout> > > > </LinearLayout> > > > > > I am adding dynamicly created EditTexts to the last vertical > LinearLayout: > > > ArrayList<EditText> arrayedititems; > edititems = (LinearLayout) findViewById(R.id.Ledititems); > > > arrayedititems.add( new EditText(globalcontext) ); //multiple times > to add many EditTexts > .... > edititems.addView(arrayedititems.get(lastindex) ); > > > > Now all the edittexts are being added fine and show up on the > linearlayout, the problem is I get no vertical scrollbar and can not > scroll the linearlayout > > (you can a see large number of failed attemptes in the xml entry to > enable this scrolling, such as forcing scrollbars or setting to > vertical ) > > > Do I need to call some sort of invalidate() or notifyDataSetChanged() > like with an arrayadapter to update the LinearLayout into checking if > it needs to enable scrolling? > > Thanks for the time > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---