Documentation says listViewObj.addView() method is not supported. I want to add view to the end of the list without refreshing it. How this can be done?
You can add a footer to the ListView by,
View footerView = getLayoutInflater().inflate(R.layout.footer_layout, null);
listview.addFooterView(footerView);
If you want to add a view outside your list use addFooterView, see http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View)
If you want the view to be part of the list than you will have to refresh it. The new data must be added in the adapter and notify that data changed, see http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With