1 Star 0 Fork 0

jishen / Android-Core-Realm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Android-Core-Realm

What you need to know to be a good Android developer

目录

XIII XIV
UI组件 :beginner: 四大组件 :computer: 动画 :yin_yang: 设计模式 :checkered_flag: 异步任务机制 :vertical_traffic_light: 自定义View:rocket: 网络请求:heart: 响应式编程:monkey: Kotlin :fire: 进程通信 :phone: 性能优化:wrench: 优秀第三方控件:man: NDK:apple: 拓展:fork_and_knife:

前言:

RecyclerView、Andorid动画、OkHttp与Retrofit的网络请求、多进程、View的绘制流程、事件分发、消息队列、AIDL、Binder、Kotlin等,这类知识对于要成为一位优秀Android工程师的人来说是必须完全掌握的,同时他也是能鉴别高级和初中级工程师的一块试金石。因此,为了更好将各个知识层面的知识体系更好融合在一起,笔者创建了Android-Core-Realm这个项目,希望带领读者掌握Android系统架构中各个核心技能。

OkHttp与Retrofit是当前主流网络请求框架,view的绘制是我们自定义控件的理论基础,只有掌握了view是如何绘制的才能个性化的自定义控件;事件分发一直是Android开发的难点之一,也是必须掌握的;关于handler机制也是android的一块难点,因为包括Asynctask、系统启动、Intentservice等底层都是通过handler来实现的,所以掌握后handler机制不仅能提高你的实战开发能力,更能让你系统的了解整个android系统运作的情况;binder是Android系统进程间通信最重要的手段之一,现阶段app的发展离不开多进程的运用,经常会启动例如定位、推送等需要在后台开启动的进程来来保证主进程的内存运行;所以合理的使用多进程也是十分必要的;性能优化是Android细分领域中最难且也是知识面涉及最深和最广的方向之一;Flutter、热修复、插件化等是发展潮流需要。

  • 软技能(已完成)

(建议精读)学习之力 — 提高学习效率99%的灵魂秘籍!

  • Andorid核心思维导图总览(持续更新……)

点击查看大图

ⅠUI组件 :beginner:

布局控件

ConstraintLayout约束布局

  • 作为一款强大的调整View位置和大小的ViewGroup被Google所推荐,它能在复杂布局中有效降低布局层级,提高性能,使用更加灵活。

RecyclerView系列

Android5.0之后Google推出了新的列表控件RecyclerView,代替了经典的ListView,是一个强大的滑动组件,拥有item的复用回收功能,更加高级和灵活。

深入理解 RecyclerView (一、基础篇)

  • RecyclerView的基础使用、网格布局、瀑布流布局

深入理解 RecyclerView (二、功能篇)

  • RecyclerView的ItemType(不同条目类型)

深入理解 RecyclerView (三、功能篇)

  • RecyclerView的ItemDecoration分割线、增删item动画效果、拖拽和侧滑删除功能

深入理解 RecyclerView (四、封装篇)

  • RecyclerView的自定义点击事件、万能ViewHolder和Adapter简单封装

深入理解 RecyclerView (五、绘制篇)

  • 源码剖析RecyclerView的绘制流程

深入理解 RecyclerView (六、滑动篇)

  • 源码剖析RecyclerView的滑动原理

深入理解 RecyclerView (七、滑动篇)

  • 源码剖析RecyclerView的嵌套滑动机制

深入理解 RecyclerView (八、缓存篇)

  • 源码剖析RecyclerView的回收复用缓存机制

深入理解 RecyclerView (九、自定义篇)

  • 参考RecyclerView的LinearLayoutManager原理自定义LayoutManager

Ⅱ 四大组件 :computer:

Activity

Activity是Android应用的四大组件之一,它负责管理Android应用的用户界面。

Activity系列(一、基础篇)

  • Activity:创建步骤、清单文件注册、显式隐式意图、数据传递

Activity系列(二、启动篇)

  • Activity的四种启动模式(图解实例和场景使用)

Ⅲ Andorid动画系列 :yin_yang:

Android动画有两种类型的动画View Animation(视图动画)和Property Animation(属性动画)。

View动画

Android动画(一、基础篇)

  • 补间动画alpha、scale、translate、rotate、set的xml属性及用法

Android动画(二、基础篇)

  • 代码动态实现补间动画alpha、scale、translate、rotate、set、插值器动画&属性详解

属性动画

Android动画(三、基础篇)

  • 属性动画ValueAnimator的基本使用

Android动画(四、基础篇)

  • 属性动画ObjectAnimator基本使用以及属性详解

Android动画(五、进阶篇)

  • 插值器(Interpolator)、计算器(Evaluator)、ValueAnimator的ofObject用法等相关知识

Android动画(六、组合篇)

  • 组合动画AnimatorSet和PropertyValuesHolder的使用

动画原理

Android动画(七、原理篇)

  • 补间动画(Tween Animation)的运行原理

Android动画(八、原理篇)

  • 属性动画的原理

Ⅳ 常用设计模式 :checkered_flag:

设计模式代表了最佳的实践,是一套被反复使用,多数人知晓,经过分类编目,代码设计经验的总结。使用设计模式是为了重用代码,让代码更容易被人理解,保证代码可靠性。设计模式提供了软件开发过程中面临的一些问题的最佳解决方案,非常重要。

单例模式

设计模式(一、单例模式)

  • 单例模式的几种实现方式

Ⅴ 异步任务机制 :vertical_traffic_light:

Andorid中的重点难点

Handler消息机制

深入理解Android消息机制

  • 源码剖析Handler消息机制

Thread和线程池

深入理解Android线程池

  • Android 线程池的使用和原理

Thread线程停止的几种方式

  • 如何正确地停止线程?

Ⅵ 自定义View :rocket:

View的绘制是我们自定义控件的理论基础,绘制原理、滑动原理、弹性滑动、滑动冲突、measure、layout和draw等,掌握才能绘制个性化的自定义控件,事件分发一直是Android开发的难点之一。

View的工作原理

View的事件分发机制

[深入理解Android事件分发机制(未完成)]

自定义控件

自定义View(一、基础篇)

  • 自定义控件的初始化

Ⅶ 网络请求 :heart:

OKHttp是一款优秀HTTP框架,retrofit是现在比较流行的网络请求封装框架,可以理解为okhttp的加强版,底层封装了Okhttp。

OkHttp

OkHttp(一、基础篇)

  • OkHttp的介绍和使用

OkHttp(二、原理篇)

  • 深入源码解析OkHttpClient、dispatcher调度器、Intercepoter拦截器

Retrofit

Retrofit(一、基础篇)

  • Retrofit的介绍和使用

Ⅷ 响应式编程 :monkey:

RxJava

一个优秀的异步操作库,简洁、优雅、强大的操作符。(一个在 JVM 上使用可观测的序列来组成异步的,基于事件的程序的库)

RxJava2详解(一)

  • 详细介绍了RxJava的使用(基本创建、快速创建、延迟创建等操作符)

RxJava2详解(二)

  • RxJava转换、组合、合并等操作符的使用

RxJava2详解(三)

  • RxJava延迟、do相关、错误处理等操作符的使用

RxJava2详解(四)

  • RxJava过滤、其他操作符的使用

Ⅸ Kotlin :fire:

Android 的官方开发语言,能很好兼容Java,简洁优雅务实安全,函数式编程。

Kotlin基础

Kotlin基础「一」

  • 你了解Kotlin的let,with,run,apply,also作用域函数的区别吗?

Kotlin基础「二」

  • 变量(var与val)、常量、注释

Kotlin基础「三」

  • 数据类型(数值类型,布尔类型,字符类型,字符串类型,数组类型)

Kotlin基础「四」

  • 逻辑控制语句(if、for、when、while、return、break、continue)

Kotlin基础「五」

  • 可空类型?,空安全?.,空值合并?:,非空断言!!,类型安全转换as?

Kotlin基础「六」

  • 函数的声明和使用

Kotlin基础「七」

  • 类和继承

Kotlin基础「八」

  • 属性与字段(Getter()与Setter(),后备字段field)

Kotlin基础「九」)

  • 包与导入(Packages and Imports)

Kotlin基础「十」

  • 接口与函数接口(Functional (SAM) interfaces)

Kotlin基础「十一」

  • 可见性修饰符(private、protected、internal、public)

Kotlin基础「十二」

  • 扩展Extensions(扩展函数与属性)

Kotlin基础「十三」

  • 数据类(Data Classes)

Kotlin基础「十四」

  • 密封类(Sealed Classes)

Kotlin基础「十五」

  • 泛型

Kotlin基础「十六」

  • 嵌套和内部类

Kotlin基础「十七」

  • 枚举类(enum class)

Kotlin基础「十八」

  • object(对象表达式和对象声明)

Kotlin基础「十九」

  • 类型别名(type alias)

Kotlin基础「二十」

  • 内联类(Inline classes)

Kotlin基础「二十一」

  • 委托和委托属性详解

Kotlin基础「二十二」

  • Lambdas和高阶函数详解

Kotlin基础「二十三」

  • 引用的使用 :: (类引用、属性引用、函数引用、绑定引用)

Kotlin基础「二十四」

  • 注解:声明、应用、元注解

Kotlin基础「二十五」

  • 反射:KClass、KCallable、 KFunction、 KProperty

Kotlin 协程学习三部曲

Kotlin 协程实战进阶(一、筑基篇)

  • 协程的概念和原理、协程框架的基础使用、挂起函数以及挂起与恢复等

Kotlin 协程实战进阶(二、进阶篇)

  • 协程的高级用法、Flow、Channel等

Kotlin 协程实战进阶(三、原理篇)

  • 协程的底层原理:状态机,挂起与恢复,线程切换原理

Jetpack组件

Wan_Android实战开源项目

  • 大型Android项目架构:基于组件化+模块化+短视频+Kotlin+协程+Flow+Retrofit+Jetpack+MVVM架构实现WanAndroid客户端

浅谈 Android Jetpack - Navigation的架构设计

  • Navigation实战,架构设计原理剖析

Android架构灵魂组件Lifecycle的生命周期机制详解

  • Lifecycle的使用,架构设计,生命周期机制

由浅入深,ViewModel配置变更复用原理详解

  • ViewModel实战、因配置变更保存和复用机制详解

关于LiveData全面详解(附事件总线)

  • LiveData全面详解,附事件总线

Ⅹ进程通信 :phone:

Android系统进程间通信最重要的手段之一

Ⅺ 性能优化 :wrench:

性能优化是Android细分领域中最难且也是知识面涉及最深和最广的方向之一

最全面&详细的性能优化攻略

  • 包含内存优化、内存泄漏、绘制优化、布局优化、图片优化、APK优化、多线程优化、列表优化等

Ⅻ 优秀第三方控件 :man:

图片加载:Glide

  • 优秀的图片加载库,Android使用最广泛的图片加载框架。

事件总线:EventBus

使用扩展的观察者模式实现的组件间通信框架,广播的替代者。EventBus能够简化应用组件间的通信,解耦(有效分离)事件的发送者和接收者,避免复杂和容易出错的依赖和生命周期问题,开销小,代码更优雅。

EventBus3.2详解和使用(一)

  • EventBus普通事件和粘性事件的使用

EventBus3.2详解和使用(二)

  • EventBus三要素、线程模式、优先级和AndroidEventBus的使用

EventBus3.2详解和使用(三)

  • 源码剖析EventBus内部原理

XIII NDK :apple: (敬请期待)

JNI

XIV 拓展 :fork_and_knife: (敬请期待)

热修复

Flutter

插件化

组件化

笔者有话说

在Android源码中最重要的三个类:ActivityManagerService/PackageManagerService/View,推荐大家去阅读下这部分的源码,阅读源码能提高我们今后设计架构自己代码的能力,同时也能从底层了解整个android系统的运行原理,其他一些比如主线程的消息循环、主线程如何和AMS如何跨进程交互、SystemServer进程中的各种Service的工作方式、AsyncTask的工作原理等。这些知识也是作为一个Android高级开发工程师必须掌握的,不能整天沉溺于ui和四大组件的交互,要站在更高的角度去考虑Android的有些问题。

欢迎在 Issue 中提交对本仓库的改进建议~

版权声明

  • 所有原创文章(未进行特殊标识的均属于原创) 的著作权属于 Sumiya
  • 所有译文文章(标题注明[译]的所有文章) 的原文著作权属于原作者,译文著作权属于 Sumiya

转载注意事项

除注明外,所有文章均采用 Creative Commons BY-NC-ND 4.0(自由转载-保持署名-非商用-禁止演绎)协议发布。

您可以在非商业的前提下免费转载,但同时您必须:

  • 保持文章原文,不作修改。
  • 明确署名,即至少注明 作者:Sumiya 字样以及文章的原始链接。
  • 商业用途请以邮件方式联系本人。
  • 微信公众号转载一律不授权 原创 标志。

About me

赞赏

如果这个库对您有很大帮助,您愿意支持这个项目的进一步开发和持续维护。您可以扫描下面的二维码,打赏我一颗糖果或者一杯咖啡,非常感谢您的捐赠。祝您百尺竿头更进一步!

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

暂无描述 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/a_maker/Android-Core-Realm.git
git@gitee.com:a_maker/Android-Core-Realm.git
a_maker
Android-Core-Realm
Android-Core-Realm
main

搜索帮助