Hi all,
    I have come up with a layout to achieve this. I have a fixed
linear layout (vertical) for the fixed column, and two horizontal
scroll views in a linear layout (vertical) The 1st horizontal scroll
view is the fixed header row which does not scroll vertically, but can
scroll horizontally. The 2nd horizontal scroll view is inside a
regular scroll view and hence it can scroll both ways.
    This approach would make the two horizontal scroll views to scroll
independently, which is not what I wanted. Also, I would have to
synchronize the scroll events from one view to the other views based
on whether it is a horizontal or vertical scroll. I found a few issues
while synchronizing the scrolling of different views. I have a
listener for the scroll events and scroll the other views by the
values received in the listener, but sometimes it does not scroll till
the required distance. I would appreciate any kind of help!

Thank you,
Ajay

On Mar 4, 11:59 am, Ajay <aja...@gmail.com> wrote:
> Hi,
>   I want to design a table whose first column items remain fixed when
> user scrolls horizontally, but should scroll when the user scrolls
> vertically.
>   Similarly the first row items remain fixed when user
> scrolls vertically, but should scroll when the user scrolls
> horizontally. Can this be achieved using a TableLayout? Or is there
> any other combination of widgets that I could use?
>
> Thank you,
> Ajay

-- 
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

Reply via email to