recompose
recompose copied to clipboard
recompose is a tool for converting Android layouts in XML to Kotlin code using Jetpack Compose.
Hello all! I am trying to add the .zip folder from disk as a plugin but i always get that message:  Can anyone help me please?
Introduced an API to for defining how an Attribute and a View Element can be parsed from XML to AST. This API has two Key interfaces, AttributeTransformer to define how...
``` Plugin 'Recompose' (version '1.0') is not compatible with the current version of the IDE, because it requires build 202.* or older but the current build is AI-211.7628.21 ```
XML: https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView I'm not sure what a good `Composable` replacement for it is and whether the conversion will be straight-forward?
`gradle buildPlugin` ``` WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.intellij.ide.IdeEventQueue to constructor sun.awt.PostEventQueue(java.awt.EventQueue) WARNING: Please consider reporting this to the maintainers of com.intellij.ide.IdeEventQueue...
Hi, tnx for plugin, is it possible to fix this error: recompose.parser.Parser$ParserException: Unknown size value: @dimen/common_margin at recompose.parser.values.SizeKt.size(Size.kt:31) at recompose.parser.values.PaddingKt.padding(Padding.kt:29) at recompose.parser.xml.ViewKt.viewAttributes(View.kt:82) at recompose.parser.xml.viewgroup.LinearLayoutKt.linearLayout(LinearLayout.kt:33) at recompose.parser.xml.ViewKt.node(View.kt:51) at recompose.parser.xml.ViewGroupKt.viewGroupAttributes(ViewGroup.kt:37) at recompose.parser.xml.viewgroup.UnknownKt.unknown(Unknown.kt:31)...
XML: https://developer.android.com/reference/android/widget/ImageButton Compose: I assume it will be something like: ```Kotlin Button(..) { Image(..) } ```
I saw you were looking for a higher level for KotlinWriter? Maybe something like this is an option? The code below ```kotlin internal class KotlinWriterHelper( val writer: KotlinWriter ) {...
The parser seems to close a parent tag for EditText. ``` FrameLayout { EditText() View() } ``` Will result in: ``` FrameLayout { EditText() } View() ``` Same occurs with...
Currently when pasting with the plugin we only add the code. But we can also add the required imports to the list of import statements (e.g. `import androidx.compose.foundation.Text`). From reading...