Problem with addFooterView/AddHeaderView

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

Problem with addFooterView/AddHeaderView

Postby williamzanelli » Thu May 14, 2009 5:21 pm

Hi guys,

I have a small issue, I'm trying to add a a footer view, [some text and images below my listView]

I've cretaed the correpsonding XML for the images and text.

Code: Select all
TextView headerLogos = (TextView) findViewById(R.id.headerLogos);
      headerLogos.setText("My Logos Header");
      list.addFooterView(headerLogos);



This throws a Null Pointer Exception.

Any ideas... what I;m doing wrong?

Thanks in advance.

Will
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 14 guests