> I posted a question that I never got a response to.

What you asked for is rather difficult.

> I'm starting to
> think what I'm trying to do must be impossible.

Not impossible, but probably beyond [android-beginners] in scope.

> As a consolation prize, is there any way
> I can pan left and right even if it can't go up and down at the same
> time?

HorizontalScrollView, but I suspect that's not what you want to solve your
problem.

> I've been trying to make a layout that displays something like a mini
> spreadsheet that's specialized for my app.  I would like it to have
> headers for both rows and columns.  The row header can only pan left
> and right.  The column header can only pan up and down.

You will need to draw this yourself, in all likelihood. Create a subclass
of View and implement onDraw(), using the supplied Canvas to render your
2D-scrolling grid. You would track your own scrolling, draw your
gridlines, paint in your shaded cells, render your text, etc.

I do not have any examples of this handy, as I haven't used the technique
myself. However, most 2D games use this, so you may find some examples or
tutorials there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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

Reply via email to