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,7 +32,7 @@ import java.util.List; | ||
32 | public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChildPresenter, MyChildContract.IMyChildModel> | 32 | public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChildPresenter, MyChildContract.IMyChildModel> |
33 | implements MyChildContract.IMyChildView, View.OnClickListener { | 33 | implements MyChildContract.IMyChildView, View.OnClickListener { |
34 | SwipeMenuRecyclerView child_recycle; | 34 | SwipeMenuRecyclerView child_recycle; |
35 | - TextView back; | 35 | + TextView back, center_title; |
36 | ChildAdapter childAdapter; | 36 | ChildAdapter childAdapter; |
37 | 37 | ||
38 | @NonNull | 38 | @NonNull |
@@ -46,6 +46,8 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | @@ -46,6 +46,8 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | ||
46 | protected void initView(Bundle savedInstanceState) { | 46 | protected void initView(Bundle savedInstanceState) { |
47 | child_recycle = findViewById(R.id.child_recycle); | 47 | child_recycle = findViewById(R.id.child_recycle); |
48 | back = findViewById(R.id.back_top); | 48 | back = findViewById(R.id.back_top); |
49 | + center_title = findViewById(R.id.center_title); | ||
50 | + center_title.setText("我的孩子"); | ||
49 | back.setOnClickListener(this); | 51 | back.setOnClickListener(this); |
50 | initRecyclerView(); | 52 | initRecyclerView(); |
51 | 53 | ||
@@ -58,9 +60,10 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | @@ -58,9 +60,10 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | ||
58 | child_recycle.setSwipeMenuItemClickListener(new SwipeMenuItemClickListener() { | 60 | child_recycle.setSwipeMenuItemClickListener(new SwipeMenuItemClickListener() { |
59 | @Override | 61 | @Override |
60 | public void onItemClick(SwipeMenuBridge menuBridge) { | 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
@@ -246,7 +246,7 @@ | @@ -246,7 +246,7 @@ | ||
246 | android:layout_height="wrap_content" | 246 | android:layout_height="wrap_content" |
247 | android:layout_gravity="center_vertical" | 247 | android:layout_gravity="center_vertical" |
248 | android:layout_weight="1" | 248 | android:layout_weight="1" |
249 | - android:text="在线客服" | 249 | + android:text="意见与反馈" |
250 | android:textSize="@dimen/txtsize_title" /> | 250 | android:textSize="@dimen/txtsize_title" /> |
251 | 251 | ||
252 | </LinearLayout> | 252 | </LinearLayout> |
app/src/main/res/layout/top.xml
@@ -17,6 +17,7 @@ | @@ -17,6 +17,7 @@ | ||
17 | android:background="@drawable/arrow_left" /> | 17 | android:background="@drawable/arrow_left" /> |
18 | 18 | ||
19 | <TextView | 19 | <TextView |
20 | + android:id="@+id/center_title" | ||
20 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" |
21 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" |
22 | android:textSize="@dimen/txtsize_headline" | 23 | android:textSize="@dimen/txtsize_headline" |