摘要: 1.创建3个界面 第一个界面有3个button <Button android:id="@+id/bu1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLe 阅读全文
posted @ 2021-10-07 21:39 不知名的怪物先生 阅读(33) 评论(0) 推荐(0)
摘要: 1.返回键实现对话框弹出是否退出应用程序 package com.example.chap5; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import and 阅读全文
posted @ 2021-10-07 21:17 不知名的怪物先生 阅读(49) 评论(0) 推荐(0)
摘要: 安卓安装图 1. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_1" andr 阅读全文
posted @ 2021-10-07 20:45 不知名的怪物先生 阅读(39) 评论(0) 推荐(0)