createView
Creates a view.
Parameters
context
The Android Context of the view.
parent
Optional view to be the parent of the created view (if attachToParent is true
), or else simply an object that provides a set of LayoutParams values for root of the returned hierarchy (if attachToParent is false
).
attachToParent
Whether the view hierarchy should be attached to the parent parameter. If false, parent can only be used to create the correct subclass of LayoutParams for the root view in the XML.