没有合适的资源?快使用搜索试试~ 我知道了~
通讯录app_20182131092周浩瀚1
需积分: 0 0 下载量 137 浏览量
2022-08-03
11:38:31
上传
评论
收藏 368KB PDF 举报
温馨提示
试读
19页
二.界面设计:三.主要代码设计:布局代码:android:text="添加联系人"android:text="姓名:"android:text="手机:"and
资源详情
资源评论
资源推荐
通讯录的设计与实验
软件名称:通讯录
完成人:周浩瀚
学号:20182131092
完成时间:2020 年 12 月 19 日
一.软件内容简介:
这是一个基于 kotlin 的简单通讯录。该应用程序能够实现联系人查询。通讯
录生成列表,并选择电话号码实现拨打电话等功能。风格简洁,使用简单。
额外设计和实现了通讯录增删查改的功能。
该软件基于 ContentProvider 的方法实现。
二.界面设计:
三.主要代码设计:
布局代码:
Activity_main:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp"
tools:context="com.zpx.contact.MainActivity">
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fab"
android:layout_margin="20dp"
android:layout_gravity="bottom|end"
android:background="@color/colorPrimaryDark"
android:backgroundTint="#d2cece"
android:src="@drawable/img_add"
app:elevation="150dp"/>
<ListView
android:id="@+id/lv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="20sp"/>
</FrameLayout>
Add_contact:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="添加联系人"
android:gravity="center"
android:textColor="#000000"
android:textSize="20sp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tva_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="姓名:"
android:textColor="#000000"
android:textSize="20sp"/>
<EditText
android:id="@+id/eta_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入姓名"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tva_phoneNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="手机:"
android:textColor="#000000"
android:textSize="20sp"/>
<EditText
android:id="@+id/eta_phoneNum"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入手机号"
android:inputType="number"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btn_add"
剩余18页未读,继续阅读
晕过前方
- 粉丝: 117
- 资源: 328
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0