Before I ask the question, allow me to paint a picture.
Say (for whatever reason you fancy) that instead of putting your xml layout in the typical res/layouts folder, we instead put it in the res/assets folder. This can be for any reason at all, but you are doing this.
How would you then go about inflating that xml file to a view. You cant simply call View.inflate(context, r.assets.yourview, false) because when the compiler builds your app, it does not assign R. values to the assets folder. Consider it your own little space to do what you want with.
The question here is, how do you go about getting an xml file into a view. Or maybe, how does LayoutInflater or View.Inflate (which uses LayoutInflater) go about making a view from an xml file?