It's surprising that the easiest way to accomplish this effect is
creating your own custom adapter.  It does what I want in concept but
is there any way to add complex layouts
(<LinearLayout>widgets<RelativeLayout>widgets</RelativeLayout></
LinearLayout> or predefined XML views?  For example using your demo:

        private View buildButton() {

                //your demo code
                //Button result=new Button(this);
                //result.setText("Hello, world!");

                //this just crashes, why?
                Button result = (Button)findViewById(R.id.mybutton);
                return result;

        }

Also, would your approach work for a ListActivity?


On Oct 22, 9:50 pm, Mark Murphy <[email protected]> wrote:
> droid_does wrote:
> > What I have now is a layout that includes a list view at the bottom.
> > All of the items in the layout above the list view remain fixed as you
> > scroll through the list view.  I would like the entire page to scroll
> > so for example when you reached the bottom of the list you would no
> > longer see the items above the list view.
>
> >  What is the easiest way to accomplish this?
>
> Put everything in the ListView. I have a MergeAdapter targeting this
> very scenario:
>
> http://github.com/commonsguy/cwac-merge
>
> What you specifically *cannot* do is wrap the whole thing in a
> ScrollView. ScrollView and things that themselves scroll (e.g.,
> ListView) don't get along very well.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in Germany, 18-22 January 2010:http://bignerdranch.com

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