I am a newbie to android, I know this question has already been asked but i couldn\'t get a satisfactory explanation. My doubts are:
The third parameter in the inflate method is of boolean return type.
There is a lot of confusion(Will get to this part soon) when it comes to choose the value of the parameter.
Its Simple
1) When attachToRoot = false it means
Dont attach the child view to parent "Right Now", Add it later.
2) When attachToRoot = true it means
Attach the childView to parent "Right Now".
In both cases the child view will be added to parentView eventually.
Its just the matter of time.
If you want to read in more details you can refer --->>> this answer
(Because i can not post duplicate answer here, Just want to help).