Skip to content Skip to sidebar Skip to footer

Android Footer After Listview

I am facing a problem of application crash when I wanted to display a footer button underneath the list view. I have attached my xml code and activity code herewith. Any help will

Solution 1:

Yes, You made a mistake -

  • You're extending ListActivity so where is lv = getListView() in your code.

  • Or, you should give list = (ListView)findViewById(android.R.id.list); after your super.onCreate(savedInstanceState); in your onCreate

Because, extending ListActivity these are important. It seems not proper with your code. You better have look at this example How to add a footer in ListView? before starting your application.

Post a Comment for "Android Footer After Listview"