| java.lang.Object | |
| ↳ | android.view.LayoutInflater layout inflater is a java class that extends object There are two ways in which we can make a view (textView, imageView, ...,), First we create the view in Xml and then call the same in Java by findViewById method. Second using the LayoutInflater here we get the layout and define the views. The first one is simple and is used only to display few textView,imageView...., If the list of item is large, we need to use the inflater method to reduce the code and also to reduce the memory consumed. Instantiates a layout XML file into its correspondingYou dont need to do something like xyz.findViewById. The context of your app is set to thatlayout file and all |
Sunday, April 8, 2018
What does LayoutInflater class do?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment