how can an id be a parent of a layout folder?
in this code, it seems that R.id.layout_root is a parent of R.layout.custom_dialog, how can i do this in my folder tree?
View layout = inflater.inflate(R.layout.custom_dialog,
(ViewGroup) findViewById(R.id.layout_root));
Thanks
I don’t know if I understood well your question. Anyway, the inflate method that you are using simply inflates that custom_dialog layout as child of en existent VievGroup. You don’t have to do anything in your folders, there is no relationships between that code and the directory hierarchy.
These are the 2 parameters that the method gets (from the doc):
This small example maybe clarifies your doubts. This line of code:
is equivalent to: