The android getView method is not executed because the layout file does not display the list.
One reason is that the layout file does not display the position in the list.
For example, the following Layout
Android: id = "@ + id/list_find"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
Android: cacheColorHint = "@ android: color/transparent"
Android: divider = "@ drawable/base_horizontal_line"
Android: dividerHeight = "1dp"
Android: fadingEdgeLength = "0dp"
Android: fastScrollEnabled = "true"
Android: paddingBottom = "10dp"/>
Android: id = "@ + id/list_article"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
Android: cacheColorHint = "@ android: color/transparent"
Android: divider = "@ drawable/base_horizontal_line"
Android: dividerHeight = "1dp"
Android: fadingEdgeLength = "0dp"
Android: fastScrollEnabled = "true"
Android: paddingBottom = "10dp"/>
The first name is the View height of list_find, Which is match_parent. The space has been fully occupied. As a result, the first View named list_article has no space to display. In this way, the View does not execute the getView method, data cannot be displayed.
In addition, if the getCount result of view is 0, the getView method is not executed.