集成定位服务
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.cuspop
|
||||
|
||||
import android.Manifest
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.view.View
|
||||
import android.widget.Toast
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import android.widget.TextView
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.arpa.hndahesudintocctmsdriver.util.alert.ToastUtil
|
||||
import com.dahe.mylibrary.utils.ToastUtils
|
||||
import com.lxj.xpopup.core.CenterPopupView
|
||||
import com.lxj.xpopup.util.XPermission
|
||||
import com.permissionx.guolindev.PermissionX
|
||||
import kotlinx.android.synthetic.main.load.view.*
|
||||
import kotlinx.android.synthetic.main.pop_message_center.view.*
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@@ -38,9 +30,14 @@ class MessagePop(context: Context) : CenterPopupView(context), View.OnClickListe
|
||||
}
|
||||
|
||||
override fun getImplLayoutId() = R.layout.pop_message_center
|
||||
|
||||
private lateinit var tvPhone : TextView
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
val tvCancel = findViewById<View>(R.id.tvCancel) as TextView
|
||||
val tvOk = findViewById<View>(R.id.tvOk) as TextView
|
||||
tvPhone = findViewById<View>(R.id.tvPhone) as TextView
|
||||
val tvContent = findViewById<View>(R.id.tvContent) as TextView
|
||||
val tvMessage2 = findViewById<View>(R.id.tvMessage2) as TextView
|
||||
tvCancel.setOnClickListener(this)
|
||||
tvOk.setOnClickListener(this)
|
||||
tvPhone.setOnClickListener(this)
|
||||
|
||||
@@ -2,11 +2,9 @@ package com.arpa.hndahesudintocctmsdriver.cuspop
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
import android.widget.TextView
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity
|
||||
import com.lxj.xpopup.core.CenterPopupView
|
||||
import kotlinx.android.synthetic.main.pop_sim_center.view.*
|
||||
import org.bouncycastle.jcajce.provider.symmetric.Rijndael
|
||||
|
||||
|
||||
/**
|
||||
@@ -33,6 +31,10 @@ class SimCenterPop(context: Context) : CenterPopupView(context), View.OnClickLis
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
val tvCancel = findViewById<View>(R.id.tvCancel) as TextView
|
||||
val tvOk = findViewById<View>(R.id.tvOk) as TextView
|
||||
val tvContent = findViewById<View>(R.id.tvContent) as TextView
|
||||
|
||||
tvCancel.text = titleLeft
|
||||
tvOk.text = titleReft
|
||||
tvCancel.setOnClickListener(this)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.cuspop
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
import android.widget.TextView
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.lxj.xpopup.core.PositionPopupView
|
||||
import com.lxj.xpopup.enums.DragOrientation
|
||||
import kotlinx.android.synthetic.main.popup_qq_msg.view.tvMessage
|
||||
import kotlinx.android.synthetic.main.popup_qq_msg.view.tvTitle
|
||||
|
||||
/**
|
||||
* Description: 自定义自由定位Position弹窗
|
||||
@@ -30,6 +30,9 @@ class TopMsgPopup(context: Context,title:String, message: String) : PositionPopu
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
val tvMessage = findViewById<View>(R.id.tvMessage) as TextView
|
||||
val tvTitle = findViewById<View>(R.id.tvTitle) as TextView
|
||||
|
||||
tvMessage.text = message
|
||||
tvTitle.text = title
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user