PullToUpdate-ListView

Additional

Language
Java
Version
N/A
Created
Jan 16, 2014
Updated
Jan 22, 2014 (Retired)
Owner
Frederico Silva (fredericojssilva)
Contributor
Frederico Silva (fredericojssilva)
1
Activity
Badge
Generate
Download
Source code

Advertisement

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