r/androiddev • • 24d 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 23d 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 23d ago

so its being phased out ?

2

u/uragiristereo Mikansei @GitHub 23d ago • Bravo

There is no layout, only composables

→ More replies (1)

1

u/Slay_OP 24d ago

Inside res folder.

1

u/No_Tackle2724 24d ago

not there buddy

1

u/tadfisher 23d ago

You create the folder.

1

u/No_Tackle2724 23d ago

why did they remove it

1

u/tadfisher 23d ago

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

1

u/No_Tackle2724 23d ago

like java? :)

1

u/OkPeace3621 23d 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 24d ago

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