当前位置: 首页 > 软件库 > 手机/移动开发 > >

Jetpack-Compose-Playground

授权协议 MIT License
开发语言 Kotlin
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 柯骏
操作系统 Android
开源组织
适用人群 未知
 软件概览

Jetpack/JetBrains Compose Playground

Introduction ��‍♂️

This is an Jetpack Compose example project. I'm collecting a bunch of sample codes for Jetpack Compose. I also collect informations/tutorials on the github page https://foso.github.io/compose.

Show some ❤️ and star the repo to support the project

GitHub forks

Composable of the week!! ��

The BoxWithConstraints

New to Compose?

Check Compose for Android Developers or Hello World Compose

�� Jetpack Compose examples/tutorials and demos

Look in the repo or take a look at the github page: https://foso.github.io/compose

Animation

Layouts

Foundation

Material

Cookbook

Some of the code samples in this Repository:

Overview DialogExample CircularProgress
Screenshot Screenshot Screenshot

�� Architecture

��️ Built With

Kotlin

Project Structure

You need at least version >= Android Studio Arctic Fox to build this project https://developer.android.com/studio/preview/

  • app - Base android project directory
  • mysamples - a android library module that is using my compose samples for the github page

Resources

Talks

Name Description
Thinking in Compose Jetpack Compose is the new next generation UI toolkit. It uses a declarative component based paradigm for building UIs easily and quickly. It’s written entirely in Kotlin and embraces the style and ergonomics of the Kotlin language.
Compose by example Jetpack Compose is a new declarative UI toolkit built for the demands of creating modern user interfaces. Get started with Compose and learn about the new APIs and Material components that make up the toolkit by examining concrete UIs we’ve created with it. We’ll walk through examples of theming, animation, layout and more, demonstrating how to customize and combine components to build real UIs. We’ll show how the new toolkit simplifies your development experience and enables new possibilities.
Compose for existing apps Jetpack Compose is now in alpha and you might want to start adding it to your existing apps. In this talk, you'll learn how to do that! We'll cover topics such as: adding Compose to your existing Views and embedding Views in Compose, using your existing View theme and current app architecture in Compose, testing all of that code, and much more.
Jetpack Compose Jetpack Compose is Android’s new modern UI toolkit. Learn how Compose simplifies & accelerates your UI development, allowing you to create richer, more robust and responsive UIs. We outline our roadmap, what is ready for use right now, share our direction in areas that are still evolving, and show how the tight integration with tooling makes the development experience even better. Get up to speed with Compose and how it can help you to build better apps!
droidcon Online 2020: Become A Composer By Brian Gardner
KotlinConf 2019: The Compose Runtime, Demystified by Leland Richardson Jetpack Compose is an ambitious multi-team effort to reimagine Android's UI Toolkit more than 10 years after the Android Platform launched with the original UI Toolkit. Compose follows a declarative programming model, and the runtime is coupled with a Kotlin compiler plugin to enable a novel new approach to declarative programming. In this talk, Leland will go over the mechanics of how the Compose runtime and compiler plugin work together, demystifying how it can be used to enable efficient and performant user interfaces. In addition, this talk will describe how Compose can operate completely independent of the Android Platform and Compose UI, allowing it to be used as a general language feature for Incremental Computing and the management of tree-like data structures.
KotlinConf 2019: Compose Yourself: Designing a Kotlin First UI Toolkit by Anna-Chiara & Clara #Jetpack Compose is an unbundled UI Toolkit for #Android, designed to simplify UI development. It combines a reactive programming model with the conciseness and ease of use of Kotlin. Learn directly from engineers on the project about the decisions that went into making this toolkit and how a Kotlin-first approach has influenced API design from the project's inception.
What's New in Jetpack Compose (Android Dev Summit '19) Jetpack Compose was announced at Google I/O and the team has been hard at work ever since. This talk introduces Compose to new audiences, including what the project is and how it is taking shape. The talk also updates people who already know about Jetpack Compose, including how the project has evolved.
Understanding Compose (Android Dev Summit '19) This session covers the benefits of a declarative reactive UI system like Jetpack Compose and how it applies to real problems that Android developers have today. Additionally, this talk expands on the programming model of Jetpack Compose and some of its implementation details the can help you understand how Compose works.
#AskAndroid at Android Dev Summit 2019 - Jetpack Compose Missed the #AskAndroid livestream segment of Android Dev Summit 2019? Don’t worry, we got you covered. Hosts Lyla Fujiwara and Dan Galpin are joined by Anna-Chiara Bellini and Adam Powell to discuss Jetpack Compose questions submitted by Android developers online. Anna-Chiara Bellini is a product manager, and Adam Powell is an engineering lead.
Google IO19 - Declarative UI patterns Explore how reactive and declarative paradigms can be applied to Android UI development, making it easier for developers to integrate these patterns into their Android apps with Kotlin.
DroidconBerlin - Jetpack Compose — Next Gen Kotlin UI Toolkit for Android
DroidconBerlin - Jumping into Jetpack Compose way too early to see what's inside
KotlinEverywhere - Jetpack Compose
DevFest Kolkata 2019 - Let's Talk Composing UI

Podcasts

Name Description
Android Developer backstage - Episode 147: Jetpack Compose Alpha
Android Developers Backstage : Episode 131: Jetpack Compose and Declarative UIs
Android Developer backstage - Episode 115: Jetpack Compose
Fragmented Podcast - Episode 171: Jetpack Compose with Leland Richardson
Google podcast - Romain Guy – Podcast S09 E09

Other Links

Name Description
Jetpack Compose
Jetpack Compose UI Readme
Compose Readme
Video - Kotlin and Jetpack Compose
#compose channel on Kotlin Slack
Compose from first Principles
Jetpack Compose Tutorial
AndroidX Git Compose
Release Notes
Compse UI Docu
Jetpack Compose Twitter Bot

Feel free to contribute!

✍️ Feedback

If you want to improve Compose, join the Kotlin Slack and the #compose channel or file a bug at https://issuetracker.google.com/issues?q=componentid:612128

�� License

This project is licensed under the MIT License - see the LICENSE.md file for details

Find this project useful ? ❤️

  • Support it by clicking the button on the upper right of this page. ✌️

License

MIT License

Copyright (c) 2019 Jens Klingenberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Acknowledgments

Projects that helped me understand how to setup the project:

 相关资料
  • JetBrains 发布的 Jetpack Compose for Desktop 是基于 Google 用于 Android UI 开发的 Jetpack Compose 工具包,Jetpack Compose for Desktop 框架提供了一种声明式和反应性的方法来使用 Kotlin 构建 UI 。 仓库结构 artwork -设计工件 benchmarks -收集基准 ci -持续集成助

  • Learn Jetpack Compose By Example Over the course of the last few years Android development has gonethrough significant changes in how we structure our apps, the languagewe use for development, the too

  • 我们有一个遗留应用程序,我们开始迁移到Jetpack Compose。该应用程序只有一个活动,使用带有导航XML图的导航组件在片段之间导航。 我们采取了这一做法: 每次迁移一个片段 为每个片段创建一个@Composable屏幕,该屏幕提供与片段相同的UI 从片段onCreateView()设置内容到新创建的屏幕 现在,假设我们有Fragment1包含一些操作来导航到Fragment2。在原始代码中

  • 我尝试过通过堆叠< code > circular progression indicator 来使用方框布局,但是需要硬编码圆的大小。我希望戒指是大小不可知的。我如何使用Compose实现这一点?

  • 我研究了一天,但没有得到任何关于jetpack compose的youtube API的参考资料。有没有可能在jetpack compose上使用它,或者有没有其他方法可以使用jetpack Close播放youtube视频?请帮帮我

  • 我正在尝试开发一个喷气背包组合项目 我已经下载了Android Studio Arctic Fox 2020.3。1金丝雀9型 然后,我尝试创建一个带有“空撰写活动”的示例项目 但是在构建应用程序时,我得到了以下错误 我的Gradle配置是