lmw
2024-06-17 f571288a24fcf10143dcc8015ffbbf38dbc0c614
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.dollearn.student.ui.home
 
import androidx.core.os.bundleOf
import cn.sinata.xldutils.fragment.BaseFragment
import com.dollearn.student.R
import kotlinx.android.synthetic.main.fragment_weekend.*
 
class WeekendFragment : BaseFragment() {
    override fun contentViewId() = R.layout.fragment_weekend
 
    private val day by lazy {
        arguments?.getInt("day")?:0
    }
    private val week by lazy {
        (requireActivity() as ScheduleActivity).week
    }
 
    override fun onFirstVisibleToUser() {
        if (day == 7){
            tv_name_1.text = "自主故事1—看图配音"
            tv_name_2.text = "自主故事2—框架记忆"
        }
    }
 
    companion object{
        fun newInstance(day:Int):WeekendFragment{
            val dailyFragment = WeekendFragment()
            dailyFragment.arguments = bundleOf("day" to day)
            return dailyFragment
        }
    }
}