具功能在哪里开始。
1.2任务概述
本软件基于android技术开发,规模不大,由一个人开独立发完成。开始接触
学习android有两个月了,算是初步入门了,开发本软件意图是为了深入学习android技术,锻炼自主学习能力,为以后开发积累经验,锻炼发现
问题解决问题的能力。现在,有很多手机软件使手机的应用更方便,本软件开发的目的就是开发一款实用的手机文件管理器对一系列的手机软件及文件进行管理,方便快捷。本软件为android系统的手机用户提供服务,可以使用安装器进行软件的安装。
1.3需求规定
本软件所需功能及总体设计如图1所示。
图1
1.3运行环境规定
本软件在完成设计编码及发布工作后,可运行的硬件设备为具有android操作系统的手机,比如目前推出这一平台机型的厂商大概有:HTC、摩托罗拉、三星、索尼爱立信、魅族、联想、夏普、中兴、LG、戴尔、宏碁、华硕、海信等。因此本软件的运行环境较为简单,可在任何android系统的手机上运行,对其他硬件无较高要求,并且与其他软件没有过多的交互。
2软件分析与设计
2.1前台界面设计
(1)根目录如图2.1所示
图2.1
其
xml代码main.xml 文件代码如下:
xmlns:android="schemas.android/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/white"
>
android:id="@+id/mPath"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5px"
android:textSize="18sp"
android:textColor="@drawable/blue"
/>
android:id="@android:id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
(2)主选择界面设计如图2.2所示
图2.2
其xml代码如下所示
xmlns:android="schemas.android/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
android:layout_width="30dip"
android:layout_height="30dip"
/>
android:layout_gravity="center_vertical"
android:layout_width="0dip"
android:layout_weight="1.0"
android:layout_height="wrap_cont