Saiedmomen
03/11/2021, 6:56 AM@sample
references
* @sample androidx.compose.material.samples.CardSample
But they are not working for me and I can't see the samples.
Is there a dependency that I'm missing?
There was nothing in the google mavenjossiwolf
03/11/2021, 8:05 AMjossiwolf
03/11/2021, 8:07 AMAlbert Chang
03/11/2021, 8:24 AMColton Idle
03/11/2021, 2:48 PMjossiwolf
03/11/2021, 4:24 PM{ComponentName}{Sample}
and that gets you to most places (e.g. AndroidViewSamples gives you the sample as the first result 🙂). But yeah, some searches can be a bit harder... in these cases I usually try to search for @Composable fun {ComponentName}
and look for the sample from there :)jossiwolf
03/11/2021, 4:27 PMjossiwolf
03/11/2021, 4:29 PMColton Idle
03/11/2021, 4:52 PM