Commit 25996760 authored by 宋永孟's avatar 宋永孟

add 添加新测试类

parent d4bb7061
......@@ -73,6 +73,10 @@
android:name=".ui.comment.CommentTestActivity"
android:theme="@style/Transparent" />
<activity
android:name=".ui.alive.AliveTestActivity"
android:theme="@style/Transparent" />
<activity
android:name=".ui.ProtocolActivity"
android:theme="@style/Transparent" />
......
......@@ -117,7 +117,6 @@ class NewsContentApplication : YdBaseApplication() {
}
}),
XPageNode(NEWS_CONTENT, XPageNodePageType.NATIVE, object : XPageHandler {
override fun handler(params: Map<String, Any?>?) {
val intent = Intent()
......
package com.yidian.shenghuoquan.newscontent.ui
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import com.yidian.common.XRouterPathConstants.Companion.LOGIN_LIFE_CIRCLE
import com.yidian.common.base.BaseActivity
import com.yidian.shenghuoquan.newscontent.databinding.ActivityLoginBinding
import com.yidian.shenghuoquan.newscontent.ui.alive.AliveTestActivity
import com.yidian.shenghuoquan.newscontent.utils.CountDownTimerUtils
/**
......@@ -39,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>() {
}
viewBind.loginBtn.setOnClickListener {
Toast.makeText(this, "登录", Toast.LENGTH_SHORT).show()
startActivity(Intent(this@LoginLifeCircleActivity, AliveTestActivity::class.java))
}
}
}
\ No newline at end of file
package com.yidian.shenghuoquan.newscontent.ui.alive
import com.yidian.common.base.BaseActivity
import com.yidian.shenghuoquan.newscontent.databinding.ActivityAliveLayoutBinding
/**
* Author: sym
* Date: 2021/5/19 6:11 PM
* Describe:
*/
class AliveTestActivity : BaseActivity<ActivityAliveLayoutBinding>() {
override fun createViewBinding(): ActivityAliveLayoutBinding {
return ActivityAliveLayoutBinding.inflate(layoutInflater)
}
override fun getXPageName(): String {
return ""
}
}
\ No newline at end of file
<?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">
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="livenessHomeRingColor">#EAF2F6</color>
<color name="livenessHomeProcessBarColor">#38B0E8</color>
<color name="livenessHomeValidationFailProcessBarColor">#FF0000</color>
<color name="livenessHomeBackgroundColor">#FFFFFF</color>
<color name="livenessHomePromptColor">#666666</color>
<color name="livenessExitTitlePromptColor">#000000</color>
<color name="livenessExitLeftPromptColor">#0076FF</color>
<color name="livenessExitRightPromptColor">#0076FF</color>
<color name="livenessRetryTitlePromptColor">#000000</color>
<color name="livenessRetryLeftPromptColor">#0076FF</color>
<color name="livenessRetryRightPromptColor">#0076FF</color>
<color name="livenessGuideRemindTextColor">#414244</color>
<color name="livenessGuideReadColor">#414244</color>
<color name="livenessDetectButtonTextColor">#FFFFFF</color>
<color name="livenessDetectButtonSelectedBGColor">#6AA0F2</color>
<color name="livenessDetectButtonHighlightBGColor">#4389E2</color>
<color name="livenessDetectButtonNormalBGColor">#CFD6DD</color>
<color name="livenessHomeUpperInfoTextFontColor">#666666</color>
</resources>
<resources>
<dimen name="livenessHomePromptSize">20sp</dimen>
<dimen name="livenessExitTitlePromptSize">18sp</dimen>
<dimen name="livenessExitLeftPromptSize">18sp</dimen>
<dimen name="livenessExitRightPromptSize">18sp</dimen>
<dimen name="livenessRetryTitlePromptSize">18sp</dimen>
<dimen name="livenessRetryLeftPromptSize">18sp</dimen>
<dimen name="livenessRetryRightPromptSize">18sp</dimen>
<dimen name="livenessHomeUpperInfoTextFontSize">14sp</dimen>
</resources>
<resources>
<string name="livenessHomePromptFrontalFaceText">请让我看到您的正脸</string>
<string name="livenessHomePromptFaceEreaText">人脸有效面积太小</string>
<string name="livenessHomePromptBrighterText">请让光线再亮点</string>
<string name="livenessHomePromptDarkerText">请让光线再暗点</string>
<string name="livenessHomePromptCloserText">请再靠近一些</string>
<string name="livenessHomePromptFurtherText">请离屏幕远一些</string>
<string name="livenessHomePromptNoBacklightingText">请避免侧光或背光</string>
<string name="livenessHomePromptFrontalFaceInBoundingBoxText">请将正脸置于取景框内</string>
<string name="livenessHomePromptNoEyesOcclusionText">请勿遮挡眼睛</string>
<string name="livenessHomePromptNoMouthOcclusionText">请勿遮挡嘴巴</string>
<string name="livenessHomePromptStayStillText">很好,请保持不动</string>
<string name="livenessHomePromptWaitText">验证中,请稍候</string>
<string name="livenessHomePromptShakeHeadText">请向左或向右缓慢转头</string>
<string name="livenessHomePromptNodText"> 请缓慢点头 </string>
<string name="livenessHomePromptOpenMouthText"> 请张嘴 </string>
<string name="livenessHomePromptBlinkText"> 请眨眼 </string>
<string name="livenessExitTitlePromptText">确认退出吗</string>
<string name="livenessExitLeftPromptText">取消</string>
<string name="livenessExitRightPromptText">确认</string>
<string name="livenessRetryLeftPromptText">重新验证</string>
<string name="livenessRetryRightPromptText">结束验证</string>
<string name="livenessHomePromptVerticalText">请您拿起手机,保持手机垂直</string>
<string name="livenessHomePromptTooBrightText">光线过亮,请到更暗的环境中验证</string>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment