Hi All,

I know this has come up a few times in the past, and the best advice is to 
avoid having ListViews inside a ScrollView entirely (instead using 
addHeaderView()/addFooterView() or doing it manually with a LinearLayout, but I 
just wanted to see what best practices people might put forward for this...

The design I have to implement has a top-level ScrollView, inside of which is a 
logo ImageView, a dynamically populated ListView of clickable items and a 
Button beneath this.

The design excludes me from simply using addHeader/FooterView() for the logo 
and button because the background of the ScrollView needs to scroll (normally 
it remains fixed and the content scrolls).

My solution has been to create a custom class which extends LinearLayout and 
has similar methods to ListView, such as setAdapter().

The problem is you have to re-implement so much by going with LinearLayout, 
such as selectors, dividers, trackball/kb input, long-click and so on. I'm keen 
to see if anyone has a better solution to this problem?

Regards,
Richard


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to