Re: [android-developers] Re: How to detect if a view is on screen

2011-09-06 Thread Marc Van Daele
In fact, I'm using HorizontalScrollView already but I'm worried about memory consumption (I'm coming from the embedded software world) Inside the HorizontalScrollView I have a LinearLayout containing a list of my own Views (actually a ViewGroup displaying a movie poster but also information on th

[android-developers] Re: How to detect if a view is on screen

2011-09-06 Thread Indicator Veritatis
Hah, I should have thought of this name! 'HorizontalScrollView' has been supported since API level 3, and it sounds like just what you want. On Sep 5, 11:39 pm, Indicator Veritatis wrote: > I would have said "use ScrollView", but that too is limited to > vertical scrolling. So now I have to ask:

[android-developers] Re: How to detect if a view is on screen

2011-09-05 Thread Indicator Veritatis
I would have said "use ScrollView", but that too is limited to vertical scrolling. So now I have to ask: do you really HAVE to have the scrolling done horizontally? You might be in for a harder time if you insist on this. On Sep 5, 11:29 pm, Marc Van Daele wrote: > Hello Ed, > > Thanks for your a

Re: [android-developers] Re: How to detect if a view is on screen

2011-09-05 Thread Marc Van Daele
Hello Ed, Thanks for your answer but I'm not sure a ListView will work (though I will look at the video). Isn't a ListView limited to Vertical scrolling? (at least the javadoc says so) Kind Regards, Marc 2011/9/6 Ed > Hi Marc, > > Have a look at ListView. It's probably done most of the hard

[android-developers] Re: How to detect if a view is on screen

2011-09-05 Thread Ed
Hi Marc, Have a look at ListView. It's probably done most of the hardwork for you if you just write your own adapter. Just make sure you get your getView correct. Watch a couple of Romain Guy's videos from Google I/O e.g. http://www.youtube.com/watch?v=wDBM6wVEO70 Should help get you started

[android-developers] Re: How to detect if a view is on screen

2011-09-05 Thread Marc Van Daele
I didn't see my question (see below) appear in the group yet so I'm resending. Sorry if it appears twice. Marc 2011/9/3 vdaele > Hello, > > Suppose I have a horizontal scrollable list of say 100 movie posters > (each in its own View) > of which only 4 Views fit on the screen at the same time. >