ListView getFooterViewsCount - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ListView getFooterViewsCount method.

This code example shows how to use the following methods:addFooterView, getFooterViewsCount, setAdapter, setSelection
        mDataIterator = pullRequestService.pagePullRequests(new RepositoryId(mRepoOwner, mRepoName), mState);
    } 
     
    private void fillData(List<PullRequest> pullRequests) {
        if (pullRequests != null && !pullRequests.isEmpty()) {
            if (mListView.getFooterViewsCount() == 0) {
                mListView.addFooterView(mLoadingView);
                mListView.setAdapter(mAdapter);
            } 
            if (isLoadMore) {
                mAdapter.addAll(mAdapter.getCount(), pullRequests);
                mAdapter.notifyDataSetChanged();
            } 
            else { 
                mAdapter.clear();
                mAdapter.addAll(pullRequests);
                mAdapter.notifyDataSetChanged();
                mListView.setSelection(0);
            } 
        } 

9
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:addFooterView, getFooterViewsCount, setAdapter, setSelection
        } 
    } 
     
    private void fillData(List<Repository> repositories) {
        if (repositories != null && !repositories.isEmpty()) {
            if (mListView.getFooterViewsCount() == 0) {
                mListView.addFooterView(mLoadingView);
                mListView.setAdapter(mAdapter);
            } 
            if (isLoadMore) {
                mAdapter.addAll(mAdapter.getCount(), repositories);
                mAdapter.notifyDataSetChanged();
            } 
            else { 
                mAdapter.clear();
                mAdapter.addAll(repositories);
                mAdapter.notifyDataSetChanged();
                mListView.setSelection(0);
            } 
        } 

8
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:addFooterView, getFooterViewsCount, setAdapter, setSelection
        } 
    } 
     
    private void fillData(List<Repository> repositories) {
        if (repositories != null && !repositories.isEmpty()) {
            if (mListView.getFooterViewsCount() == 0) {
                mListView.addFooterView(mLoadingView);
                mListView.setAdapter(mAdapter);
            } 
            if (isLoadMore) {
                mAdapter.addAll(mAdapter.getCount(), repositories);
                mAdapter.notifyDataSetChanged();
            } 
            else { 
                mAdapter.clear();
                mAdapter.addAll(repositories);
                mAdapter.notifyDataSetChanged();
                mListView.setSelection(0);
            } 
        } 

8
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:addFooterView, getFooterViewsCount, setAdapter, setSelection
     
    private void fillData(List<RepositoryCommit> commits) {
        RepositoryActivity activity = (RepositoryActivity) getSherlockActivity();
        activity.hideLoading();
        if (commits != null && !commits.isEmpty()) {
            if (mListView.getFooterViewsCount() == 0) {
                mListView.addFooterView(mLoadingView);
                mListView.setAdapter(mAdapter);
            } 
            if (isLoadMore) {
                mAdapter.addAll(mAdapter.getCount(), commits);
                mAdapter.notifyDataSetChanged();
            } 
            else { 
                mAdapter.clear();
                mAdapter.addAll(commits);
                mAdapter.notifyDataSetChanged();
                mListView.setSelection(0);
            } 
        } 

8
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:addFooterView, getFooterViewsCount, setAdapter, setSelection
        mDataIterator = issueService.pageIssues(new RepositoryId(mRepoOwner, mRepoName), mFilterData);
    } 
     
    private void fillData(List<Issue> issues) {
        if (issues != null && !issues.isEmpty()) {
            if (mListView.getFooterViewsCount() == 0) {
                mListView.addFooterView(mLoadingView);
                mListView.setAdapter(mAdapter);
            } 
            if (isLoadMore) {
                mAdapter.addAll(mAdapter.getCount(), issues);
                mAdapter.notifyDataSetChanged();
            } 
            else { 
                mAdapter.clear();
                mAdapter.addAll(issues);
                mAdapter.notifyDataSetChanged();
                mListView.setSelection(0);
            } 
        } 

8
CodeRank
Experience pair programming with AI  Get Codota for Java

Related ListView getFooterViewsCount Questions & Answers:

getFooterViewsCount Method Overview
Returns the number of footer views in the list.
See Code Examples for other Android ListView Methods: