Hi
In your ListActivity :
View v = LayoutInflater.from(this).inflate(your_layout_xml,......);
getListView().addHeaderView(v,....);
2009/8/13 Wouter <[email protected]>
>
> How can i use addHeaverView with widgets i have setup in the layout
> xml file?
>
> On 13 aug, 14:48, Wouter <[email protected]> wrote:
> > Is the use of your MergeAdapter a good idea for me?
> >
> > On 13 aug, 14:30, Mark Murphy <[email protected]> wrote:
> >
> > > Wouter wrote:
> > > > Now the problem is. I have a scrollview and all the other views and
> > > > widgets are placed inside of it.
> >
> > > One of those other widgets is a ListView. Do not put widgets that do
> > > their own scrolling (e.g., ListView) in a ScrollView.
> >
> > > > How can I fix this?
> >
> > > Come up with some other approach to your UI that does not require a
> > > ScrollView to wrap the ListView. For example, perhaps you can put them
> > > all as rows in the ListView (e.g., addHeaderView()/addFooterView()).
> >
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://twitter.com/commonsguy
> >
> > > Warescription: Three Android Books, Plus Updates, $35/Year
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---