中建365
parent
6ec8f7aa22
commit
67660c8782
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="1.8" />
|
||||
<bytecodeTargetLevel target="11" />
|
||||
</component>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.6.21" />
|
||||
<option name="version" value="1.7.10" />
|
||||
</component>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,13 +0,0 @@
|
||||
package com.zj365.dc
|
||||
|
||||
import android.app.Activity
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
||||
d:
|
||||
c
|
||||
class MainActivity : Activity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
}
|
||||
}
|
@ -0,0 +1,330 @@
|
||||
package com.zj365.dc.activity
|
||||
|
||||
import android.content.Intent
|
||||
import android.graphics.Color
|
||||
import android.text.*
|
||||
import android.text.method.HideReturnsTransformationMethod
|
||||
import android.text.method.PasswordTransformationMethod
|
||||
import android.text.style.ClickableSpan
|
||||
import android.view.View
|
||||
import android.widget.TextView
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
import com.alibaba.android.arouter.facade.annotation.Route
|
||||
import com.google.gson.Gson
|
||||
import com.tamsiree.rxkit.RxKeyboardTool
|
||||
import com.tencent.qcloud.tuikit.tuichat.util.PermissionHelper
|
||||
import com.xty.base.act.BaseVmAct
|
||||
import com.xty.common.Const
|
||||
import com.xty.common.LogUtils
|
||||
import com.xty.common.MyLinkedMovementMethod
|
||||
import com.xty.common.TimeSelect
|
||||
import com.xty.common.arouter.ARouterUrl
|
||||
import com.xty.common.arouter.RouteManager
|
||||
import com.xty.common.util.CommonToastUtils
|
||||
import com.xty.common.xqr_code.XQRCodeAct
|
||||
|
||||
import com.xuexiang.xqrcode.XQRCode
|
||||
import com.zj365.dc.R
|
||||
import com.zj365.dc.databinding.ActRegisterBinding
|
||||
import com.zj365.dc.model.SimpleInfoBean
|
||||
import com.zj365.dc.vm.RegisterVm
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
@Route(path = ARouterUrl.REGIST_ACT)
|
||||
class RegisterAct : BaseVmAct<RegisterVm>() {
|
||||
|
||||
val binding by lazy { ActRegisterBinding.inflate(layoutInflater) }
|
||||
override fun setLayout() = binding.root
|
||||
|
||||
val timeLive by lazy { MutableLiveData<String>() }
|
||||
private var timeNow = Const.timeBack
|
||||
private var timer: Timer? = null
|
||||
private val USER_AGREEMENT = 10000
|
||||
private val PRIVACY = 10001
|
||||
private var isAgreement = false
|
||||
private var isPrivacy = false
|
||||
private var birthdayType = 1
|
||||
private val timeSelect by lazy { TimeSelect(this) {} }
|
||||
var bean: SimpleInfoBean? = null
|
||||
|
||||
override fun initData() {
|
||||
super.initData()
|
||||
isDarkBar = true
|
||||
// bean=intent.extras!!.getSerializable("bean") as SimpleInfoBean
|
||||
}
|
||||
|
||||
override fun initView() {
|
||||
super.initView()
|
||||
timeSelect.startDate.set(1922, 0, 1)
|
||||
getTextWatch(binding.mAccount)
|
||||
getTextWatch(binding.mCode)
|
||||
getTextWatch(binding.mPsw)
|
||||
binding.mRegister.isSelected = false
|
||||
binding.mRegister.isEnabled = false
|
||||
binding.mTvCode.apply {
|
||||
isSelected = true
|
||||
setOnClickListener {
|
||||
val trim = binding.mAccount.text.toString().trim()
|
||||
if (trim.length == 11) {
|
||||
mViewModel.sendCode(trim)
|
||||
} else {
|
||||
CommonToastUtils.showToast(R.string.please_input_ok_phone)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
binding.tvReturn.setOnClickListener {
|
||||
finish()
|
||||
}
|
||||
|
||||
binding.mShow.setOnClickListener {
|
||||
if (it.isSelected) {
|
||||
binding.mPsw.transformationMethod = PasswordTransformationMethod.getInstance()
|
||||
} else {
|
||||
binding.mPsw.transformationMethod = HideReturnsTransformationMethod.getInstance();
|
||||
}
|
||||
it.isSelected = !it.isSelected
|
||||
var txtLength = binding.mPsw.text.toString().trim().length
|
||||
|
||||
binding.mPsw.setSelection(txtLength)
|
||||
}
|
||||
|
||||
binding.mRegister.setOnClickListener {
|
||||
RxKeyboardTool.hideSoftInput(this)
|
||||
if (!binding.mPrivate.isSelected) {
|
||||
CommonToastUtils.showToast(R.string.please_agree_all)
|
||||
return@setOnClickListener
|
||||
}
|
||||
var organCode = ""
|
||||
var invitePhone = ""
|
||||
|
||||
val phone = binding.mAccount.text.toString().trim()
|
||||
val code = binding.mCode.text.toString().trim()
|
||||
val pwd = binding.mPsw.text.toString().trim()
|
||||
mViewModel.register(
|
||||
phone,
|
||||
code,
|
||||
pwd,
|
||||
null,
|
||||
null,
|
||||
bean,
|
||||
invitePhone
|
||||
)
|
||||
}
|
||||
binding.mPrivate.setOnClickListener {
|
||||
if (!isAgreement) {
|
||||
CommonToastUtils.showToast(R.string.please_agree_user)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (!isPrivacy) {
|
||||
CommonToastUtils.showToast(R.string.please_agree_prv)
|
||||
return@setOnClickListener
|
||||
}
|
||||
it.isSelected = !it.isSelected
|
||||
}
|
||||
setPrv()
|
||||
}
|
||||
|
||||
/**
|
||||
* 隐私条款
|
||||
*/
|
||||
private fun setPrv() {
|
||||
var txtCol = ContextCompat.getColor(this, R.color.col_313)
|
||||
binding.mPrivate.movementMethod = MyLinkedMovementMethod().getInstance()
|
||||
var span = SpannableString(getString(R.string.private_info))
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
bundle.clear()
|
||||
bundle.putString("title", "用户协议")
|
||||
bundle.putInt("type", Const.AGREEMENT_1)
|
||||
RouteManager.goActRequest(
|
||||
ARouterUrl.RICH_TEXT,
|
||||
this@RegisterAct,
|
||||
USER_AGREEMENT,
|
||||
bundle
|
||||
)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
}
|
||||
|
||||
}, 2, 8, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
bundle.clear()
|
||||
bundle.putString("title", "隐私政策")
|
||||
bundle.putString("url", "https://auprty.com/app/static/app/privacy.html")
|
||||
RouteManager.goActRequest(
|
||||
ARouterUrl.AGREEMNT_READ_WEB_ACT,
|
||||
this@RegisterAct,
|
||||
PRIVACY,
|
||||
bundle
|
||||
)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
ds.clearShadowLayer()
|
||||
|
||||
}
|
||||
}, 9, 15, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
|
||||
binding.mPrivate.text = span
|
||||
binding.mPrivate.highlightColor = Color.TRANSPARENT
|
||||
}
|
||||
|
||||
private fun timeStart() {
|
||||
timer = Timer()
|
||||
var task = object : TimerTask() {
|
||||
override fun run() {
|
||||
timeLive.postValue("")
|
||||
}
|
||||
}
|
||||
timer!!.schedule(task, 0, 1000)
|
||||
}
|
||||
|
||||
override fun liveObserver() {
|
||||
mViewModel.registerVm.observe(this) {
|
||||
CommonToastUtils.showSucceedToast("注册成功")
|
||||
|
||||
setResult(RESULT_OK)
|
||||
finish()
|
||||
val phone = binding.mAccount.text.toString().trim()
|
||||
val password = binding.mPsw.text.toString().trim()
|
||||
bundle.clear()
|
||||
bundle.putString("phone", phone)
|
||||
bundle.putString("password", password)
|
||||
RouteManager.goAct(ARouterUrl.INFO_SIMPLE, bundle)
|
||||
}
|
||||
mViewModel.codeLive.observe(this) {
|
||||
timeStart()
|
||||
binding.mTvCode.apply {
|
||||
isEnabled = false
|
||||
isSelected = false
|
||||
}
|
||||
}
|
||||
timeLive.observe(this) {
|
||||
--timeNow
|
||||
if (timeNow > 0) {
|
||||
binding.mTvCode.text = "${timeNow}秒"
|
||||
} else {
|
||||
timer!!.cancel()
|
||||
binding.mTvCode.isSelected = true
|
||||
binding.mTvCode.isEnabled = true
|
||||
timeNow = Const.timeBack
|
||||
binding.mTvCode.text = getString(R.string.get_code)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
super.onActivityResult(requestCode, resultCode, data)
|
||||
if (resultCode == RESULT_OK) {
|
||||
when (requestCode) {
|
||||
USER_AGREEMENT -> {
|
||||
isAgreement = true
|
||||
if (!isPrivacy) {
|
||||
bundle.clear()
|
||||
bundle.putString("title", "隐私政策")
|
||||
bundle.putInt("type", Const.AGREEMENT_3)
|
||||
RouteManager.goActRequest(
|
||||
ARouterUrl.RICH_TEXT,
|
||||
this@RegisterAct,
|
||||
PRIVACY,
|
||||
bundle
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
PRIVACY -> {
|
||||
isPrivacy = true
|
||||
if (!isAgreement) {
|
||||
bundle.clear()
|
||||
bundle.putString("title", "用户协议")
|
||||
bundle.putInt("type", Const.AGREEMENT_1)
|
||||
RouteManager.goActRequest(
|
||||
ARouterUrl.RICH_TEXT,
|
||||
this@RegisterAct,
|
||||
USER_AGREEMENT,
|
||||
bundle
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
XQRCodeAct.QRCODE_AGREEMENT -> {/*
|
||||
when (data!!.getIntExtra(XQRCode.RESULT_TYPE, 0)) {
|
||||
XQRCode.RESULT_SUCCESS -> {
|
||||
try {
|
||||
val result = data.extras!!.getString(XQRCode.RESULT_DATA)
|
||||
LogUtils.d("扫描结果:$result")
|
||||
if (!result.isNullOrEmpty()) {
|
||||
val gson = Gson()
|
||||
//设置扫描结果
|
||||
binding.jigouId.setText(result)
|
||||
} else {
|
||||
CommonToastUtils.showToast("扫码失败,请重试...")
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
LogUtils.e("二维码扫描:$e")
|
||||
CommonToastUtils.showToast("请确认二维码是否正确!")
|
||||
}
|
||||
}
|
||||
|
||||
XQRCode.RESULT_FAILED -> {
|
||||
LogUtils.d("扫描失败")
|
||||
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getTextWatch(view: TextView) {
|
||||
var watcher = object : TextWatcher {
|
||||
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
|
||||
}
|
||||
|
||||
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
|
||||
}
|
||||
|
||||
override fun afterTextChanged(s: Editable?) {
|
||||
changeStatus()
|
||||
}
|
||||
}
|
||||
view.setTag(watcher)
|
||||
view.addTextChangedListener(watcher)
|
||||
}
|
||||
|
||||
fun changeStatus() {
|
||||
var phone = binding.mAccount.text.toString().trim()
|
||||
|
||||
var code = binding.mCode.text.toString().trim()
|
||||
|
||||
var pwd = binding.mPsw.text.toString().trim()
|
||||
|
||||
if (phone.isNotEmpty() && code.isNotEmpty() && pwd.isNotEmpty()) {
|
||||
binding.mRegister.isSelected = true
|
||||
binding.mRegister.isEnabled = true
|
||||
} else {
|
||||
binding.mRegister.isSelected = false
|
||||
binding.mRegister.isEnabled = false
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
if (timer != null) {
|
||||
timer!!.cancel()
|
||||
}
|
||||
}
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
package com.xty.healthuser.adapter
|
||||
package com.zj365.dc.adapter
|
||||
|
||||
|
||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder
|
||||
import com.xty.base.adapter.BaseAdapter
|
||||
import com.xty.healthuser.R
|
||||
import com.xty.network.model.DeviceBean
|
||||
import com.zj365.dc.R
|
||||
|
||||
class DeviceChoiceAdapter:BaseAdapter<DeviceBean>(R.layout.item_device_choice) {
|
||||
|
@ -0,0 +1,15 @@
|
||||
package com.zj365.dc.adapter
|
||||
|
||||
import android.widget.TextView
|
||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder
|
||||
import com.xty.base.adapter.BaseAdapter
|
||||
import com.xty.network.model.FamilyBean
|
||||
import com.zj365.dc.R
|
||||
|
||||
class FamilyAdapter(var position:Int=-1):BaseAdapter<FamilyBean>(R.layout.item_family_name) {
|
||||
override fun convert(holder: BaseViewHolder, item: FamilyBean) {
|
||||
holder.getView<TextView>(R.id.mName).isSelected = position==holder.layoutPosition
|
||||
holder.getView<TextView>(R.id.mIndiacator).isSelected = position==holder.layoutPosition
|
||||
holder.setText(R.id.mName,item.fCall).setTextColorRes(R.id.mName,if(position==holder.layoutPosition) R.color.col_02c else R.color.col_C7C)
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
package com.zj365.dc.adapter.holder;
|
||||
|
||||
data class HealthManageHolder(val type:Int,val desc:String)
|
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.adapter.holder;
|
||||
package com.zj365.dc.adapter.holder;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.model
|
||||
package com.zj365.dc.model
|
||||
|
||||
import com.xty.common.bracelet.YCBBlueConnectHelper
|
||||
|
@ -1,9 +1,9 @@
|
||||
package com.xty.healthuser.model
|
||||
package com.zj365.dc.model
|
||||
|
||||
import com.lifesense.android.ble.core.application.BleDeviceManager
|
||||
import com.lifesense.android.ble.core.application.model.enums.ConnectionState
|
||||
import com.lifesense.android.ble.core.valueobject.DeviceInfo
|
||||
import com.xty.health.act.binddevice.BlueUtil
|
||||
import com.zj365.health.act.binddevice.BlueUtil
|
||||
|
||||
class DeviceStateWrapper {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.model
|
||||
package com.zj365.dc.model
|
||||
|
||||
import java.io.Serializable
|
||||
|
@ -0,0 +1,7 @@
|
||||
package com.zj365.dc.vm
|
||||
|
||||
import com.xty.base.vm.BaseVm
|
||||
|
||||
class DeviceChoiceVm:BaseVm() {
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.vm
|
||||
package com.zj365.dc.vm
|
||||
|
||||
import com.xty.base.vm.BaseVm
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.xty.healthuser.weight
|
||||
package com.zj365.dc.weight
|
||||
|
||||
import android.content.Context
|
||||
import com.xty.base.dialog.BaseDialog
|
||||
import com.xty.healthuser.databinding.DialogSignAgainBinding
|
||||
import com.zj365.dc.databinding.DialogSignAgainBinding
|
||||
|
||||
class AgainSignDialog (context: Context, var cancel:()->Unit, var confirm:()->Unit,): BaseDialog(context) {
|
||||
val binding by lazy{ DialogSignAgainBinding.inflate(layoutInflater)}
|
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.weight
|
||||
package com.zj365.dc.weight
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Canvas
|
@ -0,0 +1,146 @@
|
||||
package com.zj365.dc.weight
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.text.SpannableString
|
||||
import android.text.Spanned
|
||||
import android.text.TextPaint
|
||||
import android.text.style.ClickableSpan
|
||||
import android.view.View
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.hjq.toast.ToastUtils
|
||||
import com.xty.base.dialog.BaseDialog
|
||||
import com.xty.common.Const
|
||||
import com.xty.common.MyLinkedMovementMethod
|
||||
import com.xty.common.arouter.ARouterUrl
|
||||
import com.xty.common.arouter.RouteManager
|
||||
import com.zj365.dc.R
|
||||
import com.zj365.dc.databinding.DialogPrevBinding
|
||||
|
||||
|
||||
class PrevDialog(context: Context, private var agree: () -> Unit, private var giveUp: () -> Unit) :
|
||||
BaseDialog(context) {
|
||||
val binding by lazy { DialogPrevBinding.inflate(layoutInflater) }
|
||||
override fun setLayout() = binding.root
|
||||
|
||||
override fun initView() {
|
||||
super.initView()
|
||||
setCanceledOnTouchOutside(false)
|
||||
setCancelable(false)
|
||||
percentHeight = 3 / 5f
|
||||
setDialogPadding(80, 0, 80, 80)
|
||||
|
||||
val txtCol = ContextCompat.getColor(context, R.color.col_009)
|
||||
binding.mContent.movementMethod = MyLinkedMovementMethod().getInstance()
|
||||
val string = context.getString(R.string.prev_content)
|
||||
val span = SpannableString(string)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.clear()
|
||||
bundle.putString("title", "用户协议")
|
||||
bundle.putInt("type", Const.AGREEMENT_1)
|
||||
RouteManager.goAct(ARouterUrl.RICH_TEXT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
}
|
||||
|
||||
}, 46, 52, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.putString("title", "隐私政策")
|
||||
bundle.putString("url", "https://auprty.com/app/static/app/privacy.html")
|
||||
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
ds.clearShadowLayer()
|
||||
|
||||
}
|
||||
}, 53, 59, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.putString("title", "安瑜健康 APP 权限列表")
|
||||
bundle.putString("url", "https://auprty.com/app/static/app/permission.html")
|
||||
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
ds.clearShadowLayer()
|
||||
|
||||
}
|
||||
}, 60, 75, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.clear()
|
||||
bundle.putString("title", "用户协议")
|
||||
bundle.putInt("type", Const.AGREEMENT_1)
|
||||
RouteManager.goAct(ARouterUrl.RICH_TEXT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
}
|
||||
|
||||
}, 85, 91, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.putString("title", "隐私政策")
|
||||
bundle.putString("url", "https://auprty.com/app/static/app/privacy.html")
|
||||
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
ds.clearShadowLayer()
|
||||
|
||||
}
|
||||
}, 92, 98, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
span.setSpan(object : ClickableSpan() {
|
||||
override fun onClick(widget: View) {
|
||||
val bundle = Bundle()
|
||||
bundle.putString("title", "安瑜健康 APP 权限列表")
|
||||
bundle.putString("url", "https://auprty.com/app/static/app/permission.html")
|
||||
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
|
||||
}
|
||||
|
||||
override fun updateDrawState(ds: TextPaint) {
|
||||
super.updateDrawState(ds)
|
||||
ds.color = txtCol
|
||||
ds.isUnderlineText = false
|
||||
ds.clearShadowLayer()
|
||||
|
||||
}
|
||||
}, 99, 114, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
|
||||
|
||||
binding.mContent.text = span
|
||||
binding.mContent.highlightColor = Color.TRANSPARENT
|
||||
binding.mClose.setOnClickListener {
|
||||
dismiss()
|
||||
giveUp.invoke()
|
||||
}
|
||||
binding.mAgree.setOnClickListener {
|
||||
dismiss()
|
||||
agree.invoke()
|
||||
}
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
package com.xty.healthuser.weight
|
||||
package com.zj365.dc.weight
|
||||
|
||||
import android.content.Context
|
||||
import android.text.Html
|
||||
import com.xty.base.dialog.BaseDialog
|
||||
import com.xty.healthuser.databinding.DialogWearBinding
|
||||
import com.zj365.dc.databinding.DialogWearBinding
|
||||
|
||||
class WearDialog(context: Context,var confirm:()->Unit) : BaseDialog(context) {
|
||||
val binding by lazy { DialogWearBinding.inflate(layoutInflater) }
|
@ -1,4 +1,4 @@
|
||||
package com.xty.healthuser.wxapi
|
||||
package com.zj365.dc.wxapi
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/col_02c" android:state_selected="true"/>
|
||||
<item android:color="@color/col_c7c" android:state_selected="false"/>
|
||||
|
||||
</selector>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:color="@color/col_02c" android:state_selected="true"/>
|
||||
<item android:color="@color/col_c7c" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@mipmap/icon_health_selected" android:state_selected="true"/>
|
||||
<item android:drawable="@mipmap/icon_health_unselected" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_home_selected" android:state_selected="true"/>
|
||||
<item android:drawable="@mipmap/icon_home_unselected" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@mipmap/icon_message_selected" android:state_selected="true"/>
|
||||
<item android:drawable="@mipmap/icon_message_unselected" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_shopping_selected" android:state_selected="true"/>
|
||||
<item android:drawable="@mipmap/icon_shopping_unselected" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_message_selected" android:state_selected="true"/>
|
||||
<item android:drawable="@mipmap/icon_message_unselected" android:state_selected="false"/>
|
||||
</selector>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
|
||||
<item android:drawable="@mipmap/ic_start_bg" />
|
||||
<!-- <item android:drawable="@mipmap/ic_welcome_txt"-->
|
||||
<!-- android:gravity="center"/>-->
|
||||
|
||||
</layer-list>
|
@ -0,0 +1,246 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingRight="@dimen/dp_20">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_return"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_54"
|
||||
android:drawableLeft="@mipmap/icon_black_return"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:gravity="center"
|
||||
android:text="返回"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_19"
|
||||
android:layout_marginTop="@dimen/dp_40"
|
||||
android:text="@string/login_log"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_24"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.androidkun.xtablayout.XTabLayout
|
||||
android:id="@+id/tab_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_marginLeft="@dimen/dp_19"
|
||||
android:layout_marginTop="@dimen/dp_67"
|
||||
android:background="@color/white"
|
||||
app:xTabMode="scrollable"
|
||||
app:xTabDisplayNum="5"
|
||||
app:xTabIndicatorColor="@color/col_02c"
|
||||
app:xTabIndicatorHeight="@dimen/dp_3"
|
||||
app:xTabIndicatorRoundY="@dimen/dp_3"
|
||||
app:xTabIndicatorWidth="@dimen/dp_21"
|
||||
app:xTabSelectedTextColor="@color/col_02c"
|
||||
app:xTabSelectedTextSize="@dimen/sp_15"
|
||||
app:xTabTextColor="@color/col_c7c"
|
||||
app:xTabTextSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mAccount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:hint="@string/please_input_phone"
|
||||
android:inputType="phone"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:singleLine="true"
|
||||
android:text=""
|
||||
android:textColor="@color/col_313"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mRelCode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mCode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@+id/mTvCode"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:hint="@string/please_input_code"
|
||||
android:inputType="number"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/col_313"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mTvCode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/selector_login_btn"
|
||||
android:layout_marginLeft="@dimen/dp_13"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:paddingRight="@dimen/dp_20"
|
||||
android:text="@string/get_code"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mRelPwd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:background="@drawable/shape_r25_eeeeee">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mPsw"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@+id/mShow"
|
||||
android:background="@null"
|
||||
android:hint="@string/please_input_password"
|
||||
android:inputType="textPassword"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:singleLine="true"
|
||||
android:text=""
|
||||
android:textColor="@color/col_313"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:textSize="@dimen/dp_16" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mShow"
|
||||
android:layout_width="@dimen/dp_48"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/selector_pwd" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mError"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="29dp"
|
||||
android:textColor="@color/col_e03"
|
||||
android:visibility="gone"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/seleck"
|
||||
android:layout_width="@dimen/dp_15"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:background="@drawable/selctor_check_sel"
|
||||
android:padding="@dimen/dp_10" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mPrivate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/sp_13"
|
||||
android:text="隐私条款"
|
||||
android:textColor="@color/col_c7c" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_72"
|
||||
android:layout_marginRight="@dimen/dp_10">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mLogin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/selector_login_btn"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_16"
|
||||
android:text="@string/sign_in"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_18"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mRegister"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/mLogin"
|
||||
android:layout_marginTop="@dimen/sp_20"
|
||||
android:text="新用户注册"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mForget"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/mLogin"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="@dimen/sp_20"
|
||||
android:text="@string/forget"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingRight="@dimen/dp_20">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_return"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="返回"
|
||||
android:gravity="center"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:drawableLeft="@mipmap/icon_black_return"
|
||||
android:textColor="@color/col_313"
|
||||
android:layout_marginTop="@dimen/dp_54"
|
||||
android:textSize="@dimen/sp_15"/>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mTvPswLogin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_45"
|
||||
android:text="@string/register"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_24"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mAccount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:hint="@string/please_input_phone"
|
||||
android:inputType="phone"
|
||||
android:layout_marginTop="@dimen/dp_62"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:textColor="@color/col_313"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/sp_13" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_26">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mCode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@+id/mTvCode"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:hint="@string/please_input_code"
|
||||
android:inputType="number"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:textColor="@color/col_313"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/sp_13" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mTvCode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dp_13"
|
||||
android:background="@drawable/selector_login_btn"
|
||||
android:paddingLeft="@dimen/dp_18"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingRight="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/get_code"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:id="@+id/mRelPwd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:layout_marginTop="@dimen/dp_30">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/mPsw"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_r25_eeeeee"
|
||||
android:hint="请输入6位密码"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_18"
|
||||
android:textColorHint="@color/col_c7c"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:textColor="@color/col_313"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/sp_13" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mShow"
|
||||
android:layout_width="@dimen/dp_48"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/selector_pwd" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mRegister"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/selector_login_btn"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_16"
|
||||
android:text="立即注册"
|
||||
android:textColor="@color/white"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_57"
|
||||
android:textSize="@dimen/sp_18" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mPrivate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:drawableLeft="@drawable/selctor_check_sel"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:gravity="center"
|
||||
android:text="隐私条款"
|
||||
android:textColor="@color/col_7c7"
|
||||
android:textSize="@dimen/sp_12"
|
||||
tools:ignore="UseCompatTextViewDrawableXml" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="提示:"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:layout_marginTop="@dimen/dp_102"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请绑定自己的手机号,平台将对您的手机号做保密隐私管理,仅用于必要服务沟通和用户绑定。"
|
||||
android:textColor="@color/col_7c7"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:layout_marginBottom="@dimen/dp_93"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/col_f1f"
|
||||
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
android:id="@+id/title"
|
||||
layout="@layout/title_white_bar" />
|
||||
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/mRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.scwang.smart.refresh.header.ClassicsHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/mRecycle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
android:layout_marginRight="@dimen/dp_10"
|
||||
|
||||
android:orientation="vertical"
|
||||
android:overScrollMode="never" />
|
||||
|
||||
|
||||
<com.scwang.smart.refresh.footer.ClassicsFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
@ -1,18 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/home_coordinatorLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
android:background="#F2F6F7">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
tools:context=".act.MainActivity">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/mVp2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/mBottom"/>
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/mBottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/white"
|
||||
android:theme="@style/myNavigationDrawerStyle"
|
||||
app:elevation="0dp"
|
||||
app:itemBackground="@null"
|
||||
app:itemTextColor="@color/bottom_nav_col"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:menu="@menu/bottom_nav_bar" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:id="@+id/gifImageVIew"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:layout_marginBottom="@dimen/dp_18"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/mBottom"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
@ -0,0 +1,173 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/dp_14"
|
||||
android:paddingRight="@dimen/dp_14">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llguide"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_ai_tongue_diagnosis"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon_ai_tongue_diagnosis"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="AI舌诊"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_ai_skin_measurement"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon__ai_skin_measurement"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="AI测肤"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_ai_confectioner"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon_ai_confectioner"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="AI糖医"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_mental_test"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon_mental_test"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="心理测试"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_cancer_screening"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon_cancer_screening"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="防癌筛查"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_diet_management"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@mipmap/bg_home_item"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_34"
|
||||
android:background="@mipmap/icon_diet_management"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="膳食管理"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="@dimen/dp_10"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/statusBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<!-- 下拉刷新控件 -->
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/mRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
app:srlAccentColor="@color/white">
|
||||
|
||||
<!-- 经典下拉头部 -->
|
||||
|
||||
|
||||
<com.scwang.smart.refresh.header.ClassicsHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:foregroundTint="@color/white"
|
||||
app:srlAccentColor="@color/white"
|
||||
app:srlPrimaryColor="@color/white" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- 头部信息 -->
|
||||
|
||||
<include
|
||||
android:id="@+id/mCom"
|
||||
layout="@layout/frag_health_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/mBannerCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_14"
|
||||
android:layout_marginTop="@dimen/dp_5"
|
||||
android:layout_marginRight="@dimen/dp_14"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
app:cardCornerRadius="@dimen/dp_5"
|
||||
app:cardElevation="@dimen/dp_0"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mCom">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/mBanner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_90"
|
||||
android:background="@drawable/shape_banner_bg"
|
||||
app:banner_indicator_normal_color="@color/col_298D0"
|
||||
app:banner_indicator_selected_color="@color/col_8D0"
|
||||
app:banner_infinite_loop="true"
|
||||
app:banner_loop_time="4000" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<include
|
||||
android:id="@+id/mChild_view"
|
||||
layout="@layout/child_healt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mBannerCard" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/mBannerCardTwo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_14"
|
||||
android:layout_marginTop="@dimen/dp_5"
|
||||
android:layout_marginRight="@dimen/dp_14"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
app:cardCornerRadius="@dimen/dp_5"
|
||||
app:cardElevation="@dimen/dp_0"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mChild_view">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/mBannerTwo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_90"
|
||||
android:background="@drawable/shape_banner_bg"
|
||||
app:banner_indicator_normal_color="@color/col_298D0"
|
||||
app:banner_indicator_selected_color="@color/col_8D0"
|
||||
app:banner_infinite_loop="true"
|
||||
app:banner_loop_time="4000" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/dp_16"
|
||||
android:paddingRight="@dimen/dp_16"
|
||||
android:paddingBottom="@dimen/dp_21"
|
||||
android:paddingTop="@dimen/dp_23"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mBannerCardTwo"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
<TextView
|
||||
android:drawableLeft="@drawable/shape_head_tip_new"
|
||||
android:drawablePadding="@dimen/dp_10"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/dp_12"
|
||||
android:text="@string/server_4"
|
||||
android:textColor="@color/col_515"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/dp_12"
|
||||
android:text="查看更多"
|
||||
android:textColor="@color/col_6B6"
|
||||
android:textSize="@dimen/sp_13"
|
||||
android:drawableRight="@mipmap/icon_arrow_left"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:drawablePadding="@dimen/dp_2"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/mRecycleNews"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:overScrollMode="never"
|
||||
android:paddingBottom="@dimen/dp_10" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/viewgroup"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:paddingBottom="@dimen/dp_15"
|
||||
android:paddingTop="@dimen/dp_40">
|
||||
<LinearLayout
|
||||
android:id="@+id/mHeaderLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
app:layout_constraintBottom_toTopOf="@+id/ll_home_about"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- 我的家人列表 -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/mRecycle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/dp_5" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mMsgLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="@dimen/dp_25">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mMsg"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_health_msg" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/mBadgeCard"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:visibility="gone"
|
||||
app:cardBackgroundColor="@color/col_f23"
|
||||
app:cardCornerRadius="@dimen/dp_10"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mBadge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/dp_12" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_home_about"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="@dimen/dp_14"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mHeaderLayout"
|
||||
app:layout_constraintLeft_toLeftOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_daily_benefit"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_45"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:background="@mipmap/icon_daily_benefit"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="每日福利"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="11dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_video_interview"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_45"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:background="@mipmap/icon__video_interview"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="视频问诊"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="11dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_health_records"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_45"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:background="@mipmap/icon__health_records"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="健康档案"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="11dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_health_code"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_45"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:background="@mipmap/icon__health_code"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="健康医典"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginTop="11dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<!-- 健康评估cardview -->
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_8round_white"
|
||||
android:layout_marginStart="@dimen/dp_14"
|
||||
android:layout_marginEnd="@dimen/dp_14"
|
||||
android:layout_marginBottom="@dimen/dp_12">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_device_icon"
|
||||
android:layout_width="@dimen/dp_63"
|
||||
android:layout_height="@dimen/dp_63"
|
||||
tools:src="@mipmap/ic_blutooth_watch" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_device_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_7"
|
||||
android:textSize="@dimen/sp_20"
|
||||
android:textColor="@color/col_313"
|
||||
android:textStyle="bold"
|
||||
tools:text="4G手表(A3)" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_144"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@mipmap/bg_xl"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivBg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/bg_xl"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_health_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_16"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mHealthIcon"
|
||||
android:layout_width="@dimen/dp_19"
|
||||
android:layout_height="@dimen/dp_19"
|
||||
tools:src="@mipmap/ic_xl" />
|
||||
<TextView
|
||||
android:id="@+id/mHealthName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_5"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textStyle="bold"
|
||||
tools:text="即可"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mHealthStatus"
|
||||
android:layout_width="@dimen/dp_30"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_12"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/ll_health_title"
|
||||
tools:src="@mipmap/ic_health_normal" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_17"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mHealthStatus">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mHealthInfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_3"
|
||||
android:textColor="@color/col_313"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textStyle="bold"
|
||||
tools:text="sdfsdg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCalorie"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/col_7c7"
|
||||
android:textSize="@dimen/sp_9"
|
||||
tools:text="sdfsdg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mHealthTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/col_7c7"
|
||||
android:textSize="@dimen/sp_9"
|
||||
tools:text="sdgasdg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mContentView"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:cardBackgroundColor="@color/white"
|
||||
app:cardCornerRadius="@dimen/dp_10"
|
||||
app:cardElevation="@dimen/dp_0"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:drawablePadding="@dimen/dp_10"
|
||||
android:textColor="@color/col_455"
|
||||
android:textSize="@dimen/dp_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mTvTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingRight="@dimen/dp_10"
|
||||
android:textColor="@color/col_919"
|
||||
android:textSize="@dimen/dp_14" />
|
||||
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@color/col_f1f" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:gravity="center_vertical"
|
||||
android:ellipsize="end"
|
||||
android:paddingLeft="@dimen/dp_10"
|
||||
android:paddingRight="@dimen/dp_10"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/col_B8B"
|
||||
android:textSize="@dimen/dp_14" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue