Changed TopicDetailFragment to pull UP to refresh
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user