Alex Rivera | Logout

Android Organise Layouts into Sub Folders

Asked 2010-12-31T16:14:51.293
30

I have a fairly complex android app, the contents of the 'layout' folder is becoming increasingly large. I've tried to organise the individual layout xml files into sub folders e.g. layout/buttons/, layout/activity/, layout/views/ etc. This doesn't seem to work, the content of the folders in not parsed into the R. class.

Is there a way to do this?

Thanks!

Edit
Report

1 Answer

18

Another option is to use a prefix for your different views. Is not as nice as having different folder but it can introduce some order.

answered 2012-02-17T09:06:48.543

Your Answer