Commit 37b52cab663cd0520b08ec6c7926d8e7e6bb6dbd
1 parent
9d177f29
Exists in
yxb_dev
and in
2 other branches
no message
Showing
3 changed files
with
9 additions
and
5 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/ui/activity/MyChildActivity.java
| ... | ... | @@ -32,7 +32,7 @@ import java.util.List; |
| 32 | 32 | public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChildPresenter, MyChildContract.IMyChildModel> |
| 33 | 33 | implements MyChildContract.IMyChildView, View.OnClickListener { |
| 34 | 34 | SwipeMenuRecyclerView child_recycle; |
| 35 | - TextView back; | |
| 35 | + TextView back, center_title; | |
| 36 | 36 | ChildAdapter childAdapter; |
| 37 | 37 | |
| 38 | 38 | @NonNull |
| ... | ... | @@ -46,6 +46,8 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi |
| 46 | 46 | protected void initView(Bundle savedInstanceState) { |
| 47 | 47 | child_recycle = findViewById(R.id.child_recycle); |
| 48 | 48 | back = findViewById(R.id.back_top); |
| 49 | + center_title = findViewById(R.id.center_title); | |
| 50 | + center_title.setText("我的孩子"); | |
| 49 | 51 | back.setOnClickListener(this); |
| 50 | 52 | initRecyclerView(); |
| 51 | 53 | |
| ... | ... | @@ -58,9 +60,10 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi |
| 58 | 60 | child_recycle.setSwipeMenuItemClickListener(new SwipeMenuItemClickListener() { |
| 59 | 61 | @Override |
| 60 | 62 | public void onItemClick(SwipeMenuBridge menuBridge) { |
| 61 | - int adapterPosition = menuBridge.getAdapterPosition(); | |
| 62 | -// mDataList.remove(adapterPosition); | |
| 63 | - childAdapter.notifyItemRemoved(adapterPosition); | |
| 63 | +// int adapterPosition = menuBridge.getAdapterPosition(); | |
| 64 | +//// mDataList.remove(adapterPosition); | |
| 65 | +// mPresenter.loadChildList(); | |
| 66 | +// childAdapter.notifyItemRemoved(adapterPosition); | |
| 64 | 67 | } |
| 65 | 68 | }); |
| 66 | 69 | ... | ... |
app/src/main/res/layout/fragment_mine.xml
app/src/main/res/layout/top.xml