xml - Accessing layout folder at runtime on Android -


i developing android app several actionbaractivity, each 1 displaying form. main actionbaractivity provides access form list. contentview each form has got own layout xml file.

now, every time want add new form, create new xml file, main actionbaractivity find automatically xml files, produce actionbaractivity of them , respective intents.

is possible?

you can find layout resource name this:

int layoutid = getcontext().getresources().getidentifier(layoutname, "layout"), getcontext().getpackagename()); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -