SharedPreferences 封装简单化使用
1.创建SPTool类封装 SharedPreferences (只需把代码复制到项目即可)
import android.content.Context;
import android.content.SharedPreferences;
import java.util.Set;
/**
* @author Created by Hu
* 版本:1.0
* 创建日期:2020/9/24 19:19
* 描述:
*/
public class SPTool {
private
原创
2021-03-08 10:35:41 ·
217 阅读 ·
0 评论