|
@@ -0,0 +1,44 @@
|
|
|
+package com.swago.baseswago.dialog
|
|
|
+
|
|
|
+import android.content.Intent
|
|
|
+import android.os.Bundle
|
|
|
+import android.view.Gravity
|
|
|
+import android.view.View
|
|
|
+import android.view.View.OnClickListener
|
|
|
+import android.webkit.WebViewClient
|
|
|
+import com.alibaba.android.arouter.launcher.ARouter
|
|
|
+import com.swago.baseswago.constant.ARouteConstant
|
|
|
+import com.swago.baseswago.databinding.DialogCloseAccountBinding
|
|
|
+import com.swago.baseswago.databinding.DialogInviteBindingBinding
|
|
|
+import com.swago.baseswago.databinding.DialogTodayTrafficBinding
|
|
|
+import com.swago.baseswago.dialog.BaseXDFragment
|
|
|
+import com.swago.baseswago.util.SpUtil
|
|
|
+import com.swago.baseswago.util.UserInfo
|
|
|
+
|
|
|
+class TodayTrafficDialog : BaseXDFragment<DialogTodayTrafficBinding>() {
|
|
|
+
|
|
|
+ init {
|
|
|
+ setGravity(Gravity.CENTER)
|
|
|
+ setDimAmount(0.5f)
|
|
|
+ setCanCancel(false)
|
|
|
+ }
|
|
|
+
|
|
|
+ companion object {
|
|
|
+ fun newInstance(): TodayTrafficDialog {
|
|
|
+ val args = Bundle()
|
|
|
+ val fragment = TodayTrafficDialog()
|
|
|
+ fragment.arguments = args
|
|
|
+ return fragment
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun initOther() {
|
|
|
+ binding.webview.settings.javaScriptEnabled = true
|
|
|
+ binding.webview.webViewClient = WebViewClient()
|
|
|
+ binding.webview.loadUrl("https://www.baidu.com")
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun initLiveData() {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|