Timeline for How to specify id when uses include in layout xml file
Current License: CC BY-SA 2.5
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 13, 2015 at 13:29 | comment | added | nww04 | It appears to me if I set the id first (in include tag, it overrides the id from the included layout, right?), I will have the include tag to be initially '@+id/cell1' and then the layout='@layout/workspace_screen' will override the android:id again with the id of the included layout. @Ron Romero's answers makes more sense to me. | |
| Jul 2, 2015 at 2:02 | comment | added | Fadils | ID in <include> = root's ID in included layout | |
| Sep 20, 2013 at 9:48 | comment | added | Tom R | This is correct. The way to reference the root element in the included layout file is by the id given in the 'include' tag (unless it is not given). | |
| Nov 19, 2009 at 0:01 | history | answered | Daniel Yankowsky | CC BY-SA 2.5 |