Defining an array of ids in arrays.xml?

view story

http://stackoverflow.com – I've created a custom ViewGroup that contains arbitrary child Views and it is expected to populate them. It needs to know the ids of it's children, so I defined an array of ids in arrays.xml and I'm passing that array as an attribute to my custom group, like this: my_layout.xml: <com.example.MyLayout ... custom:children="@array/four_children"> <TextView ... android:id="@+id.child1" /> <TextView ... android:id="@+id.child2" /> <TextView ... androi (HowTos)