[android-developers] Re: Scrolling like a spreadsheet

2013-04-29 Thread Aaron Smentkowski
Brilliant work! Exactly what I was looking for! On Monday, August 30, 2010 3:43:10 PM UTC-7, Ed wrote: Ok... so I was bored so Uses spreadsheet.xml which contains a LinearLayout with the id layout_spreadsheet. There are some tweaks that could be made like making the top left cell

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
What if I set up LinearLayout arranged horizontally with a set of ListViews? The left-most ListView would be a list of row labels. The whole works would be in a HorizontalScrollView. The column headings would be set with ListView.addHeader. Then the only difficult task would be synchronizing the

Re: [android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 12:44 PM, Bret Foreman bret.fore...@gmail.com wrote: What if I set up LinearLayout arranged horizontally with a set of ListViews? The left-most ListView would be a list of row labels. The whole works would be in a HorizontalScrollView. The column headings would be set

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
What do you think about the difficulty of synchronizing the scrolling of the ListViews? On Aug 30, 10:21 am, Mark Murphy mmur...@commonsware.com wrote: I am uncertain that ListViews can go in a HorizontalScrollView, though it is worth a try. -- Mark Murphy (a Commons

Re: [android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 1:48 PM, Bret Foreman bret.fore...@gmail.com wrote: What do you think about the difficulty of synchronizing the scrolling of the ListViews? I think it will be difficult. I also think your solution will be memory-intensive for large numbers of columns. The right answer

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
I don't think the memory load will be as bad as you imagine. I plan to give the user a pick-list of which columns they want to see in the table. In practice, they will rarely choose more than a handful. Likewise, there are rarely more than a few dozen rows. So total memory footprint is o200Kbytes.

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Ed
Ok... so I was bored so Uses spreadsheet.xml which contains a LinearLayout with the id layout_spreadsheet. There are some tweaks that could be made like making the top left cell outside the left scroll but I'm sure you can figure that out. Allowing for dynamic sized cols/rows might be an