| | |
| | | import cn.sinata.xldutils.gone |
| | | import cn.sinata.xldutils.visible |
| | | import com.sinata.xqmuse.R |
| | | import com.sinata.xqmuse.ui.BGMSettingActivity |
| | | import com.sinata.xqmuse.ui.home.SearchActivity |
| | | import com.sinata.xqmuse.utils.Const |
| | | import com.sinata.xqmuse.utils.event.EmptyEvent |
| | | import kotlinx.android.synthetic.main.fragment_course.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.jetbrains.anko.support.v4.startActivity |
| | | import org.jetbrains.anko.textColorResource |
| | | |
| | | class CourseFragment : BaseFragment() { |
| | |
| | | override fun onPageScrollStateChanged(state: Int) { |
| | | } |
| | | }) |
| | | |
| | | iv_voice.setOnClickListener { |
| | | startActivity<BGMSettingActivity>() |
| | | } |
| | | iv_search.setOnClickListener { |
| | | startActivity<SearchActivity>("isCourse" to true) |
| | | } |
| | | } |
| | | |
| | | private fun checkTab(i: Int){ |
| | |
| | | cb_teacher.textColorResource = R.color.textColor99 |
| | | cb_teacher.setTextSize(TypedValue.COMPLEX_UNIT_SP,16f) |
| | | iv_tab_2.gone() |
| | | EventBus.getDefault().post(EmptyEvent(Const.EventCode.PAUSE_TEACHER_VIDEO)) |
| | | }else{ |
| | | cb_teacher.textColorResource = R.color.textColor |
| | | cb_teacher.setTextSize(TypedValue.COMPLEX_UNIT_SP,21f) |