listview addFooterView and button onclick

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

listview addFooterView and button onclick

Postby sxe » Sat Feb 06, 2010 6:06 pm

Hi all,

the title says it all. ok, not completely :) but most of the problem. :)

I'm using a listview with my own implementation of baseadapter. Before adding the main list items to the listview and setting the Adapter i add a footer, with the listview method addFooterView(), to the listview. The footer is a normal listview item with a custom view and two buttons.

And here comes my problem:

How can i add a onClick() event to this buttons? i tried it in the getView() method from my baseadapter but that does not work. :/

I need these two buttons at the bottom of my listview as back and forward buttons, cause i don't want too much items at once in the listview.

Posts: 3
Joined: Tue Jan 26, 2010 7:11 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 12 guests