android实现过程,Android:一个完整app开发流程
一.给出功能文档
二.APP架构选择
可选MVP,MVVM
三.APP目录结构设置
本app基于mvp架构。除了mvp架构的文件。
还包含下面的文件夹:
ui (下面根据Activity划分)
widget (自定义dialog等)
base (BaseActivity,BaseFragment)
四.划分Activity与Fragment
有侧滑栏,tab的一般用fragment
五.分辨率适配
设置sw-360dp,sw-480dp等不同的dimension目录,根据百分比计算dp值。
image.png
六.三方库使用
bindview使用butterknife,不同组件通信使用EventBus,定时使用RxJava,崩溃收集bugly
七.自定义view
按钮样式:
使用selector
按钮背景色,包括颜色和圆角
android:shape="rectangle">
八.布局方式
使用ConstraintLayout,直接使用标注的值来做,最简单,不要用百分比。使用layout_constraint,layout_margin完成所有布局。
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:paddingBottom="@dimen/dp_24_dp"
android:layout_height="wrap_content"
android:background="@drawable/base_bg_dialog1">
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="@dimen/dp_24_dp"
android:layout_marginEnd="8dp"
android:text="@string/tip"
android:textSize="@dimen/sp_20_sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="@dimen/dp_24_dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="@dimen/dp_24_dp"
android:textSize="@dimen/sp_19_sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
android:id="@+id/tv_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_24_dp"
android:layout_marginRight="@dimen/dp_60_dp"
android:padding="@dimen/dp_10_dp"
android:text="@string/cancel"
android:background="@drawable/bg_text_button2"
android:textSize="@dimen/sp_19_sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/tv_sure"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_content" />
android:id="@+id/tv_sure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_24_dp"
android:padding="@dimen/dp_10_dp"
android:text="@string/sure"
android:textSize="@dimen/sp_19_sp"
android:background="@drawable/bg_text_button2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/tv_cancel"
app:layout_constraintTop_toBottomOf="@+id/tv_content" />
在AndroidStudio直接肉眼布局,Android可以选择不同的分辨率机器,水平或者垂直进行预览
肉眼布局法
九.编译系统配置
配置sdk版本
配置abi
十.图片配置
使用蓝湖进行图片的协助。提供m,h,x,xx等不同分辨率的图片
image.png
android实现过程,Android:一个完整app开发流程相关推荐
- pycharm的项目文件中包括什么_一个完整的项目管理流程包括什么?
首先,我们先了解一下什么是「项目」和「项目管理」. 「项目」是为完成某一独特的产品或服务所做的临时性努力.在项目的实施过程中,通常都会遇到一些问题,这些问题会阻碍项目的实施.而「项目管理」就是指在项目 ...
- APP开发流程实例讲解-儒释道网络电台八天开发全程-在Android Studio中完成界面设计
APP开发流程实例讲解-儒释道网络电台八天开发全程 功能和界面初步设定 APP开发流程实例讲解-儒释道网络电台八天开发全程 项目发起 功能和界面初步设定 在Android Studio中完成界面设计 ...
- iOS动手做一个直播app开发(代码篇)
iOS动手做一个直播app开发(代码篇) ###开篇 好久没写简书,因为好奇的我跑去学习直播了,今天就分享一下我的感慨. 目前为止直播还是比较热点的技术的,简书,git上有几篇阅读量和含金量都不错的文 ...
- 开发一个APP有多难?APP开发流程、开发成本揭秘
现在很多企业或者个人都有APP开发需求,如果是非专业开发人员,可能对于APP的开发流程.开发成本.开发难点.需要多少开发人员等等都没有概念,今天这篇文章就给大家进行下普及. 一.APP开发的流程和难点 ...
- 01_安卓APP开发流程概览
目录 安卓APP开发流程 前言 一.流程概览 二.分步概述 1.需求分析 2.产品原型设计 3.UI视觉设计 4.数据库搭建 5.服务端开发 6.Android客户端开发 7.APP程序测试 8.上传 ...
- iOS 直播类APP开发流程
(一) iOS 直播类APP开发流程分解: 1 . 音视频处理的一般流程: 数据采集→数据编码→数据传输(流媒体服务器) →解码数据→播放显示 1.数据采集: 摄像机及拾音器收集视频及音频数据,此时得 ...
- (转载)iOS直播类APP开发流程
转载自博主:iOS_developer_zhong,博客地址: http://blog.csdn.net/zhonggaorong/article/details/51483282 本文为大家分享了i ...
- APP开发流程实例讲解-儒释道网络电台八天开发全程-项目发起
APP开发流程实例讲解-儒释道网络电台八天开发全程 项目发起 APP开发流程实例讲解-儒释道网络电台八天开发全程 项目发起 功能和界面初步设定 在Android Studio中完成界面设计 实现功能代 ...
- APP开发流程实例讲解-儒释道网络电台八天开发全程-签名发布
APP开发流程实例讲解-儒释道网络电台八天开发全程 签名发布 APP开发流程实例讲解-儒释道网络电台八天开发全程 项目发起 功能和界面初步设定 在Android Studio中完成界面设计 实现功能代 ...
最新文章
- JTable动态显示隐藏列
- Using Preferences(Beginning Android)
- boost::endian模块宏BOOST_SCOPED_ENUM的测试程序
- Java-Arrays类
- 华为笔记本matebook13_华为引领“第三代移动办公”新纪元 华为MateBook开启“智慧化办公”新赛道...
- 让你的博文自动带上缩址,方便发到微博客上
- 云服务器ASF挂卡(1)——steamcommunity社区本地反代
- spark.yarn.jars的配置
- 开入量与开出量的一点总结
- Failure to find xxx in 中央仓库
- docker-compose部署Redis-Cluster集群
- 叶荣添给你的11条投机建议!
- 如何应用BIM技术加快项目进度?
- 我对计算机感兴趣作文500字,我的兴趣爱好作文500字10篇
- Python进行假设检验
- 定位于超流线纯电轿跑 欧拉闪电猫惊艳上市
- python编写关不掉的流氓表白软件
- 边坡安全监测系统 浅谈方案分享
- MyEclipse 7.1官网下载
- 小乌龟Tortoisegit官方汉化包 中文语言安装