Changed TopicDetailFragment to pull UP to refresh

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-10-14 09:58:46 -04:00
parent 73a98c05a3
commit bf4cb33a6d
3 changed files with 14 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.handmark.pulltorefresh.library.PullToRefreshBase.Mode;
import com.handmark.pulltorefresh.library.PullToRefreshBase.OnRefreshListener;
import com.handmark.pulltorefresh.library.PullToRefreshListView;
@@ -85,4 +86,14 @@ public abstract class PullToRefreshListFragment extends ListFragment implements
return layout;
}
/**
* Sets the mode of the Pull To Refresh ListView controlled by this fragment
*
* @param mode
* @author ricky barrette
*/
public void setMode(final Mode mode) {
mPullToRefreshListView.setMode(mode);
}
}