厨娘项目代码功能分析
一. Src资源文件:
MainJava文件下
activity组件
1.1 DishInfoActivity:美食信息。包括用户对于美食的收藏、查看详情及相关评论、猜你喜欢等功能。
1.2 LoginActivity:登录注册的视图、按钮。登录失败提示密码或者手机号错误、网络问题;注册时昵称不合理提示,输入密码及重复输入密码错误提示、手机号已被注册提示等问题的提示。
1.3 MainActivity:登录后进入主界面,主界面包括搜美食,商家,用户三大主要功能。
1.4 MapActivity:通过地图定位,可缩放,定餐馆、找商家地址,通过坐标点、图标为使用者导航要寻找的地点,显示定位失败出现的网络或者服务器等问题。
1.5 ModifyUserActivity:编辑用户信息,昵称、头像等个人信息;上传头像失败后提示服务器或者网络问题,信息编辑成功后保存修改后的结果。
1.6 PostActivity:分享美食信息。可发布需要分享的美食与你要上传的美食照片,上传头像失败后提示服务器或者网络问题,信息编辑成功后保存发布后的结果。
1.7 RestaurantInfoActivity:商家信息。商家的详情, 美食, 猜你喜欢按钮,也可对你喜欢的商家餐馆进行收藏。
1.8 SearchResultsActivity:搜索结果。
1.9 SettingActivity:菜单选项里的设置功能。
1.10 SplashActivity:全屏功能代码。
1.11 TabActivity:收藏、发布、关注、粉丝数标签代码
Adapter适配器
2.1 WorkListAdapter:包括界面的适配器。
2.3 DishListAdapter:美食列表适配器,显示作品、头像的配置。
Util (utiliy的缩写,意为多用途的,工具性质的包)
3.1 PreUtils:分享喜欢的美食、商家餐馆并保存。
3.2 ConstantUtil:一些静态常量的定义。
Entity 实体类
4.1 Result:结果实体类
4.2 JsonListResult+JsonResult:数据实体
Fragment 适应大屏幕的用户界面
5.1 CollectionFragment:收藏。美食信息情况、刷新。
5.2 DishCoverFragment:美食封面。
5.3 DishInfoCommentFragment:美食评论信息。
5.4 DishInfoItemFragment:美食信息。
5.5 DishListFragment:美食信息。
5.6 HomeFragment:本地信息。
5.7 LocationFragment:GPS定位到商家餐馆、用户地点。
5.8 MeFragment:我的信息。退出、登录、修改资料等。
5.9 MessageFragment:动态信息,关注其他玩家、收藏美食。
5.10 MymessageFragment:我的动态信息,注其他玩家、收藏美食。
5.11 RecommentFragment:为使用者推荐的美食、商家
5.12 SettingFragment:设置信息
5.13 UserListFragment:用户信息
Model 数据源层。各种变量、函数声明
6.1 Collection:收藏
6.2 Dish:美食
6.3 DishInfo:美食信息
6.4 Fans:粉丝
6.6 RestaurantInfo:商家
6.7 User:用户
6.8 Works:各类事件
6.9 WorksInfo:各类事件信息
View布局
7.1 MyViewPaper:My分页
7.2 RevealBackgroundView:背景显示布局
二、res资源
1.layout :各种界面布局
2. values :各种xml的描述文件
3. drawable:UI的各种图片资源