找回密码
 立即注册
theinformation下拉SharePreference | android开发 2022-11-08 62 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
完美实现仿QQ登陆下拉切换账号,使用SharePreference保存用户信息。程序中有自定义数据库操作类,可以仿造关于各种需求数据库的项目中去。下拉框为使用PopupWindow实现。另含自定义BaseAdapter,仿造可实现恣意界面的ListViewItem。且包括登陆信息验证的算法,其实是一个小算法,只想说明程序虽小,五脏俱全。不过程序有一点点小问题没管理,因为Sharepreference保存信息的局限性,所以当存在很多账号或许删去其中之一时,管理的不是很好。可是问题不大,稍加改正即可优化。因为自己觉得更好的方法还是用Database存储数据,因而也没有去完善。不过程序总体还是很完整的。这儿给出另外一个更好的,也就是用SQLDatabase保存用户信息。链接:/data/922286

(Perfect implementation of QQ login pull down account switching, and use SharePreference to save user information. There are user-defined database operation classes in the program, which can be imitated in the project of various demand databases. The drop-down box is implemented using PopupWindow. In addition, a user-defined BaseAdapter is included to imitate a ListViewItem that can implement arbitrary interfaces. And the algorithm including login information verification is actually a small algorithm, just to show that the program is small and has all the five internal organs. However, there are a few minor problems in the program that are not managed. Because Sharereference has limitations in saving information, when there are many accounts that may be deleted, the management is not very good. However, it is not a big problem. It can be optimized with a little correction. I think it is better to use Database to store data, so I haven't improved it. However, the overall program is still very complete. Here is another better way to save user information with SQLDatabase. Link:/data/922286)

[下载]10103582469.rar




上一篇:Android数据库SQLDatabase
下一篇:Android仿QQ登陆下拉切换账号