第二次敏捷冲刺

昨天已经完成的工作

1.增加了ContextApplication类,现在可以更方便地获取Context了。
2.增加了SpUtils工具类,现在拥有了较为简单的基于键值对的存取和加载方法。

今天计划完成的工作

1.完成主页面的实现
2.完成初步的计划列表页面
3.增加Plan类
4.完成与Sputils配套使用的myfileUtils类,能够获取到所有的配置文件。

工作中遇到的困难

对于showPreference这个类并不熟悉,也并不了解单例对象的真正含义,因此花了很多地方在此处,最终才形成了初步的Sputils工具类。

代码签入

最新模块的代码

public class MyFileUtils {
    public static List<String> getFilesAllName(String path) {
        File file=new File(path);
        File[] files=file.listFiles();
        if (files == null){
            Log.e("error","空目录");return null;}
        List<String> s = new ArrayList<>();
        for(int i =0;i<files.length;i++){
            String absolutePath=files[i].getAbsolutePath();
            String Path=absolutePath.replace("/data/data/com.wqf.clock/shared_prefs/","");
            Path=Path.replace(".xml","");
            s.add(Path);
        }
        return s;
    }
}
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".PlanList">

</androidx.constraintlayout.widget.ConstraintLayout>

每人总结

陈泽同:项目很简单
谢国浩:
韦秋风:项目好难啊啊啊啊啊啊啊啊,不会做

posted @ 2021-11-27 23:45  reshuihu  阅读(37)  评论(0编辑  收藏  举报