| | |
| | | super.onResume() |
| | | if (tab_bar.currentTab == 1) |
| | | EventBus.getDefault().post(EmptyEvent(Const.EventCode.CHANGE_COURSDATA)) |
| | | checkCompetition() |
| | | } |
| | | |
| | | private fun checkCompetition() { |
| | | HttpManager.getCompletedWorldCupTips().request(this,false){_,data-> |
| | | if (data?:0!=0){ |
| | | val competitionTipDialog = CompetitionTipDialog() |
| | | competitionTipDialog.showAllowingStateLoss(supportFragmentManager,"ct") |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun onDestroy() { |
| | |
| | | holder.setText(R.id.tv_name,data) |
| | | holder.bind<TextView>(R.id.tv_name).isSelected = position == checked |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | override fun initView() { |
| | | //todo test |
| | | et_phone.setText("18111223301") |
| | | et_code.setText("123456") |
| | | cb_rule.isChecked = true |
| | | // //todo test |
| | | // et_phone.setText("18111223301") |
| | | // et_code.setText("123456") |
| | | // cb_rule.isChecked = true |
| | | |
| | | bg_title.gone() |
| | | titleBar.gone() |
| | |
| | | android:gravity="center" |
| | | android:paddingVertical="19dp" |
| | | android:text="第一季" |
| | | android:textSize="18sp" |
| | | android:textColor="@color/selector_blue_grey"/> |
| | | <View |
| | | android:layout_width="match_parent" |