Official Jetpack Compose samples. Contribute to android/compose-samples development by creating an account on GitHub.
This is your one-stop solution for learning Jetpack Compose for Android Development. Steps to learn Jetpack Compose by examples from this project Just clone, build, run the project and start learning Jetpack Compose by examples. This Jetpack Compose Example Project will help you in learning the ...
Jetpack Compose Samples This repository contains a set of individual Android Studio projects to help you learn about Compose in Android. Each sample demonstrates different use cases, complexity levels and APIs. For more information, pleaseread the documentation ...
JetBrains 发布的 Jetpack Compose for Desktop 是基于 Google 用于 Android UI 开发的 Jetpack Compose 工具包
玩Android demo。用Jetpack MVVM开发架构、单Activity多Fragment项目设计,项目结构清晰,代码简洁优雅,追求最官方的实现方式。用到以下知识点: LiveData、ViewModel、DataBinding(包括双向绑定、BindingAdapter的使用)、ViewBinding、coroutines(包含flow、suspend、livedata协程构造器、flow协程构造器的使用)、Hilt、Paging3(包含Remot...
Jetpack Compose 是用于构建原生 Andorid 界面的新工具包,Compose 使用了更少的代码,强大的工具和直观的 Kotlin Api 简化并且加快了 Android 上界面的开发。 在Compose 中,在构建界面的时候,无需在像之前那么构建 XML 布局,只需要调用 Jetpack Compose 函数来声明你想要的的元素,Compose 编译器就会自动帮你完成后面的...
02Jetpack-Compose与Compose-Multiplatform 作为Android开发,Jetpack-Compose我们再熟悉不过了,是Google针对Android推出的新一代声明式UI工具包,完全基于Kotlin打造,天然具备了跨平台的使用基础。JetBrains以Jetpack-Compose为基础,相继发布了compose-desktop,compose-web和compose-iOS ,使Compose可以运行在更多不同平台,也就是我...
基于此,我写出了开源库:ComposeDataSaver: 在Jetpack Compose中优雅完成数据持久化简单一瞥: // booleanExample 初始化值为false // 之后会自动读取本地数据 var booleanExample by rememberDataSaverState(KEY_BOOLEAN_EXAMPLE, false) // 直接赋值即可完成持久化 ...
于是乎我就在github上审阅各种轮子,默默的star,以备不时之需。这就是我和mavericks的缘分。 废话已毕,下面我们开启正文。 文章提纲 mavericks是什么? mavericks怎么用? mavericks配合其他库使用 mavericks是什么? mavericks是Airbnb技术团队开源的符合MVI架构的技术方案。
https://github.com/android/compose-samples 嗯,第一步clone下来,是个文件夹,随便打开个项目先看下项目结构 image.png 编译一下,这里出现了第一个错误 This version of the Android Support pluginforIntelliJIDEA(orAndroid Studio)cannotopenthisproject,please retry with version2020.3.1ornewer. ...