Skip to content

fredericojssilva/PullToUpdate-ListView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PullToUpdate

##Features

##Usage

###Layout

 <pt.fjss.pulltoupdatelibrary.PullToUpdateListView
        android:id="@+id/list"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        />

###JAVA

PullToUpdateListView list = (PullToUpdateListView) this.findViewById(R.id.list);
...

list.setPullMode(PullToUpdateListView.MODE.UP_AND_DOWN);
list.setAutoLoad(true, 8);
list.setPullMessageColor(Color.BLUE);
list.setLoadingMessage("Loading Message");
list.setPullRotateImage(getResources().getDrawable(R.drawable.rotate_img));
		
list.setOnRefreshListener(new IonRefreshListener() {
  @Override
	public void onRefreshUp() {
    //your code
    list.onRefreshUpComplete();
    }

	@Override
	public void onRefeshDown() {
    //your code
    list.onRefreshDownComplete(null);
    }

		});

##DOCUMENTATION

About

Pull to Refresh with automatic load more data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages