| | |
| | | |
| | | import androidx.annotation.Nullable; |
| | | |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.lang.reflect.Method; |
| | | |
| | | import me.yokeyword.fragmentation.SupportFragment; |
| | | import me.yokeyword.fragmentation.anim.DefaultNoAnimator; |
| | | import me.yokeyword.fragmentation.anim.FragmentAnimator; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.fragment.BaseSettingFragment; |
| | | import safeluck.drive.evaluation.fragment.rulefragments.FragmentSetting0; |
| | | import safeluck.drive.evaluation.fragment.rulefragments.FragmentSetting1; |
| | | |
| | | /** |
| | | * Created by YoKeyword on 16/2/9. |
| | |
| | | private TextView mTvContent; |
| | | private Button mBtnNext; |
| | | |
| | | |
| | | private int currPos = 0; |
| | | private String mMenu; |
| | | |
| | | public static ContentFragment newInstance(String menu) { |
| | |
| | | } |
| | | switch (mMenu){ |
| | | case "档位相关设置": |
| | | currPos = 0; |
| | | |
| | | loadRootFragment(R.id.fl_content_container, FragmentSetting0 .newInstance(String.valueOf(currPos)),false,false ); |
| | | break; |
| | | case "常用参数设置": |
| | | currPos = 1; |
| | | loadRootFragment(R.id.fl_content_container, FragmentSetting1.newInstance(String.valueOf(currPos)),false,false ); |
| | | break; |
| | | case "通用评判设置": |
| | | currPos = 2; |
| | | break; |
| | | case "上车起步设置": |
| | | break; |
| | |
| | | return view; |
| | | } |
| | | |
| | | private void initView(View view) { |
| | | private void initView(View view) { |
| | | // mTvContent = (TextView) view.findViewById(R.id.tv_content); |
| | | |
| | | |