SpiceQA
Questions Tags Users Badges

Is there any way I can see samples from libraries' source code?

user_9645340 0
Created Jan 26, 2021 Edited Jan 26, 2021
Viewed 460

There is that @sample thing in docstrings from source code, like @sample androidx.compose.foundation.samples.PlaceholderBasicTextFieldSample. I was wondering how can I — if there is a way — see them, see this PlaceholderBasicTextFieldSample. Was trying to search for this, but had no luck.

composable android
Share
2 Answers

I just global search Github and it should lead you to a mirror of their repo.

Androidx Repository

edited Feb 23, 2021
user_92732110
answered Feb 23, 2021

They work in d.android.com inline with the classes

https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/package-summary#BasicTextField(kotlin.String,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Boolean,androidx.compose.ui.text.TextStyle,androidx.compose.foundation.text.KeyboardOptions,androidx.compose.foundation.text.KeyboardActions,kotlin.Boolean,kotlin.Int,androidx.compose.ui.text.input.VisualTransformation,kotlin.Function1,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Brush,kotlin.Function1)

edited Jul 19, 2022
user_15426670
answered Jul 19, 2022
Related
Terms of service Privacy policy
Powered by Answer