ok. i tweaked the layout in a different way and got it to work. thanks. On Sat, Oct 3, 2009 at 1:18 PM, Android Development <indodr...@gmail.com>wrote:
> Hello everyone, > When i encapsulate a table layout in a scroll view, i am unable to see the > vertical scroller on the screen (that the user will hold and drag to > actually scroll). > > What am i doing wrong ? > > The page i am trying to draw is a configuration page, where i need to take > user input in a table. As there may be many options, i am using a scroll > view, so that the user can scroll if needed. > > Kindly assist. Help is appreciated. > > I am attaching my XML view as an example below: > ------------------------------------------------------------------------- > > // Root layout of the view > > <?xml version="1.0" encoding="utf-8"?> > <RelativeLayout > android:id="@+id/widget66" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:background="#3366CC" > xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="horizontal"> > > // This is the page header > > <EditText > android:id="@+id/widget89" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Configuration Page" > android:cursorVisible="false" > android:layout_margin="5dip" > android:background="#0099FF" > android:textSize="18sp" > android:gravity="center" > > > </EditText> > > //Scroll view starts here > > <ScrollView > android:id="@+id/widget96" > android:padding="5dip" > android:scrollbars="vertical" > android:layout_height="250dip" > android:scrollbarSize="12dip" > android:layout_below="@+id/widget89" > android:scrollbarStyle="outsideOverlay" > android:layout_width="fill_parent"> > > // Putting a table that needs to be scrolled. > > <TableLayout > android:id="@+id/table" > android:layout_width="wrap_content" > android:layout_height="fill_parent" > android:orientation="vertical" > > > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > <LinearLayout > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:layout_height="30dip" > android:paddingTop="4dip" > android:paddingBottom="4dip" > android:orientation="horizontal" > > > <TextView > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC0000" > android:text="Interval" > > > </TextView> > <EditText > android:id="@+id/widget144" > android:layout_height="30dip" > android:background="#ffffffff" > android:textSize="15sp" > android:layout_width="170dip" > android:cursorVisible="false" > > > </EditText> > </LinearLayout> > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > <LinearLayout > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:paddingBottom="4dip" > android:paddingTop="4dip" > android:layout_height="30dip" > android:orientation="horizontal" > > > <TextView > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC0000" > android:text="config2" > > > </TextView> > <EditText > android:id="@+id/widget144" > android:layout_width="170dip" > android:layout_height="30dip" > android:background="#ffffffff" > android:textSize="15sp" > > > </EditText> > </LinearLayout> > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > <LinearLayout > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:layout_height="30dip" > android:paddingBottom="4dip" > android:paddingTop="4dip" > android:orientation="horizontal" > > > <TextView > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC0000" > android:text="config3" > > > </TextView> > <EditText > android:id="@+id/widget144" > android:layout_width="170dip" > android:layout_height="30dip" > android:paddingBottom="5dip" > android:background="#ffffffff" > android:textSize="15sp" > > > </EditText> > </LinearLayout> > </TableLayout> > </ScrollView> > </RelativeLayout> > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---