android 信息驗證動畫效果

在這里插入圖片描述
layout_check_pro

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/parent"android:layout_width="wrap_content"android:layout_height="wrap_content"android:orientation="vertical"><ImageViewandroid:id="@+id/line"android:layout_width="@dimen/dp_2"android:layout_height="@dimen/dp_20"android:layout_marginStart="@dimen/dp_9"android:background="#D3D3D3" /><LinearLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:gravity="center_vertical"android:orientation="horizontal"><ImageViewandroid:id="@+id/iv_pro"android:layout_width="@dimen/dp_20"android:layout_height="@dimen/dp_20"android:src="@mipmap/icon_proc" /><TextViewandroid:id="@+id/tv_pro"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginStart="@dimen/dp_16"android:text="大額提現3000元稅款繳納成功"android:textColor="@color/_333333"android:textSize="@dimen/sp_14"android:textStyle="bold" /></LinearLayout>
</LinearLayout>

dialog_act_info_verify

<?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="match_parent"><ImageViewandroid:id="@+id/iv_bg"android:layout_width="@dimen/dp_280"android:layout_height="@dimen/dp_350"android:background="@mipmap/bg_info_verify"app:layout_constraintBottom_toBottomOf="parent"app:layout_constraintEnd_toEndOf="parent"app:layout_constraintStart_toStartOf="parent"app:layout_constraintTop_toTopOf="parent" /><LinearLayoutandroid:layout_width="@dimen/dp_244"android:layout_height="@dimen/dp_228"android:layout_marginBottom="@dimen/dp_18"android:gravity="center_horizontal"android:orientation="vertical"app:layout_constraintBottom_toBottomOf="@id/iv_bg"app:layout_constraintEnd_toEndOf="@id/iv_bg"app:layout_constraintStart_toStartOf="@id/iv_bg"><LinearLayoutandroid:layout_width="@dimen/dp_244"android:layout_height="@dimen/dp_228"android:layout_marginTop="@dimen/dp_20"android:orientation="vertical"android:paddingStart="@dimen/dp_22"><includeandroid:id="@+id/ll_pro1"layout="@layout/layout_check_pro" /><includeandroid:id="@+id/ll_pro2"layout="@layout/layout_check_pro" /><includeandroid:id="@+id/ll_pro3"layout="@layout/layout_check_pro" /><includeandroid:id="@+id/ll_pro4"layout="@layout/layout_check_pro" /><includeandroid:id="@+id/ll_pro5"layout="@layout/layout_check_pro" /></LinearLayout></LinearLayout></androidx.constraintlayout.widget.ConstraintLayout>
package com.zhe.song.wo.will.zgwh.dialogimport android.content.Context
import android.view.LayoutInflater
import androidx.core.graphics.toColorInt
import com.zhe.song.wo.will.zgwh.R
import com.zhe.song.wo.will.zgwh.constans.DialogCon
import com.zhe.song.wo.will.zgwh.databinding.DialogActInfoVerifyBinding
import com.zhe.song.wo.will.zgwh.databinding.LayoutCheckProBinding
import com.zhe.song.wo.will.zgwh.spf.SPFUserInfo
import com.zhe.song.wo.will.zgwh.utils.animationRotate
import com.zhe.song.wo.will.zgwh.utils.gone
import com.zhe.song.wo.will.zgwh.utils.hide
import com.zhe.song.wo.will.zgwh.utils.show
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch/*** 個人信息驗證表格* @author zph* @date 2025/07/15* @constructor 創建DialogActInfoVerify* @param context 語境*/
class DialogActInfoVerify(context: Context) : DialogBase<DialogActInfoVerifyBinding>(context) {override fun postDismiss() {iDialogActionListener?.onDialogActionListener(DialogCon.DIALOG_信息驗證)}/*** 后續連續登錄X天,且(6-x)*10關;提現條件為5-X天,且每天過(6-x)*10關;* 直到條件為:在登錄0天,且過60關,即可進入第七個檔位*/override fun postShow() {SPFUserInfo.withDrawalState = truevar day = SPFUserInfo.needLoginDayif (day <= 0) {day = 0SPFUserInfo.wxBannerLevel8 = 1}val needLevel = 60 - (day * 10)if (SPFUserInfo.needGameLevel == 0) {SPFUserInfo.needGameLevel = SPFUserInfo.gameLevel + needLevel}val finishLevel = SPFUserInfo.needGameLevel - SPFUserInfo.gameLevelviewBinding.llPro1.line.gone()viewBinding.llPro1.parent.hide()viewBinding.llPro2.parent.hide()viewBinding.llPro3.parent.hide()viewBinding.llPro4.parent.hide()viewBinding.llPro5.parent.hide()coroutineScope.launch {loadLayout(viewBinding.llPro1, "登陸驗證中...")delay(1500)loadLayoutSucccess(viewBinding.llPro1, "需要再登錄(${6 - day}/6)天")loadLayout(viewBinding.llPro2, "網絡環境驗證中...")delay(1500)loadLayoutSucccess(viewBinding.llPro2, "網絡環境安全驗證通過")loadLayout(viewBinding.llPro3, "游戲行為驗證中...")delay(1500)loadLayoutSucccess(viewBinding.llPro3, "游戲外掛行為驗證通過")loadLayout(viewBinding.llPro4, "小助手解鎖驗證中...")delay(1500)loadLayoutSucccess(viewBinding.llPro4, "小助手解鎖數量(${SPFUserInfo.assistantId})")loadLayout(viewBinding.llPro5, "闖關關卡驗證中...")delay(1500)if (day == 0) {loadLayoutError(viewBinding.llPro5, "今日需要通過最后一關")} else {if (finishLevel <= 0) {loadLayoutSucccess(viewBinding.llPro5, "今日闖關已完成")} else {loadLayoutError(viewBinding.llPro5, "今日需要通過${needLevel - finishLevel}/${needLevel}關")}}delay(3000)dismiss()}}fun loadLayout(llPro: LayoutCheckProBinding, str: String) {llPro.parent.show()llPro.line.setBackgroundColor("#D3D3D3".toColorInt())llPro.ivPro.setImageResource(R.mipmap.icon_proc)llPro.ivPro.animationRotate()llPro.tvPro.setTextColor("#999999".toColorInt())llPro.tvPro.text = str}fun loadLayoutSucccess(llPro: LayoutCheckProBinding, str: String) {llPro.line.setBackgroundColor("#20C403".toColorInt())llPro.ivPro.clearAnimation()llPro.ivPro.setImageResource(R.mipmap.icon_suc)llPro.tvPro.setTextColor("#333333".toColorInt())llPro.tvPro.text = str}fun loadLayoutError(llPro: LayoutCheckProBinding, str: String) {llPro.line.setBackgroundColor("#FF0000".toColorInt())llPro.ivPro.clearAnimation()llPro.ivPro.setImageResource(R.mipmap.icon_error)llPro.tvPro.setTextColor("#FF0000".toColorInt())llPro.tvPro.text = str}override fun createViewBinding(): DialogActInfoVerifyBinding {return DialogActInfoVerifyBinding.inflate(LayoutInflater.from(context))}}

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/89787.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/89787.shtml
英文地址,請注明出處:http://en.pswp.cn/web/89787.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

【iOS】繼承鏈

文章目錄前言什么是繼承鏈OC中的根類關于NSProxy關鍵作用1.方法查找與動態綁定2. 消息轉發3. **類型判斷與多態**繼承鏈的底層實現元類的繼承鏈總結前言 在objective-c中&#xff0c;繼承鏈是類與類之間通過父類&#xff08;Superclass&#xff09;關系形成的一層層繼承結構&am…

論文閱讀:Instruct BLIP (2023.5)

文章目錄InstructBLIP&#xff1a;邁向通用視覺語言模型的指令微調研究總結一、研究背景與目標二、核心方法數據構建與劃分模型架構訓練策略三、實驗結果零樣本性能消融實驗下游任務微調定性分析可視化結果展示四、結論與貢獻InstructBLIP&#xff1a;邁向通用視覺語言模型的指…

Elasticsearch+Logstash+Filebeat+Kibana部署【7.1.1版本】

目錄 一、準備階段 二、實驗階段 1.配置kibana主機 2.配置elasticsearch主機 3.配置logstash主機 4.配置/etc/filebeat/filebeat.yml 三、驗證 1.開啟Filebeat 2.在logstash查看 3.瀏覽器訪問kibana 一、準備階段 1.準備四臺主機kibana、es、logstash、filebeat 2.在…

Vue開發前端報錯:‘vue-cli-service‘ 不是內部或外部命令解決方案

1.Bug: 最近調試一個現有的Vue前端代碼&#xff0c;發現如下錯誤&#xff1a; vue-cli-service’ 不是內部或外部命令&#xff0c;也不是可運行的程序 或批處理文件。 2.Bug原因&#xff1a; 導入的工程缺少依賴包&#xff1a;即缺少node_modules文件夾 3.解決方案&#xff1…

AI生態,釘釘再「出招」

如果說之前釘釘的AI生態加持更多的圍繞資源和商業的底層助力&#xff0c;那么如今這種加持則是向更深層次進化&#xff0c;即真正的AI模型訓練能力加持&#xff0c;為垂類大模型創業者提供全方位的助力&#xff0c;提高創業成功率和模型產品商業化確定性。作者|皮爺出品|產業家…

XSS GAME靶場

要求用戶不參與&#xff0c;觸發alert(1337) 目錄 Ma Spaghet! Jefff Ugandan Knuckles Ricardo Milos Ah Thats Hawt Ligma Mafia Ok, Boomer Exmaple 1 - Create Example 2 - Overwrite Example 3 - Overwrite2 toString Ma Spaghet! <h2 id"spaghet&qu…

Unity學習筆記(五)——3DRPG游戲(2)

添加更多的敵人 編輯EnemyController&#xff0c;解決報錯導致敵人無法注冊觀察者模式&#xff0c;從而無法執行敵人慶祝動畫 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public enum EnemyStatus { GUARD,PATROL…

2025測繪程序設計國賽實戰:一輪終章 | 單向后方交會C#實現

前言本文是小編對六道國賽試題中的最后一個試題&#xff0c;單向后方交會的一篇學習日志。本文的整體架構&#xff0c;依舊首先拿訓練數據跟大家介紹本題涉及到的數據的屬性含義&#xff0c;涉及到算法的原理、執行流程和終極目的。然后附上小編用C#來實現的程序&#xff0c;從…

基于Echarts的氣象數據可視化網站系統的設計與實現(Python版)

本系統旨在構建一個基于Echarts的氣象數據可視化系統&#xff0c;本系統能夠從中國天氣網爬取實時天氣數據&#xff0c;并進行存儲、分析和可視化展示。用戶可以通過網頁界面查看不同地區的天氣情況&#xff0c;以及歷史天氣數據的變化趨勢。 技術棧&#xff1a;Python語言、My…

HarmonyOS 啟動提速秘籍:懶加載全鏈路實戰解析

摘要 隨著移動應用功能越來越復雜、界面越來越豐富&#xff0c;應用啟動慢、內存占用高等問題也越來越普遍。特別是在 HarmonyOS NEXT 應用開發中&#xff0c;如果不加優化&#xff0c;用戶打開頁面時可能要等好幾秒&#xff0c;體驗就很差了。 懶加載&#xff08;Lazy Loading…

全新安裝Proxmox VE啟動時卡在Loading initial ramdisk

原因&#xff1a; 使用了Ventoy啟動盤裝載 Proxmox ISO 文件安裝。 要用Ventoy優盤啟動&#xff0c;選擇Advance Option里的Rescue Boot&#xff0c; 修改文件/etc/default/grub.d/installer.cfg&#xff0c;刪除rdinit/vtoy/vtoy運行 update-grub 更新grub配置&#xff0c;重啟…

【Java項目安全基石】登錄認證實戰:Session/Token/JWT用戶校驗機制深度解析

目錄 1.前言 2.正文 2.1Cookie—Session機制 2.1.1核心原理圖解&#xff1a; 2.1.2四步核心流程&#xff1a; 2.1.3存儲架構對比 2.1.4集群部署方案&#xff08;Spring Session Redis&#xff09; 2.2Token令牌 2.2.1核心原理圖解&#xff1a; 2.2.2四步核心流程&am…

融合優勢:SIP 廣播對講聯動華為會議 全場景溝通響應提速?

SIP 廣播對講與華為視頻會議融合解決方案&#xff0c;是基于 SIP 協議將廣播對講系統與華為視頻會議系統進行整合&#xff0c;實現通信資源共享與業務流程聯動&#xff0c;可提升應急響應效率與溝通協作能力。融合原理&#xff1a;SIP 是一種基于文本的應用層協議&#xff0c;具…

Milvus Dify 學習筆記

目錄 docker方式&#xff1a; 模式一&#xff1a;Milvus Lite linux docker方式&#xff1a; 下載yml文件&#xff0c; https://github.com/milvus-io/milvus/releases docker啟動&#xff1a; docker compose up -d from pymilvus import connections connections.conne…

汽車ECU控制器通信架構

我是穿拖鞋的漢子,魔都中堅持長期主義的汽車電子工程師。 老規矩,分享一段喜歡的文字,避免自己成為高知識低文化的工程師: 做到欲望極簡,了解自己的真實欲望,不受外在潮流的影響,不盲從,不跟風。把自己的精力全部用在自己。一是去掉多余,凡事找規律,基礎是誠信;二是…

【Linux】基本指令(入門篇)(上)

目錄 前言 1.目錄操作指令 1.1指令 1.2理論 1.2.1文件 1.2.2目錄與路徑 2.文件操作指令 2.1指令 2.2理論 2.2.1輸出與輸入 2.2.2一切皆文件 前言 這是Linux學習下的第一篇文章&#xff0c;后續Linux的學習也會持續更新分享。 Linux的基本指令是使用Linux操作系統的基礎…

正向代理與反向代理理解

問&#xff1a; 應用a請求ng&#xff0c;然后ng根據不同請求路徑將請求轉發到不同的服務器&#xff0c;對于應用a來說這個ng是正向代理角色還是反向代理呢&#xff1f; 答&#xff1a; 在這個場景中&#xff0c;Nginx 扮演的是反向代理的角色&#xff0c;而不是正向代理。以下是…

【Kafka】深入理解 Kafka MirrorMaker2 - 實戰篇

文章目錄一、把“家伙事兒”都備齊二、部署其實很簡單三、配置 MirrorMaker2四、修改啟動腳本五、集群啟動與驗證六、這集群“結實”嗎&#xff1f;聊聊它的高可用它沒有“大腦”&#xff0c;但活得很好極限測試&#xff1a;干掉兩個節點會怎樣&#xff1f;寫在最后最近在跟 Ka…

借助AI學習開源代碼git0.7之四update-cache

借助AI學習開源代碼git0.7之四update-cache update-cache.c 主要負責對索引&#xff08;index&#xff09;&#xff0c;也即緩存&#xff08;cache&#xff09;&#xff0c;進行增、刪、改操作。現在的高層命令 git add 的部分核心功能就是由這個代碼實現的。 核心功能 該程序的…

【48】MFC入門到精通——MFC 文件讀寫總結 CFile、CStdioFile、CFileDialog

文章目錄1 打開文件1.2 打開文件模式總結2 常用函數2.1 寫文件2.2 讀文件2.3 獲取文件長度3. 文件打開讀寫實力3.1 寫文件 覆蓋寫3.2 文尾追加寫3.3 換行寫4 文件對話框 CFileDialog4.2 文件對話框實例5 CStdioFile 類 讀寫CStingMFC提供了一個文件操作的基類CFile&#xff0c;…