结对编程需求分析 E-R图 地图API的布局代码
需求分析:
在大学里,吃得好玩的好睡得好,往往造成了大学生身体素质下降,所以运动是不可避免的。但在大学里,一个人一直坚持锻炼是非常难得了,非常了不起的。但如果一群人或者说是有相同的兴趣爱好又需要锻炼的人一块运动,相互监督监护扶持,这样会不会更好一点呢。我就设想,一个运动app,大家能一块健,还能结交更多有相同爱好的人。
E-R图:
高德地图API:地图的长按拖拽点击事件
布局代码为
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/tap_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="点击或长按 " />
<TextView
android:id="@+id/camera_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="移动相机" />
<com.amap.api.maps2d.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>