Commit f55d9c698fc8998c5c13a633e987b59e0f716bf4
1 parent
28f75749
报名页面跳转1
Showing
2 changed files
with
12 additions
and
8 deletions
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RegistrationInfoView.java
| ... | ... | @@ -16,9 +16,6 @@ public class RegistrationInfoView implements MvpView { |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public void initView(){ |
| 19 | -// fragment.binding.topbar.addLeftImageButton(R.drawable.top_back_black, R.id.fragment_back).setOnClickListener(v -> { | |
| 20 | -// fragment.getActivity().finish(); | |
| 21 | -// }); | |
| 22 | 19 | fragment.binding.topbar.setTitle("填写报名信息"); |
| 23 | 20 | fragment.binding.commitInfo.setOnClickListener(v -> fragment.commitInfo()); |
| 24 | 21 | } | ... | ... |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/fragment/RegistrationInfoFragment.java
| ... | ... | @@ -4,12 +4,9 @@ package com.cnlive.moudle.pedometer.ui.fragment; |
| 4 | 4 | import android.os.Bundle; |
| 5 | 5 | import android.support.annotation.NonNull; |
| 6 | 6 | import android.support.annotation.Nullable; |
| 7 | -import android.support.v4.app.Fragment; | |
| 8 | -import android.view.LayoutInflater; | |
| 9 | 7 | import android.view.View; |
| 10 | -import android.view.ViewGroup; | |
| 11 | 8 | |
| 12 | -import com.cnlive.libs.base.frame.fragment.MvpBindingFragment; | |
| 9 | +import com.cnlive.libs.base.ui.QMUIFragment; | |
| 13 | 10 | import com.cnlive.moudle.pedometer.frame.presenter.RegistrationInfoPresenter; |
| 14 | 11 | import com.cnlive.moudle.pedometer.frame.view.RegistrationInfoView; |
| 15 | 12 | import com.example.moudle_pedometer.R; |
| ... | ... | @@ -18,7 +15,7 @@ import com.example.moudle_pedometer.databinding.FragmentRegistrationInfoBinding; |
| 18 | 15 | /** |
| 19 | 16 | * Created by hanyayun 019/05/29. |
| 20 | 17 | */ |
| 21 | -public class RegistrationInfoFragment extends MvpBindingFragment<RegistrationInfoView, RegistrationInfoPresenter,Object, FragmentRegistrationInfoBinding> { | |
| 18 | +public class RegistrationInfoFragment extends QMUIFragment<RegistrationInfoView, RegistrationInfoPresenter, FragmentRegistrationInfoBinding> { | |
| 22 | 19 | |
| 23 | 20 | |
| 24 | 21 | public static RegistrationInfoFragment newInstance() { |
| ... | ... | @@ -40,4 +37,14 @@ public class RegistrationInfoFragment extends MvpBindingFragment<RegistrationInf |
| 40 | 37 | public void commitInfo(){ |
| 41 | 38 | getPresenter().commitInfo(); |
| 42 | 39 | } |
| 40 | + | |
| 41 | + @Override | |
| 42 | + protected int getToolbarId() { | |
| 43 | + return R.id.topbar; | |
| 44 | + } | |
| 45 | + | |
| 46 | + @Override | |
| 47 | + public String getTitle() { | |
| 48 | + return "填写报名信息"; | |
| 49 | + } | |
| 43 | 50 | } | ... | ... |