第七周(2) 打卡功能
2017-06-19 19:16
85 查看
引言
在这半周的工作中,我们小组仍然主要进行后台客户端的代码编写工作以及界面的优化,在这里,我对自己主要从事的工作,即客户端的打卡功能的规划,做一个重点的介绍。一、界面编写
计划界面为一个列表,显示出每个人的打卡状态,以及上传的照片。具体代码如下所示:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@color/white" android:padding="0dp"> <ImageButton android:layout_width="?attr/actionBarSize" android:layout_height="?attr/actionBarSize" android:layout_alignParentLeft="true" android:background="@drawable/toolbar_back_bg" android:onClick="CommentBack" android:src="?attr/homeAsUpIndicator" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="打卡" android:textColor="@color/black" android:textSize="19sp" /> </RelativeLayout> <ListView android:id="@+id/comment_lv" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout>
二、内部逻辑实现
逻辑代码目前还没有编写,因为后半周时还没有后台接口,所以只进行了一下类的创建与界面获取,这里不再贴代码。同时下半周我帮页面做了一些xml方面的工作,代码大致如下:
<merge 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" > <com.lorentzos.flingswipe.SwipeFlingAdapterView android:id="@+id/frame" android:background="#ffeee9e2" android:layout_width="match_parent" android:layout_height="match_parent" app:rotation_degrees="15.5" tools:context=".MyActivity" /> <include layout="@layout/buttons" /> </merge>
相关文章推荐
- myflag step14:打卡功能
- [Android] 基于Android的指纹打卡功能的实现
- MyFlag Step14: 打卡功能界面的初步
- java第七周实验封装一类对象English,该类对象具有一种功能printEnglish输出英文字母表。再封装一类对象Greek,该类必须是English的子类,该类对象不仅可以调用方法printE
- java第七周封装一类对矩阵操作的对象,该类对象能够对矩阵进行运算,如矩阵中数据的位置变换功能、矩阵的加法功能、矩阵的乘法功能。
- 打卡挂机功能 显示推广帐号 等个人信息 定制需多少钱?
- myflag step14:打卡功能
- Arcgis server发布电子地图(7)ArcGIS API For Javascript之查询功能实践/打卡
- 打卡24:写一个实现功能的程序---小型数据库
- 第七周(1) 后台代码编写、客户端具体功能实现与界面优化
- 学习打卡功能上线,告别懒惰,坚持学习!
- MyFlag Step13:打卡功能的初步讨论
- C#--第七周实验--任务2--从PhysicalObject中派生出移动物体类MovingObject并实现部分功能
- 功能自动化测试工具列表大全
- 20162302 第七周作业
- openwrt关闭ssh功能
- jQuery实现的回车触发按钮事件功能示例
- Windows & Linux 相同功能软件对应列表(转)
- 关于已分区表和索引的查询处理增强功能
- PyCon 2011 - Hidden Treasures of the Python Standard Library - 为Python命令行添加了按键自动补全内容和命令历史功能