Java Code Examples for android.widget.ListView.removeFooterView()

The following are Jave code examples for showing how to use removeFooterView() of the android.widget.ListView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: R-a-dio-Amazing-Android-App   File: ActivityMain.java   View Source Code Vote up 5 votes
public void clearSearchClick(View clearSearchButton) {
    View requestView = viewPager.findViewById(R.id.requests_page);

    EditText queryEditor = (EditText) requestView.findViewById(R.id.searchquery);
    queryEditor.setText("");

    ListView songListView = (ListView) requestView.findViewById(R.id.songListView);
    ArrayList<Song> emptyList = new ArrayList<>();
    songListView.removeFooterView(searchFooter);
    songListView.setAdapter(new SongAdapter(this, R.layout.request_cell, emptyList));
}
 
Example 2
Project: goRefresh   File: LoadMoreHelper.java   View Source Code Vote up 4 votes
private void removeFooterView(ListView contentView) {
    if (mFooterView != null) {
        contentView.removeFooterView(mFooterView);
    }
}