Mithun Sreedharan
Mithun Sreedharan

Reputation: 51254

Android layouts under subfolders

Is it possible to create subfolders under res/layout and place the layout XML files there so that one can call a view like setContentView(R.layout.questions.create); or setContentView(R.layout.questions/create); ?

Upvotes: 5

Views: 769

Answers (1)

Sebastian Roth
Sebastian Roth

Reputation: 11537

From my tests, no.

You might want to consider a naming convention:

  • questions_create
  • questions_list
  • answers_list

Or, investigate Android library projects: http://androidblogger.blogspot.com/2010/09/android-library-projects.html - seems pretty good to add more structure.

Upvotes: 8

Related Questions