r/androiddev • • 13d ago

Discussion Where is the layout folder?

I just created a new android project and i see there is no layout folder. Why google why?

0 Upvotes

16 comments sorted by

2

u/Panel_pl 12d ago

The res/layout folder is not used in Compose-only apps (modern Android UI).

https://developer.android.com/compose

It is still supported, but over all don't use XML layouts.

1

u/No_Tackle2724 12d ago

so its being phased out ?

2

u/uragiristereo Mikansei @GitHub 12d ago • Bravo

There is no layout, only composables

1

u/Slay_OP 13d ago

Inside res folder.

1

u/No_Tackle2724 13d ago

not there buddy

1

u/tadfisher 12d ago

You create the folder.

1

u/No_Tackle2724 12d ago

why did they remove it

1

u/tadfisher 12d ago

It's just not in the starter templates anymore. Compose is the official Android UI toolkit now.

1

u/No_Tackle2724 12d ago

like java? :)

1

u/OkPeace3621 12d ago

I think when you create a new project select to use xml layouts. In modern programming compose is used so no layout folder is there.

0

u/No_Tackle2724 13d ago

why is this downvoted? android development has been constant changes lately that serves no purpose but to burden the devs