80,360
社区成员
发帖
与我相关
我的任务
分享
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
{
View wrapper = inflater.inflate(R.layout.home_question_ui, container,false);
mPullRefreshListView = (PullToRefreshListView) wrapper
.findViewById(R.id.lv_item);
mPullRefreshListView.setMode(Mode.BOTH);
mPullRefreshListView.setScrollingWhileRefreshingEnabled(true);
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:gravity="center"
android:orientation="vertical" >
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/lv_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@android:color/darker_gray"
android:dividerHeight="@dimen/y3"
android:fadingEdge="none" />
</LinearLayout>