pocmo / recompose

recompose is a tool for converting Android layouts in XML to Kotlin code using Jetpack Compose.
Apache License 2.0
783 stars 49 forks source link

#98 Add support for style attribute #99

Closed omarmiatello closed 3 years ago

omarmiatello commented 3 years ago

Issue: https://github.com/pocmo/recompose/issues/98 Add support for style attribute

Context

The plugin cannot handle a layout with a style attribute (like ?selectableItemBackground)

Changes

Convert attributes like ?selectableItemBackground in imageAttribute(selectableItemBackground)