Join Slack
Powered by
Source documentation often mentions "Example usage...
# compose
z
Zsolt
01/10/2020, 8:58 PM
Source documentation often mentions "Example usage: @sample androidx.ui.layout.samples.#####" Are these samples available publicly somewhere?
l
Louis Pullen-Freilich [G]
01/10/2020, 9:03 PM
The samples are used to generate code snippets on the public documentation, such as here:
https://developer.android.com/reference/kotlin/androidx/ui/material/package-summary.html#TopAppBar(kotlin.Function0,%20androidx.ui.graphics.Color,%20kotlin.Function0)
So you can either find the corresponding developer.android page, or look for the corresponding sample in the source code:
https://cs.android.com/androidx
We are investigating embedding the samples though, so in the future hopefully you will be able to just click through straight to the samples, and they will display in Studio 🙂
z
Zsolt
01/10/2020, 9:05 PM
That's great, thanks!
4
Views
Open in Slack
Previous
Next