I have read the android documentation about getLayoutInflator and I am still not understanding what it does. Can someone give me a use case for this method or may be during what time would you want to call getLayoutInflator?
I have read the android documentation about getLayoutInflator and I am still not understanding
Share
XML Layouts in Android need to be Inflated (parsed into View objects) before they are used.
getLayoutInflator()gets you an instance of the LayoutInflator that will allow you to manually inflate layouts for specific uses.One example being in a Custom
ArrayAdapterto populate aListViewwith a Custom Layout.You need to manually inflate and populate your desired Layout for each individual list item in the
ArrayAdapter‘s overriddengetView()method.