当前位置:网站首页>Ali's ten-year technical experts jointly created the "latest" jetpack compose project combat drill (with demo)
Ali's ten-year technical experts jointly created the "latest" jetpack compose project combat drill (with demo)
2022-04-23 04:28:00 【Programmer - Wu Yanzu】
Preface
Android Jetpack The collection of components can help us write a lot of repetitive code , And can simplify complex tasks , Let's have BUG Reduce , So that we can focus more on business logic , Focus on building the application itself .
The specific benefits of using this architecture are as follows :
- UI Decoupled from business logic .
- Effectively avoid life cycle component memory leakage .
- Improve module testability .
- Improve application stability , Effectively reduce the occurrence probability of the following abnormalities .
- Can not perform this action after onSaveInstanceState
- WindowManager$BadTokenException, is your activity running?
- OOM 、 NullPointerException
- ……
These benefits make it easier for us developers to develop excellent Android application , Finally push Android Rapid development of .
Especially in UI In terms of development , It 's been a long time , Officially released last year Compose It also brings great convenience to developers . As declarative UI The representative of the , Compose Indeed, it has many unique advantages :
- declarative UI, There is no need to refresh the data manually
- Get rid of XML , Completely removed the mixed writing (xml+Java、kotlin) The limitations of
- Super compatibility , Most common libraries ( Such as Navigation、ViewModel and Kotlin coroutines ) All apply to Compose,Compose Be able to work with existing View Systems coexist , You can introduce for an existing project Compose
- Accelerate development , It provides us with a lot of out of the box Material Components , If APP It is used. material Design words , So use Jetpack Compose It can save you a lot of energy .
- Reduce the number of codes , Reduce bug Appearance
- Fully functional , Can completely cover Android All existing system capabilities
- Real-time Preview ,Compose The preview mechanism can be the same as the real machine , True what you see is what you get
Compose Realized Google Its original intention , Major factories are also right Compose be profuse in praise :

To help you better understand Compose, Get started and practice as soon as possible , Here I'd like to introduce to you a powerful share of Alibaba bosses 《Jetpack Compose From entry to mastery 》, Hand in hand to show you Compose The style of .
The purpose of this information is to give hope to know 、 Study 、 application Jetpack Compose A reference for my little partner , Hope to help you who are studying ! need 《Jetpack Compose From entry to mastery 》 The full version of the little partner can click on the card at the end of the text to get it for free ! Guarantee free sharing !
《Jetpack Compose From entry to mastery 》
Catalog

Chapter one First time to know Jetpack Compose
Why do we need a new UI Tools ?
Jetpack Compose Focus on
- Accelerate development
- Powerful UI Tools
- Intuitive Kotlin API

API Design

Compose API Principles
- Everything is a function
- Top level function (Top-level function)
- Combination over inheritance
- Trust a single source

Deepen understanding Compose
- Core
- Foundation
- Material

slot API
Chapter two Jetpack Compose structure Android UI
Android Jetpack Compose The best guide to getting started
- Jetpack Compose Environmental preparation and Hello World Layout
- Use Material design Design
- Compose Real time preview of the layout
- ……

Go into detail Jetpack Compose | Optimize UI structure
- Compose The problem solved
- Composable Function analysis
- declarative UI
- Combine vs Inherit
- encapsulation
- restructuring
- ……

Go into detail Jetpack Compose | Realization principle
- @Composable What does annotation mean ?
- Execution mode
- Positional Memoization ( Place memory )
- Store parameters
- restructuring
- ……

The third chapter Jetpack Compose Project practice ( attach Demo)
Jetpack Compose application 1
- Preparation before start
- establish DEMO
- Problems encountered

Jetpack Compose application 2
- Jetpack Compose The application makes a countdown timer
- data structure
- Countdown function
- The state pattern
- Compose Layout
- Draw the clock

use Jetpack Compose Write a play Android App
- preparation
- Introduce dependencies
- newly build Activity
- establish Compose
- PlayTheme
- Draw page
- Bottom navigation bar
- Management status
- Add a page

use Compose Android Write a weather app
- Draw page
- Painting background
- Painting content
- ……

use Compose Quickly build a “ The movie App”
- finished product
- Implementation scheme
- actual combat
- Insufficient
- ……

Limited space , need 《Jetpack Compose From entry to mastery 》 The full version of the little partner can click on the card below to get it for free ! Guarantee free sharing !
版权声明
本文为[Programmer - Wu Yanzu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230423543221.html
边栏推荐
- 【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
- Express中间件①(中间件的使用)
- IEEE Transactions on Industrial Informatics(TII)投稿须知
- 补:注解(Annotation)
- RC低通滤波器的逆系统
- 【论文阅读】【3d目标检测】Improving 3D Object Detection with Channel-wise Transformer
- 为什么推荐你学嵌入式
- 520.检测大写字母
- Single chip microcomputer serial port data processing (2) -- ucosiii + cyclic queue receiving data
- PHP export excel table
猜你喜欢

AWS EKS 部署要点以及控制台与eksctl创建的差异

matlab讀取多張fig圖然後合並為一張圖(子圖的形式)

中国移动日赚2.85亿很高?其实是5G难带来更多利润,那么钱去哪里了?

The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp

指纹Key全国产化电子元件推荐方案

【论文阅读】【3d目标检测】Improving 3D Object Detection with Channel-wise Transformer

Effects of antibiotics on microbiome and human health

Iron and intestinal flora

兼容NSR20F30NXT5G的小体积肖特基二极管

【测绘程序设计】坐标反算神器V1.0(附C/C#/VB源程序)
随机推荐
Opencv -- yoact case segmentation model reasoning
Iron and intestinal flora
在AWS控制台创建VPC(无图版)
mysql ,binlog 日志查询
Express中间件②(中间件的分类)
顺序表的基本操作
协程与多进程的完美结合
Express middleware ① (use of Middleware)
Xiaomi, qui a établi le plus grand volume de ventes de téléphones portables domestiques sur le marché d'outre - mer, se concentre de nouveau sur le marché intérieur
IEEE Transactions on Industrial Informatics(TII)投稿须知
LabVIEW 小端序和大端序区别
Go反射法则
STM32单片机ADC规则组多通道转换-DMA模式
MYSQL查询至少连续n天登录的用户
C language character constant
[echart] démarrer avec echart
[AI vision · quick review of NLP natural language processing papers today, issue 31] Fri, 15 APR 2022
Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
Set classic topics
[echart] Introduction to echart