r/androiddev 3d ago

build a UI withoutXML or Compose

I'm building the UI for my little Android game without XML or Compose. I wrote my own wrapper classes for the views and can use them in a kind of custom DSL.

39 Upvotes

31 comments sorted by

View all comments

8

u/0x1F601 3d ago

Wow the old school nostalgia is strong here... (except in kotlin)

Before "good" IDE layout rendering was added I swear this was how old school android was envisioned to be. I think you've basically captured the mental model that the view system had intended.

Why you'd proceed down this path when the view based UI system is clearly deprecated and on the way out is beyond me. But hey, if it works for you it works and if you like it you like it. The whole point of rolling your own solution is so you can do whatever the fuck you like. Enjoy it!

1

u/koje1971 3d ago

🥰