Browse Source

no message

master
lh 8 years ago
parent
commit
83123330b9
3 changed files with 57 additions and 6 deletions
  1. +4
    -1
      app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseAllFragment.java
  2. +39
    -2
      app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseNoFragment.java
  3. +14
    -3
      app/src/main/res/layout/frag_inhouse_no.xml

+ 4
- 1
app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseAllFragment.java View File

@ -60,7 +60,10 @@ public class InHouseAllFragment extends BaseFragment implements RefreshLayout.On
@Override @Override
public void run() { public void run() {
rfl_inhouseall.setLoading(false); rfl_inhouseall.setLoading(false);
for (int i=0;i<5;i++){
mList.add(new InhouseBean(i,""+i,""+i,"2017/08/09","已审核"));
}
mAdapter.notifyDataSetChanged();
} }
},1000); },1000);
} }


+ 39
- 2
app/src/main/java/com/qhclh/ytzh/index/shangpin/InHouseNoFragment.java View File

@ -1,13 +1,30 @@
package com.qhclh.ytzh.index.shangpin; package com.qhclh.ytzh.index.shangpin;
import android.widget.ListView;
import com.qhclh.ytzh.R; import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseFragment; import com.qhclh.ytzh.base.BaseFragment;
import com.qhclh.ytzh.bean.InhouseBean;
import com.qhclh.ytzh.ui.RefreshLayout;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
/** /**
* Created by 青花瓷 on 2017/12/28. * Created by 青花瓷 on 2017/12/28.
*/ */
public class InHouseNoFragment extends BaseFragment {
public class InHouseNoFragment extends BaseFragment implements RefreshLayout.OnLoadListener {
@BindView(R.id.lv_inhouseno)
ListView lv_inhouseno;
@BindView(R.id.rfl_inhouseno)
RefreshLayout rfl_inhouseno;
private int page =0;
private List<InhouseBean> mList;
private InHouseAdapter mAdapter;
@Override @Override
protected int setLayout() { protected int setLayout() {
return R.layout.frag_inhouse_no; return R.layout.frag_inhouse_no;
@ -15,16 +32,36 @@ public class InHouseNoFragment extends BaseFragment {
@Override @Override
protected void initView() { protected void initView() {
rfl_inhouseno.setEnabled(false);
} }
@Override @Override
protected void initData() { protected void initData() {
mList = new ArrayList<>();
for (int i=0;i<5;i++){
mList.add(new InhouseBean(i+2,""+i+2,""+i+2,"2017/08/10","未审核"));
}
mAdapter = new InHouseAdapter(getActivity(),mList);
lv_inhouseno.setAdapter(mAdapter);
} }
@Override @Override
protected void initOper() { protected void initOper() {
rfl_inhouseno.setOnLoadListener(this);
}
@Override
public void onLoad() {
rfl_inhouseno.postDelayed(new Runnable() {
@Override
public void run() {
rfl_inhouseno.setLoading(false);
for (int i=0;i<5;i++){
mList.add(new InhouseBean(i+3,""+i+3,""+i+3,"2017/08/10","未审核"));
}
mAdapter.notifyDataSetChanged();
}
},1000);
} }
} }

+ 14
- 3
app/src/main/res/layout/frag_inhouse_no.xml View File

@ -3,10 +3,21 @@
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<TextView
android:text="未审核aaaaaaaaa"
<com.qhclh.ytzh.ui.RefreshLayout
android:id="@+id/rfl_inhouseno"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent">
<ListView
android:id="@+id/lv_inhouseno"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:scrollbars="none">
</ListView>
</com.qhclh.ytzh.ui.RefreshLayout>
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save