第二次迭代目标完成情况及感想

第二次迭代目标完成情况如下:

首先是主界面的设计以及功能的实现

主要XML代码是

.........

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/tl_custom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat.ActionBar">

</android.support.v7.widget.Toolbar>

........
这个布局就是上面绿色的设计部分。
.......
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/ll_main"
android:orientation="vertical"
tools:context=".MainActivity">
<!--Toolbar-->
<include layout="@layout/custom_toolbar" />
<!--DrawerLayout-->
<include layout="@layout/custom_drawerlayout" />


</LinearLayout>
..........
这部分代码为下面图标整体设计主布局为以下代码:
.........
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dl_left"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--主布局-->
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/activity_bottom_menu" />
</FrameLayout>
<!--侧滑菜单-->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
android:layout_gravity="start">
<include
layout="@layout/drawer_header"
/>
<ListView
android:id="@+id/lv_left_menu"
android:layout_marginTop="195dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:divider="@null"
android:text="DrawerLayout" />
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
........

 

用户界面的设计以及功能的实现

 

 

主要的代码如下:
.......
public class Food {
private int id;
private String name;//名称
private String img;//图片
private String count ;//访问次数

private int number ;

public Food(int id, String name, String img, String count) {
this.id = id;
this.name = name;
this.img = img;
this.count = count;
}

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getImg() {
return img;
}

public void setImg(String img) {
this.img = img;
}

public String getCount() {
return count;
}

public void setCount(String count) {
this.count = count;
}

@Override
public String toString() {
return "Food{" +
"id=" + id +
", name='" + name + '\'' +
", img='" + img + '\'' +
", count=" + count +
'}';
}
}
........
以上两个界面是我们第二次迭代目标的完成的情况。
作为第六小组的组长,我很荣幸也很开心。
我们是一个融洽温馨的小team。每次都分配任务的时候,小组成员都会积极地认领。
我觉得只要我们共同努力就会收获到很多有意义的东西。

转载于:https://www.cnblogs.com/weijing44/p/6832181.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值