wfjun 发表于 2016-11-22 16:15:17

启动页AlertDialog弹窗代码

本帖最后由 wfjun 于 2016-11-22 16:20 编辑

.启动页AlertDialog弹窗代码
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v1, "输入内容1"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "输入内容2"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "输入内容3"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;



http://p1.bqimg.com/544629/6319d0bc39ac55cd.png


附件下载地址:点击下载

敖弑神 发表于 2016-11-24 14:34:11

厉害厉害了我的哥,如果有自动跳转就好啦
页: [1]
查看完整版本: 启动页AlertDialog弹窗代码