Hi, ScrollView does not support horizontal scrolling at the moment.
On Fri, Jan 16, 2009 at 3:21 AM, RAM <[email protected]> wrote: > > Hi, > Currently i am working on a project using android. the problem i > am facing in Table layout is that it is not scrolling > horizontally.Since i am having lot of columns in table so horizontal > scrolling is necessary. What i want is either a horizontal scrollbar > should appear in table or my screen also scroll horizontally like its > Home Screen.I am posting the XML which i am using for view: > > > <?xml version="1.0" encoding="utf-8"?> > > <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:scrollbarSize="12dip"> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="wrap_content" > android:layout_height="wrap_content">> > > <TableLayout > android:id="@+id/newleads_table" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:orientation="vertical" > >> > > <TableRow > android:id="@+id/widget38" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:orientation="horizontal" > android:background="#FF0FFF" >> > <TextView > android:text="Name" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Lead Category" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Contact Number" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Lead Id" > android:padding="5dip" > android:textColor="#000000" > /> > > <TextView > android:text="roll" > android:padding="5dip" > android:textColor="#000000" > /> > </TableRow> > <TableRow > android:id="@+id/widget39" > android:layout_height="wrap_content" > android:orientation="horizontal" > android:background="#0fffff" >> > <TextView > android:text="Eric Mayor" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Recieved" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="9804352210" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > </TableRow> > <TableRow > android:id="@+id/widget39" > android:layout_height="wrap_content" > android:orientation="horizontal" > android:background="#0fffff" >> > <TextView > android:text="Eric Mayor" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Recieved" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="9804352210" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > </TableRow> > <TableRow > android:id="@+id/widget39" > android:layout_height="wrap_content" > android:orientation="horizontal" > android:background="#0fffff" >> > <TextView > android:text="Eric Mayor" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="Recieved" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="9804352210" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > <TextView > android:text="11082" > android:padding="5dip" > android:textColor="#000000" > /> > </TableRow> > </TableLayout> > </LinearLayout> > </ScrollView> > > and in my jav class i am using: > > setContentView(R.layout.leadstable); > > If any one can tell me how to enable horizontal scrolling in Table > Layout or How can we make our screen horizontally scrolling like > androids Home Screen. > > > > -- Romain Guy Android framework engineer [email protected] 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 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 -~----------~----~----~----~------~----~------~--~---

