k

    kyleg

    2 years ago
    Where are the samples mentioned in the source code? For instance, in
    Flex.kt
    , part of
    androidx.ui.layout
    the doc comment block above
    fun Column
    says
    @sample androidx.ui.layout.samples.SimpleColumn
    , but I cannot locate that in the package or the source or anywhere googling that string.
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    Are you using
    dev-04
    or
    repo
    to have the entire android-xsource?
    l

    Louis Pullen-Freilich [G]

    2 years ago
    The samples are generated to the public documentation on developer.android.com - so if you find the corresponding documentation there you can see the sample. We would also like to link the actual sample code from in studio in the future
    k

    kyleg

    2 years ago
    @Luca Nicoletti dev04
    And as far as the docs at Louis’s link, I’m not so sure. If I go there to the Samples section and search
    SimpleColumn
    there are 0 results.
    l

    Louis Pullen-Freilich [G]

    2 years ago
    It will be in the documentation for the component that contains the sample. So you will need to look for the documentation for the component, and in there will be the samples
    I.e in this case look in the documentation for Column