目录
一、项目测试视频
网络资源模板--基于Android Studio 宠物领养系统
二、项目简介
数据库:SQLite
用户:登录注册、发布动态、发布领养信息、申请领养、评论、捐款、关注、退出登录、参加志愿活动等功能
管理员:用户管理、公益组织管理、领养管理、志愿者活动管理、查看捐款、注销等功能
三、项目测试环境
四、项目详情设计
1.启动页和登录注册页面
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/enter">
<Button
android:layout_width="70dp"
android:layout_height="30dp"
android:layout_gravity="right"
android:layout_marginRight="20dp"
android:layout_marginTop="40dp"
android:textColor="#484848"
android:text="3s跳过"
android:id="@+id/jumps"
android:textSize="12sp"
android:background="@drawable/shape"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<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:background="#ffffff"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginRight="34dp"
android:orientation="vertical">
<ImageView
android:layout_width="260dp"
android:layout_height="wrap_content"
android:src="@drawable/b9"
android:layout_marginTop="50dp"
android:adjustViewBounds="true"
android:layout_gravity="center"
android:scaleType="fitXY"/>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="22dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:textColor="#ff92a6"
android:textStyle="bold"
android:gravity="center"
android:text="宠物领养后台管理系统" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="20dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:orientation="vertical">
</LinearLayout>
<EditText
android:id="@+id/edit1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/a"
android:hint="请输入管理员名"
android:textSize="16dp" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入密码"
android:drawableLeft="@drawable/b"
android:textSize="16dp"
android:layout_marginTop="15dp"
android:inputType="textPassword"
android:id="@+id/edit2"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="45dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:text="登录"
android:textColor="#fff"
android:background="@drawable/button_circle_shape3"
android:id="@+id/b1"
android:textSize="18dp"
/>
</LinearLayout>
<TextView
android:id="@+id/user"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="16dp"
android:layout_weight="1"
android:gravity="right"
android:layout_gravity="right"
android:text="用户登录"
android:layout_marginTop="20dp"
android:textColor="#f15b6c"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
2.用户页面展示
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:paddingBottom="20dp"
android:baselineAligned="false"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@drawable/a2"
android:orientation="vertical">
<ImageView
android:id="@+id/setting"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_gravity="right"
android:src="@drawable/b8"
android:gravity="right"
android:layout_marginTop="10dp"
android:layout_marginRight="20dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:background="@drawable/c9"
android:orientation="vertical">
<TextView
android:id="@+id/n"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="95dp"
android:layout_marginBottom="5dp"
android:text="用户名"
android:layout_gravity="center"
android:textColor="#3e3b2b"
android:textSize="24dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="爱猫达人"
android:layout_gravity="center"
android:textColor="#ffc20e"
android:textSize="14dp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:background="@drawable/a_circle_shape"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/z1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:text="50"
android:layout_gravity="center"
android:gravity="center"
android:textColor="#3e3b2b"
android:textSize="18dp" />
<TextView
android:id="@+id/c1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="动态"
android:layout_gravity="center"
android:textColor="#8a8c8e"
android:textSize="18dp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/z2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:text="50"
android:layout_gravity="center"
android:gravity="center"
android:textColor="#3e3b2b"
android:textSize="18dp" />
<TextView
android:id="@+id/c2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="关注"
android:textColor="#8a8c8e"
android:textSize="18dp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/z3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:text="50"
android:layout_gravity="center"
android:gravity="center"
android:textColor="#3e3b2b"
android:textSize="18dp" />
<TextView
android:id="@+id/c3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="领养"
android:layout_gravity="center"
android:textColor="#8a8c8e"
android:textSize="18dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:paddingTop="5dp">
<TextView
android:id="@+id/h1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text=" 我的发布"
android:drawableLeft="#f1f1f1"
android:background="@drawable/line_bottom"
android:paddingBottom="15dp"
android:textSize="18dp"/>
<TextView
android:id="@+id/h2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text=" 志愿者活动"
android:drawableLeft="#f1f1f1"
android:background="@drawable/line_bottom"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:textSize="18dp"/>
<TextView
android:id="@+id/h3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text=" 我的捐款"
android:drawableLeft="#f1f1f1"
android:background="@drawable/line_bottom"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:textSize="18dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:id="@+id/zx"
android:text=" 注销"
android:drawableLeft="#f1f1f1"
android:background="@drawable/line_bottom"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:textSize="18dp"
/>
</LinearLayout>
</LinearLayout>
3.公益组织管理页面
和用户页面类似
4.管理员页面展示
Get 项目模板源码
👇👇👇快捷获取方式👇👇👇