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

The following are Jave code examples for showing how to use setSelectionAfterHeaderView() 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: NeoStream   File: VideosFragment.java   View Source Code Vote up 5 votes
void showVideos(String filter, String sort) {
    TwitchChannel channel = getArguments().getParcelable("channel");
    if(channel == null || getView() == null)
        return;

    currentFilter = filter;
    currentSort = sort;

    adapter.data.clear();

    new LoadVideosTask(adapter, currentFilter, currentSort, 0).execute(channel.username);

    ListView videoList = getView().findViewById(R.id.videoList);
    videoList.setSelectionAfterHeaderView();
}