Communities and Collections
Posts
Post has attachment
Public
Let’s run with some standard Kotlin functions! Short and powerful, `let`, `apply`, `with` and `run` all have a receiver (this), may have an argument (it) and may have a return value. See the differences ⬇️

Add a comment...
Post has attachment
Public
Extending existing APIs with default arguments usually makes everyone happy. Android KTX lets you set the padding on one side of a view using default parameters.
A one line function that saves so much code!
Code: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/view/View.kt#L117
#31DaysOfKotlin
A one line function that saves so much code!
Code: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/view/View.kt#L117
#31DaysOfKotlin

Add a comment...
Post has attachment
Public
Your feedback is important!
Join a Google user study and help shape the future of Android products. Chosen participants get a thank you gift too!
Join here → goo.gl/aE6qmF
Join a Google user study and help shape the future of Android products. Chosen participants get a thank you gift too!
Join here → goo.gl/aE6qmF

Add a comment...
Post has attachment
Building games for the next billion
Watch the latest Android Developer Story → https://goo.gl/q5HsRo
Growing markets present an amazing opportunity for game developers to find new users, but they also come with unique set of challenges. Hear from AppOn Innovate, an Indian game studio, on how they build and optimize games for the next billion users.
Watch the latest Android Developer Story → https://goo.gl/q5HsRo
Growing markets present an amazing opportunity for game developers to find new users, but they also come with unique set of challenges. Hear from AppOn Innovate, an Indian game studio, on how they build and optimize games for the next billion users.
Add a comment...
Post has attachment
Public
Love the speed of Parcelable, but don’t like writing all that code? Say hello to Parcelize
Spec: https://github.com/Kotlin/KEEP/blob/master/proposals/extensions/android-parcelable.md
#31DaysOfKotlin
Spec: https://github.com/Kotlin/KEEP/blob/master/proposals/extensions/android-parcelable.md
#31DaysOfKotlin

Add a comment...
Post has attachment
Public
Wear OS by Google developer preview
Today we launched the Wear OS by Google developer preview and brought Android P platform features to wearables. This release includes system images for the official Android emulator as well as Huawei Watch 2 Bluetooth edition. We expect to publish more updates in the coming months prior to production. As always, please give us feedback and bugs at the Android Issues tracker.
To learn how you can download this preview, please check out: goo.gl/7yR5rd
Today we launched the Wear OS by Google developer preview and brought Android P platform features to wearables. This release includes system images for the official Android emulator as well as Huawei Watch 2 Bluetooth edition. We expect to publish more updates in the coming months prior to production. As always, please give us feedback and bugs at the Android Issues tracker.
To learn how you can download this preview, please check out: goo.gl/7yR5rd
Add a comment...
Post has attachment
Public
Powerful but hard to use - that’s how the text styling Spans API feels.
Android KTX adds extension functions for some of the most common spans and makes the API easier to use
Android KTX: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/text/SpannableStringBuilder.kt
#31DaysOfKotlin
Android KTX adds extension functions for some of the most common spans and makes the API easier to use
Android KTX: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/text/SpannableStringBuilder.kt
#31DaysOfKotlin

Add a comment...
Post has attachment
Building a video player app in Android (Part 3 / 5)
Supercharge our Android video player app for users, by using MediaSession and ExoPlayer
Learn more here: https://goo.gl/rbGnec
Supercharge our Android video player app for users, by using MediaSession and ExoPlayer
Learn more here: https://goo.gl/rbGnec
Add a comment...
Post has attachment
Public
Complication Data Provider with #WearOSbyGoogle
Watch the full video here → https://goo.gl/VQpg55
Keep your user up to date with key data that they care about with a complication data provider on Wear OS by Google (formerly Android Wear). By exposing the data, developers can gain a piece of the screen real estate that the user wears all day. In this short introduction, we will go through the concepts behind complications and the key APIs to help you get started.
For more information, check out:
Exposing your data to complications Code Lab → https://goo.gl/JWm4SV
Watch the full video here → https://goo.gl/VQpg55
Keep your user up to date with key data that they care about with a complication data provider on Wear OS by Google (formerly Android Wear). By exposing the data, developers can gain a piece of the screen real estate that the user wears all day. In this short introduction, we will go through the concepts behind complications and the key APIs to help you get started.
For more information, check out:
Exposing your data to complications Code Lab → https://goo.gl/JWm4SV
Add a comment...
Post has attachment
Public
Lambdas are sweet. With last parameter call syntax, you can cleanup callbacks, Callable, and Runnable.
For example, Android KTX sweetens `postDelayed` with a small wrapper.
Docs: https://kotlinlang.org/docs/reference/lambdas.html
Android KTX:: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/os/Handler.kt#L38
#31DaysOfKotlin
For example, Android KTX sweetens `postDelayed` with a small wrapper.
Docs: https://kotlinlang.org/docs/reference/lambdas.html
Android KTX:: https://github.com/android/android-ktx/blob/master/src/main/java/androidx/core/os/Handler.kt#L38
#31DaysOfKotlin

Add a comment...
Wait while more posts are being loaded





