摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/andr 阅读全文
posted @ 2021-10-10 19:50 偷一夜星光 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.按模拟器上返回键,实现对话框弹出“是否退出应用程序”,如果选择是,退出,选择否,不退出 package com.example.chap03; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.App 阅读全文
posted @ 2021-10-10 19:46 偷一夜星光 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个页面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 <?xml version="1.0" encoding="utf-8"?> <R 阅读全文
posted @ 2021-10-10 19:45 偷一夜星光 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. 2.九宫格 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.a 阅读全文
posted @ 2021-10-10 19:44 偷一夜星光 阅读(225) 评论(0) 推荐(0) 编辑