| | |
| | | visible() |
| | | postDelayed({ |
| | | gone() |
| | | },3000) |
| | | },1500) |
| | | } |
| | | rv_list.getChildAt(adapter.position2).iv_result?.apply { |
| | | imageResource = R.mipmap.successs |
| | | visible() |
| | | postDelayed({ |
| | | gone() |
| | | },3000) |
| | | },1500) |
| | | } |
| | | tv_timer.postDelayed({ |
| | | if (list.filter { !it.isBack }.size == list.size){ //全部答对 |
| | |
| | | visible() |
| | | postDelayed({ |
| | | gone() |
| | | },3000) |
| | | },1500) |
| | | } |
| | | rv_list.getChildAt(adapter.position2).iv_result?.apply { |
| | | imageResource = R.mipmap.zhifushibai |
| | | visible() |
| | | postDelayed({ |
| | | gone() |
| | | },3000) |
| | | },1500) |
| | | } |
| | | } |
| | | } |
| | |
| | | tab_bar.currentTab = currentDay-1 |
| | | view_pager.offscreenPageLimit = day |
| | | //设置不可点击的day |
| | | // (day until 6).forEach { |
| | | // tab_bar.getTitleView(it).isEnabled = false |
| | | // } |
| | | (day until 6).forEach { |
| | | tab_bar.getTitleView(it).isEnabled = false |
| | | } |
| | | if (tab_bar.currentTab == 0) |
| | | tab_bar.updateTabStyles() |
| | | } |
| | |
| | | errorPlaying = false |
| | | else if (rightPlaying){ |
| | | rightPlaying = false |
| | | val subject = data!!.subjectList[data!!.subjectList.map { it.correct } |
| | | .indexOf(voiceList[index])] //当前音频对应题目 |
| | | subject.completed = true |
| | | handler?.sendEmptyMessage(PLAY_VOICE) |
| | | }else{ |
| | | cl_voice.translationX = 0f |
| | | cl_voice.translationY = 0f |
| | | cl_voice.layoutParams.width = dip(159) |
| | | cl_voice.layoutParams.height = dip(52) |
| | | cl_voice.requestLayout() |
| | | }else{ |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | ivResult.setImageResource(R.mipmap.successs) |
| | | act.handler?.sendEmptyMessage(act.PLAY_RIGHT) |
| | | act.rightCount++ |
| | | subject.completed = true |
| | | subject.right = true |
| | | act.transAnimation(view) |
| | | }else{ |
| | |
| | | <Transition |
| | | motion:constraintSetEnd="@+id/end" |
| | | motion:constraintSetStart="@id/start" |
| | | motion:duration="3000"> |
| | | motion:duration="2000"> |
| | | <KeyFrameSet> |
| | | <KeyAttribute motion:framePosition="10" |
| | | android:alpha="1" |