lmw
2024-08-01 a036ac0c6c8d87f36e68f88f05231c3be23fcc4b
修改bug
5个文件已修改
24 ■■■■ 已修改文件
app/src/main/java/com/dollearn/student/ui/home/MemoryActivity.kt 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/ScheduleActivity.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/SuperListenActivity.kt 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/adapter/GameAdapter.kt 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/xml/item_game_1_scene.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/MemoryActivity.kt
@@ -192,14 +192,14 @@
                    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){ //全部答对
@@ -214,14 +214,14 @@
                    visible()
                    postDelayed({
                        gone()
                    },3000)
                    },1500)
                }
                rv_list.getChildAt(adapter.position2).iv_result?.apply {
                    imageResource = R.mipmap.zhifushibai
                    visible()
                    postDelayed({
                        gone()
                    },3000)
                    },1500)
                }
            }
        }
app/src/main/java/com/dollearn/student/ui/home/ScheduleActivity.kt
@@ -51,9 +51,9 @@
        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()
    }
app/src/main/java/com/dollearn/student/ui/home/SuperListenActivity.kt
@@ -348,16 +348,13 @@
            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{
        }
    }
app/src/main/java/com/dollearn/student/ui/home/adapter/GameAdapter.kt
@@ -60,6 +60,7 @@
                ivResult.setImageResource(R.mipmap.successs)
                act.handler?.sendEmptyMessage(act.PLAY_RIGHT)
                act.rightCount++
                subject.completed = true
                subject.right = true
                act.transAnimation(view)
            }else{
app/src/main/res/xml/item_game_1_scene.xml
@@ -6,7 +6,7 @@
    <Transition
        motion:constraintSetEnd="@+id/end"
        motion:constraintSetStart="@id/start"
        motion:duration="3000">
        motion:duration="2000">
        <KeyFrameSet>
            <KeyAttribute motion:framePosition="10"
                android:alpha="1"