MLQ
MLQ

Reputation: 13511

How to see the Graphical Layout of an XML file in a folder within /res/layout?

I can see the Graphical Layout of the XML file within the /res/layout folder, but not the ones inside my /res/layout/signup folder. Does this mean I can only create XML layout files inside /res/layout? The other tab when I open the XML files in /res/layout/signup is "Structure," not "Graphical Layout." I'm using Eclipse, by the way.

Update: I tried moving the files from /res/layout/signup to /res/layout and now I can see their graphical layouts. So is this really a problem with the folders?

Upvotes: 2

Views: 389

Answers (1)

edthethird
edthethird

Reputation: 6263

unfortunately /res/layout doesn't support child folders.

I'm pretty sure it's because R manages it's references as a List, and as such all layouts must be on the same "level".

Try appending what would be the folder as a prefix to the layout name--

signup_editform.xml signup_tips.xml ...

Upvotes: 2

Related Questions