[android-beginners] Re: ListView with addHeaderView Example?

2009-08-24 Thread nurandr...@gmail.com
Thanks, It Helps me a lotI tried to populate a listView by extending Activity, not ListActivity..The list also contains two icon,one Text,and one checkBox in each row...It was quite tough to implement this application, but finally I overcome it, and then the task was to detect which item or r

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-21 Thread chinchin
Finally figured it all out. Here is the final code extended from ListActivity. http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > public class HelloListActivity exten

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-19 Thread chinchin
Just in case anyone wants this in future, here is the solution to having a ListView with an addHeaderView enabled with a permanent TextView item at the top of list that doesn't move, even after you scroll through the list. If anyone has a better implementation please let me know as this doesn't ex

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-17 Thread Neil Chinniah
Just in case anyone is interested I found a thread in one of the other groups that makes a reference to HeaderViewListAdapter: http://groups.google.com/group/android-developers/browse_thread/thread/14617420938f6d70?pli=1 With this I created the following, its far from perfect but at least it loads

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-16 Thread Mark Murphy
chinchin wrote: > Hello, > I'm trying to modify the HelloListView example to use addHeaderView or > addFooterView. Unfortunately I am unable to get this working. Is > anyone able to provide any help? > Here is my code, thanks in advance. > @Override > public void onCreate(Bundle sav