Описание тега convertview

ConvertView represents one of the parameters of the `getView` method of various Android adapters, often used to improve the performance of the that adapter.

The convertView is a parameter in the getView method of all Android adapters. This convertView represents a recycled row view(if it is not null) which should always be used in the getView method to avoid the costly creation of objects every time the adapter is required to supply a row view from its getView method. A typical use pattern of the convertView in the getView method is:

  • check if the convertView is null.
  • if the convertView is null then the getView method must build the entire row view as there is no recycled view available.
  • if the convertView is not null then the getView method is supplying a recycled view on which the only needed actions are to setup the correct data/information.

More information about the convertView importance and use can be found in the Google I/O video about Android performance.