When is the LayoutInflater used in Android
android
Solution
Basically it is needed to create (or fill) View based on XML file in runtime. For example if you need to generate views dynamically for your ListView items and that's all about it.
Problem
I have seen many answers here but I couldn't actually understand what it is and why is it used. Can someone give a little easy description to understand it? Thanks a lot