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
|
}
|
}
|
}
|