其它总结

弹出对话框,7秒倒计时,并高亮账号部分(注册时写的,现在已经不用了,记下来以备查看)

                new CountDownTimer(7000, 1000) {
                    public void onTick(long millisUntilFinished) {
                        long second = millisUntilFinished / 1000;
                        LogUtils.i(TAG, "seconds remaining: " + millisUntilFinished / 1000);
                        SpannableStringBuilder builder = new SpannableStringBuilder("注册成功!\n请牢记您的账号:  ");
                        int startAccount = builder.length();//高亮的开始位置
                        builder.append(account);
                        int endAccount = builder.length();//高亮的结束位置
                        builder.setSpan(new ForegroundColorSpan(Color.BLUE), startAccount, endAccount, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);//Color.parseColor("#FF4767C9")
                        builder.append("\n");
                        int startSecond = builder.length();//高亮的开始位置
                        builder.append(String.valueOf(second));
                        int endSecond = builder.length();//高亮的结束位置
                        builder.setSpan(new ForegroundColorSpan(Color.RED), startSecond, endSecond, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
                        builder.append("s 后跳转到登录界面");
                        //"注册成功,请牢记您的账号:"+account+"\n"+second+"s 后跳转到登录界面"
                        progressDialog.setMessage(builder);
                        //mDialog.setMessage(builder);
                    }

                    public void onFinish() {
                        if (progressDialog != null && progressDialog.isShowing()) {
                            progressDialog.dismiss();
                        }
                        Intent startIntent = new Intent(RegisterActivity.this, LoginActivity.class);
                        LogUtils.i(TAG, "注册成功  account=" + account);
                        startIntent.putExtra("account", account);
                        startActivity(startIntent);//倒计时5s时间到,跳转到登录界面
                        RegisterActivity.this.finish();
                    }
                }.start();

https://www.jianshu.com/p/03c161886f25 IM群聊消息的已读回执功能该怎么实现
http://www.xjishu.com/zhuanli/62/201710991410.html 一种IM软件群组聊天会话方法及装置与流程
https://weibo.com/ttarticle/p/show?id=2309634405577198469154 【网易实战解读】如何实现IM万人群聊?
http://docs-im.easemob.com/start/490integrationcases/20groupchatcase 群聊
https://www.cnblogs.com/imstudy/p/11350158.html 网易云信技术分享:IM中的万人群聊技术方案实践总结
https://www.cnblogs.com/imstudy/p/9803974.html 一套高可用、易伸缩、高并发的IM群聊架构方案设计实践
https://blog.csdn.net/qq_39207177/article/details/96279625 Tigase进行即时通讯的实现
https://blog.csdn.net/cdnight/article/details/85222028 xmpp即时通信开发—1、tigase源代码的编译—idea+postgresql+gradle
https://blog.csdn.net/yuruixin_china/article/details/76348812 使用Strophe.js基于xmpp服务实现即时通讯
https://blog.csdn.net/yuruixin_china/article/details/68927816 websocket实现聊天室等功能
https://blog.csdn.net/qq_36899469/article/details/78477217 如何用WebSocket实现一个简单的聊天室以及单聊功能
https://blog.csdn.net/moliyiran/article/details/86157676 通过 websocket 连接 openfire

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值