admin管理员组

文章数量:1558084

目 录
前 言 1
目 录 2
第一章 绪论 3
1.1 移动聊天程序的产生背景 3
1.2 移动聊天程序产生的意义 3
1.3 技术路线 4
1.3.1Eclipse 4
1.3.2SDK 4
第二章 项目开发计划书 5
2.1 项目成果 5
2.2 资源需求 5
2.3 项目风险分析 6
2.4 分配任务 6
第三章 系统需求分析 7
3.1 功能需求分析 7
3.2 系统用例图 7
3.3 部分功能用例描述 8
第四章 系统设计 9
4.1 系统结构设计 9
4.2 用户界面布局设计 10
第五章 文件传输 13
5.1 什么是文件传输? 13
5.2 文件传输的实现 13
致谢 17
本系统平台的开发宗旨以及总体任务就是要实现一对一的聊天功能,在手机 平台上实现文字、图片、语音的实时发送、接收。聊天程序包括手机客户端和服 务端两部分,服务端程序保存用户信息,以及用户间的好友关系,客户端实现各 功能的展现界面,并实现与服务端以及聊天对象客户端之间的通讯。根据对用户 需求调查,总体需求是对于普通用户能够实现一对一的聊天功能。
下面是基于 Android 平台的移动聊天程序的需求说明的具体文本,要求系统 具有以下功能:
(1)好友界面,查看好友信息,选择好友进行聊天,会话列表框。
(2)聊天界面,你能够实现文字、图片、语音、文件的收发。
系统客户端采用了 MVC 的设计模式,将视图层、控制逻辑层以及数据模型 层进行分离,实现客户端程序的高内聚,低耦合,提高代码的重用性,降低系统 的维护成本。Google 设计的 Android 手机操作系统,本身也采用 MVC 的设计模 式,这样一来,为设计和开发 Android 应用程序提供了良好的基础。本文转载自http://www.biyezuopin.vip/onews.asp?id=14583在 Android 程序中,视图层的布局和规划,可以通过 XML 文件进行配置编码,当然也可以 用 JAVA 直接编码的方式进行布局,但这种方法不是 Android 设计推荐的布局方 式。系统客户端从安全性、稳定性、易用性以及代码复用的角度出发,功能分模 块,代码分层设计。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android/apk/res/android"
    android:orientation="vertical"
    android:background="@drawable/bg"
    android:id="@+id/main_layout"  
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
 
	<LinearLayout android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:orientation="horizontal"
		android:background="@drawable/tab_bg"
		android:id="@+id/myinfo_panel"
		android:onClick="onClick"
		android:gravity="center_vertical">
		<ImageView android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:id="@+id/my_head_icon"/>
		<TextView android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textColor="@android:color/black"
			android:id="@+id/my_nickename"/>
	</LinearLayout>
	
	<ExpandableListView android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:background="@android:color/transparent"
		android:cacheColorHint="#00000000"
		android:id="@+id/main_list"/>  	
</LinearLayout>










本文标签: androidapp