摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 package com.example.myapplication; import android.net.Uri; import android.os.Bundle; import android.app.Act 阅读全文
posted @ 2021-10-09 15:47 计算机1903赵晨辉 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.android_924; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; impo 阅读全文
posted @ 2021-10-09 15:45 计算机1903赵晨辉 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button <?xml version="1.0" encoding="utf-8"?> <androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com 阅读全文
posted @ 2021-10-09 15:44 计算机1903赵晨辉 阅读(21) 评论(0) 推荐(0) 编辑