| | |
| | | public class TrainFragment extends SupportFragment implements View.OnClickListener { |
| | | |
| | | private static final String TAG = TrainFragment.class.getSimpleName(); |
| | | private static final int REQUEST_CODE = 1000; |
| | | private static final String ALARM_ACTION_CODE = "com.anyun.alermbroadcast"; |
| | | |
| | | public static SupportFragment newInstance() { |
| | | return new TrainFragment(); |
| | | } |
| | | |
| | | private RelativeLayout relativeLayout;//场考还是路考 |
| | | |
| | | private int exam_type = 2;//2 场地;3 道路,模拟夜考;4 道路,实际夜考; |
| | | private ListView mListView; |
| | |
| | | if (appStatus != null){ |
| | | Log.i(TAG, "onChanged: "+appStatus.toString()); |
| | | iv_rtk_status.getDrawable().setLevel(appStatus.getRtk_connect_status()); |
| | | tv_work_platform.setText(getString(R.string.platform_status,ExamPlatformData.getInstance().getExamplatformStatusStr(appStatus.getWork_platform()))); |
| | | tv_work_platform.setText(getString(R.string.platform_status,ExamPlatformData.getInstance().getExamplatformStatusStr( |
| | | ExamPlatformData.getInstance().getExamplatformStatus() |
| | | ))); |
| | | tv_sat_num.setText(String.valueOf(appStatus.getSat_num()).length()==1?"0"+appStatus.getSat_num():String.valueOf(appStatus.getSat_num())); |
| | | tv_qf.setText(getResources().getStringArray(R.array.qf_status)[appStatus.getQf()]); |
| | | } |