android
文章平均质量分 75
皮皮大虾
专注java
展开
-
(Andorid基础)基于SqlLite数据库的增删查改小案例(电话簿)
SqlLite可以提供应用持久化数据,可储存大量的数据(相比于内部存储)案例:效果图创建布局文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"原创 2021-04-26 22:54:35 · 198 阅读 · 0 评论 -
(Andorid基础)通过内部存储保存数据于文件案例
通过内部存储读写文件 ,从而保存数据,但是 不要要保存大量万事页面始<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddin原创 2021-04-25 22:07:10 · 102 阅读 · 0 评论 -
(Android基础)Intent意图实现携带数据跳转和回传
在Activity之间跳转可以使用Intent这个桥梁ps : 菜鸟教程总结实例:实现页面1点击按钮跳转到界面2选择图片后跳转回页面1 并显示首先创建布局文件:activity_my.xml 界面1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pa原创 2021-04-25 21:01:29 · 732 阅读 · 0 评论 -
(android基础) RecyclerView使用
RecyclerView是谷歌提供的控件,与ListView相似,但更强大1.导入依赖: implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.android.support:appcompat-v7:28.0.0'在activity_main.xml创建列表视图<?xml version="1.0" encoding="utf-8"?><RelativeLa原创 2021-04-24 15:17:18 · 472 阅读 · 0 评论 -
(Andorid基础)ListView控件的使用--BasicAdapter
ListView可用与列表展示数据数据设配器是数据与视图之间的桥梁BasicAdapter是最基本的适配器使用示例:创建总列表数据试图 activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:原创 2021-04-24 12:14:24 · 152 阅读 · 0 评论 -
(Android基础)自定义对话框
系统自带的对话框dialog并不能满足更严格的开发需求,所以需要自定义对话框;首先创建显示点击按钮布局文件:activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_hei原创 2021-04-24 10:24:46 · 884 阅读 · 0 评论