Inflating a view from inside the View constructor (Android)?

I'm not sure that it explains why none of the child views get sized, but the "layout_below" attribute of the "loopingCheck" element should probably be "@+id/enabledCheck" rather than "@+id/enabledBtn". Other than that, no obvious problems jump out.

The reason I'm inflating it this way is that the class (TrackHeader) is a nested/inner class and that seems to stop me from referring to the class directly in the XML. Well, when inflating, the layout doesn't work. The top node (RelativeLayout) gets sized correctly to fill the TrackHeader, but the children views don't get sized at all and remain (0, 0, 0, 0).

Thanx in advance and Happy coding!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions