Thread
#compose
    m

    Mohamed Ibrahim

    1 year ago
    So I have a question about the XML selector drawable is it the same use in Compose or there something I miss? basically I need to reflect an icon selection in a group of items
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Compose doesn’t natively support Android drawables. You can load vector Drawable resources, but they load as compose-specific implementations. I don’t think it supports selectors, so you’d need to write your selector “logic” in kotlin (see
    InteractionState
    for a thread to pull on)
    m

    Mohamed Ibrahim

    1 year ago
    oh nice, thank you will look into it