摘要:
一.特点 1.存储单一数据,例如数值,字符串,布尔 2.存放的文件:/data/data/包名/shared_prefs/xxx.xml <map><string name="key">value</string></map>; 3.以键值对的形式存储 4.可以设置不被其他应用操作 二.API 1. 阅读全文
摘要:
制作一个登录界面,以SP方式存储用户名。用户下次登录时自动显示上次填写的用户名。 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
摘要:
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.andr 阅读全文