DailyDeskTools home

Android Views Are in Maintenance Mode. Now What?

0:37 ·

Android is now Compose First and Views are in maintenance mode. See how to convert an Android XML layout to Jetpack Compose code in your browser: paste the layout, name the composable and copy the Kotlin.

How to use the XML to Compose Converter

  1. Paste an Android XML layout file, or start from the sample.
  2. Read the Compose code on the right. It updates as you type.
  3. Name the composable, and choose imports, a @Preview and ID comments.
  4. Check the TODO comments for anything that needs finishing by hand.
  5. Copy the code or download it as a .kt file.

More videos

All videos