摘要: 1.首先点击ListView练习 进入 Listview 界面 2.进入Listview 界面 : 3.用户可以在里面点击 喜爱的东西 4.当东西被选中的时候 会出现蓝色 并且会弹出: 5.这里面显示的时间 是电脑当前的时间 用的一个方法: 代码: package com.example.myapp 阅读全文
posted @ 2020-11-05 14:46 快乐阿星 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1.滚动视图练习 当我们内容过多时 2.可以采用滚动的形式 进行垂直滚动 和 水平 滚动 3. 垂直滚动为: 4.水平滚动为: XML代码为: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schem 阅读全文
posted @ 2020-11-05 13:46 快乐阿星 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 注释:::这是CheckBox小练习 1.首先点击CHECK小练习 进入 CheckBox 界面 2.出现以下界面 3.选择喜欢的兴趣爱好:(可以全部选择) 4.当选中的时候会弹出: 5.当取消选中的时候会弹出: 6.下面两个checkbox是我自订的图标: 7.选择完喜欢的兴趣爱好,点击选择完毕 阅读全文
posted @ 2020-11-04 18:43 快乐阿星 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.当点击用户注册界面 2.跳转到 用户注册界面 3.用户添加完毕,按注册 会弹出用户已成功注册 JAVA代码: package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import an 阅读全文
posted @ 2020-11-04 17:24 快乐阿星 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 用户登录: 点击跳转到: 添加完用户名 密码 会弹出登陆成功: 1.Java代码 package com.example.myapplication; import android.os.Bundle; import android.text.Html; import android.view.Vi 阅读全文
posted @ 2020-11-04 14:50 快乐阿星 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 1.JAVA代码: package com.example.myapplication; import android.os.Bundle; import com.google.android.material.floatingactionbutton.FloatingActionButton; i 阅读全文
posted @ 2020-09-21 16:05 快乐阿星 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-27 11:04 快乐阿星 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 把多个企鹅的信息添加到集合中查看企鹅的数量及所有企鹅的信息删除集合中部分企鹅的元素判断集合中是否包含指定企鹅 package kl; import java.util.ArrayList; public class aac { public static void main(String[] arg 阅读全文
posted @ 2020-06-02 15:51 快乐阿星 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 上机练习1.编写一个随机生成 10个 0(包括) 到 100 之间的随机正整数。 package chap3; import java.util.Random; public class tese { public static void main(String[] args) { Random u 阅读全文
posted @ 2020-05-28 13:29 快乐阿星 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个程序,实现字符串大小写的转换并倒序输出。要求如下(1)使用for循环将字符串“ Hello world”从最后一个字符开始遍历(2)遍历的当前字符如果是大写字符,就使用 toLower Case()方法将其转换为小写字符,反之则使用 toUpper Case()方法将其转换为大写字符。( 阅读全文
posted @ 2020-05-26 20:07 快乐阿星 阅读(172) 评论(0) 推荐(0) 编辑