| | |
| | | import kotlinx.android.synthetic.main.fragment_teacher.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.greenrobot.eventbus.Subscribe |
| | | import org.jetbrains.anko.backgroundColor |
| | | import xyz.doikki.videocontroller.StandardVideoController |
| | | |
| | | class TeacherFragment : BaseFragment() { |
| | |
| | | settings.layoutAlgorithm = WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING |
| | | webView.webChromeClient = object : WebChromeClient() {} |
| | | webView.webViewClient = object : WebViewClient() {} |
| | | webView.backgroundColor = 0 |
| | | webView.background.alpha = 0 |
| | | rv_course.layoutManager = GridLayoutManager(requireContext(),2) |
| | | rv_course.adapter = adapter |
| | | getData() |