Optimization method and system for realizing list item data display based on Recycler View control
By building a business data layer in the list item adapter and UI layer of the RecyclerView control, decoupling the independent data structure and basic behavior of the list item, and automatically creating UI instances through reflection, the problem of bloated multi-style list data structure is solved, and program stability and code reuse rate is improved.
Patent Information
- Application Number
- CN202411905223.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, the data structure of the multi-style list is bloated, resulting in poor program stability and low code reuse rate.
The business data layer is built in the list item adapter and UI layer of the RecyclerView control. By defining the first interface and the second interface, the independent data structure of the list item is decoupled from the basic behavior, and queries and creates UI instances through reflection.
Improves the stability of the program and code reuse rate, making the data display of list items more flexible and efficient.
Smart Images

Figure CN119883242A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an optimization method and system for displaying list item data based on a RecyclerView control. Background Art
[0002] In Android application development, the data display of list items is mainly realized through the RecyclerView control. The RecyclerView control supports multiple layout managers and animation effects. The steps to display the data of list items through the RecyclerView control are as follows:
[0003] 1. Define the XML layout file of the list items. If it is a multi-style list, define the XML layout files of multiple style list items;
[0004] 2. Define the data structure used to display the data of the list items. If it is a multi-style list, the data structure needs to include all the data fields required by the list items, and also define the list item type corresponding to each list item;
[0005] 3. Create a list adapter class that inherits RecyclerView.Adapter and implements the ViewHolder implementation class corresponding to each list item style inherited from RecyclerView.ViewHolder;
[0006] 4. Define and configure the Adapter and LayoutManager of the RecyclerView control on the page where the list item data needs to be displayed;
[0007] 5. Set the data of the list items obtained in the page to the defined Adapter to display the data of the list items.
[0008] Each RecyclerView control needs to repeat the above five steps when displaying the data of list items. That is, repeated code writing is required, which is inefficient. The data structure of the multi-style list must contain the data fields required by all list items, which will make the data structure bloated and difficult to maintain, and affect the stability of the program. Summary of the Invention
[0009] The technical problem to be solved by the present invention is: the present invention provides an optimization method and system for displaying list item data based on the RecyclerView control, which solves the bloated problem of the data structure of multi-style lists and improves the stability of the program and the reuse rate of the code.
[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0011] In a first aspect, the present invention provides an optimization method for displaying list item data based on a RecyclerView control, comprising:
[0012] Construct a business data layer in the list item adapter and list item UI layer of the RecyclerView control, define a first interface and a second interface in the business data layer, and associate the first interface with the second interface, where the first interface is an independent data structure of the list item and the second interface is the basic behavior of the list item of the RecyclerView control;
[0013] In the business data layer, based on the abstract class of the RecyclerView control, a first abstract class that inherits the second interface is defined, where the first abstract class is a UI for a list item of the RecyclerView control, and the first abstract class includes a subtype of the first interface and a subtype of ViewBinding;
[0014] In the list item adapter, a reflection method is used to automatically query and create an instance corresponding to the UI of the list item of the RecyclerView control, so as to display the data of the list item.
[0015] The beneficial effects of the present invention are as follows: by constructing a business data layer in the list item adapter and the list item UI layer of the RecyclerView control, that is, isolating the list adapter from the list item UI layer, bridging through the business data layer, achieving high decoupling, defining a first interface and a second interface in the business data layer, and associating the first interface and the second interface, that is, associating the independent data structure of the list item of the RecyclerView control with the basic behavior of the list item, so that the independent data structure of the list item focuses on the data of a single list item, is no longer a bloated data structure, and improves the stability of the program, based on an inherited second interface defined by the abstract class of the RecyclerView control The first abstract class, that is, defines the UI of the list items of the RecyclerView control, and automatically queries and creates instances corresponding to the UI of the list items of the RecyclerView control through the list item adapter, thereby realizing the display of data list items. That is, the data display of the list items is liberated from the tedious work, so that the focus of the final list item data display is on the data type and UI, without having to pay attention to the style type of the list item, nor how the list item UI is associated with the ViewHolder implementation class and the list adapter of RecyclerView.Adapter. When the data type remains unchanged, it can be migrated and reused at any time, thereby improving the code reuse rate.
[0016] Optionally, the basic behavior of the list items of the RecyclerView control includes N lifecycle methods, and different lifecycle methods are used to perform corresponding operations at different stages.
[0017] According to the above description, the basic behavior includes N lifecycle methods, which ensures the flexibility and diversity of UI style operations.
[0018] Optionally, automatically querying and creating an instance corresponding to the UI of the list item of the RecyclerView control by reflection in the list item adapter to display the data of the list item includes:
[0019] Obtain the first abstract interface, the second abstract interface, and the third abstract interface;
[0020] The first abstract interface obtains the position of the list item of the RecyclerView control, and obtains the view type through the position of the list item of the RecyclerView control. The second abstract interface obtains the corresponding proxy class according to the view type, and traverses the parent class of the proxy class to filter out the parent class that meets the subtype of the ViewBinding, obtains the generic parameters of the filtered parent class, creates an instance of the proxy class according to the generic parameters by reflection, and returns the instance of the proxy class to the UI of the list item of the RecyclerView control. The third abstract interface calls the second interface according to the position of the list item of the RecyclerView control to operate the data of the list item of the RecyclerView control and the UI corresponding to the data, so as to display the data of the list item.
[0021] Optionally, the first abstract interface obtains a position of a data list item, and obtaining a view type through the position includes:
[0022] Obtain the name of the list item of the RecyclerView control, perform hash calculation on the name of the list item of the RecyclerView control to obtain a hash value, use the hash value as the type identifier of the view type, and use a SparseArray data structure to cache a specific embodiment of the implementation class of the second interface corresponding to the list item of the RecyclerView control according to the type identifier.
[0023] According to the above description, the hash value corresponding to the name of the list item is used as the type identifier of the view type, and the specific embodiment of the implementation class of the second interface corresponding to the list item is cached according to the type identifier to ensure the accuracy of the query and application of the specific embodiment. At the same time, the SparseArray data structure is used for caching to facilitate subsequent queries and improve query efficiency.
[0024] Optionally, the first abstract interface is getItemViewType, the second abstract interface is onCreateViewHolder, and the third abstract interface is onBindViewHolder.
[0025] Optionally, automatically querying and creating an instance corresponding to the UI of the list item of the RecyclerView control by reflection in the list item adapter to display the data of the list item includes:
[0026] Based on the list item adapter, a first basic adapter and a second basic adapter are defined for the business data layer. The first basic adapter is a basic adapter that provides synchronous UI thread data update, and the second basic adapter is a basic adapter that provides asynchronous data difference calculation and local data update using the DiffUtil solution.
[0027] The data of the list items are displayed according to the first basic adapter and the second basic adapter.
[0028] According to the above description, a specific implementation class is provided to the business data layer, that is, a synchronous and asynchronous basic adapter is provided to meet the diverse data scenario requirements of the business data layer and optimize the user experience.
[0029] Optionally, the first basic adapter stores general code of the RecyclerView control.
[0030] According to the above description, the common code of the RecyclerView control is stored in the first basic adapter for the business data layer, which solves the problem of duplicate code in the traditional RecyclerView control when implementing data display of list items and improves the code reuse rate.
[0031] Optionally, the defining of a first basic adapter oriented to the business data layer based on the list item adapter is directly defined in a display page corresponding to the data of the list item.
[0032] According to the above description, it can be seen that it supports directly defining the first basic adapter in the display page corresponding to the data of the list item, which optimizes the user experience in a simple and direct way.
[0033] Optionally, the displaying the list item data according to the first basic adapter and the second basic adapter includes:
[0034] Based on the list item adapter, a third basic adapter and a fourth basic adapter are defined for the business data layer. The third basic adapter is a universal adapter for list item selection function, and the fourth basic adapter is a universal adapter for responsive list display that responds to window size changes.
[0035] The data of the list items are displayed according to the first basic adapter, the second basic adapter, the third basic adapter and the fourth basic adapter.
[0036] According to the above description, a universal adapter for list item selection and a universal adapter for responsive list display that responds to window size changes are provided. That is, the function of displaying data in list items is expanded to adapt to diverse scenario requirements and meet user experience.
[0037] In a second aspect, the present invention provides an optimization system for displaying list item data based on a RecyclerView control, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the optimization method for displaying list item data based on a RecyclerView control as described in the first aspect is implemented.
[0038] Among them, the technical effects corresponding to the optimization system for displaying list item data based on the RecyclerView control provided in the second aspect refer to the relevant description of the optimization method for displaying list item data based on the RecyclerView control provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of an optimization method for displaying list item data based on a RecyclerView control provided in this embodiment;
[0040] Figure 2 This is a schematic diagram of the overall process of an optimization method for displaying list item data based on a RecyclerView control provided in this embodiment;
[0041] Figure 3 This is a schematic diagram of the structure of an optimization system for displaying list item data based on a RecyclerView control provided in this embodiment.
[0042] [Description of Reference Numerals]
[0043] 1. An optimization system for displaying list item data based on the RecyclerView control;
[0044] 2. Processor;
[0045] 3. Memory. DETAILED DESCRIPTION
[0046] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0047] Example 1
[0048] Please refer to Figures 1 to 2 The present invention provides an optimization method for displaying list item data based on a RecyclerView control, comprising the steps of:
[0049] S1. Build a business data layer in the list item adapter and list item UI layer of the RecyclerView control, define a first interface and a second interface in the business data layer, and associate the first interface with the second interface. The first interface is an independent data structure of the list item, and the second interface is the basic behavior of the list item of the RecyclerView control.
[0050] In this embodiment, if Figure 2 As shown, a business data layer is constructed in the list item adapter and list item UI layer of the RecyclerView control, that is, a business data layer is added to the RecyclerView.Adapter and RecyclerView.ViewHolder layers, and a first interface and a second interface are defined in the business data layer. The first interface is an independent data structure of the list item, and the second interface is the basic behavior of the list item of the RecyclerView control. The basic behavior includes N lifecycle methods. Different lifecycle methods are used to perform corresponding operations at different stages. The first interface is associated with the second interface, that is, the independent data structure of the list item is associated with the basic behavior of the list item, so that the independent data structure of the list item focuses on the data of a single list item.
[0051] In a specific embodiment, the first interface may be defined as: IVhProxy interface, and the second interface may be defined as: IViewHolder interface.
[0052] S2. Define a first abstract class that inherits the second interface in the business data layer based on the abstract class of the RecyclerView control, where the first abstract class is a UI for a list item of the RecyclerView control, and the first abstract class includes a subtype of the first interface and a subtype of ViewBinding;
[0053] In this embodiment, if Figure 2 As shown, in the business data layer, a first abstract class that inherits the second interface is defined based on the abstract class of the RecyclerView control, that is, a UI of a list item of the RecyclerView control that inherits the second interface is defined, wherein the UI includes UI style and view behavior. Since the abstract class of the RecyclerView control itself is an abstract class definition, a functional code encapsulation of a first abstract class that inherits the second interface is provided by abstractly implementing the unified public functions of the abstract class of the RecyclerView control, and the first abstract class includes a subtype of the first interface and a subtype of ViewBinding. Therefore, the first abstract class can automatically associate the first interface with the second interface.
[0054] In a specific embodiment, the first abstract class can be represented as: AbsVhProxy<T:IVhProxy,VB:ViewBinding> :IViewHolder <t>An abstract class, where IVhProxy represents the first interface, IViewHolder represents the second interface, T represents a data list list of data types, and VB represents an instance corresponding to the XML layout of the list item.
[0055] S3. Automatically query and create an instance corresponding to the UI of the list item of the RecyclerView control in the list item adapter by reflection, so as to display the data of the list item.
[0056] In this embodiment, if Figure 2 As shown, reflection is used in the list item adapter to automatically query and create instances corresponding to the UI of the list items of the RecyclerView control. Since the data types are limited, this embodiment processes the data types. The limited data types can be added with the UI styles that need to be supported, and one data type can correspond to multiple UI styles.
[0057] In a specific embodiment, the first abstract class is: AbsVhProxy<T:IVhProxy,VB:ViewBinding> :IViewHolder <t>When the class is abstract, the list item adapter is AbsAdapter <t:ivhproxy>, in the list item adapter: AbsAdapter <t:ivhproxy>In the internal, reflection is used to automatically query and create the instance corresponding to the UI of the list item of the RecyclerView control, and IViewHolder is used <t>The class full path name hashCode is automatically cached as the ItemViewType value to avoid repeated creation.
[0058] At this time, step S3 includes:
[0059] S31. Acquire a first abstract interface, a second abstract interface, and a third abstract interface;
[0060] In this embodiment, the first abstract interface is getItemViewType, the second abstract interface is onCreateViewHolder, and the third abstract interface is onBindViewHolder.
[0061] S32. The first abstract interface obtains the position of the list item of the RecyclerView control, and obtains the view type through the position of the list item of the RecyclerView control. The second abstract interface obtains the corresponding proxy class according to the view type, and traverses the parent class of the proxy class to filter out the parent class that meets the subtype of the ViewBinding, obtains the generic parameters of the filtered parent class, creates an instance of the proxy class according to the generic parameters by reflection, and returns the instance of the proxy class to the UI of the list item of the RecyclerView control. The third abstract interface calls the second interface according to the position of the list item of the RecyclerView control to operate the data of the list item of the RecyclerView control and the UI corresponding to the data, so as to display the data of the list item.
[0062] In this embodiment, if Figure 2 As shown, the first abstract interface, namely, getItemViewType, obtains the position of the list item of the RecyclerView control, and further obtains the view type through the obtained position. The second abstract interface, namely, onCreateViewHolder, obtains the corresponding proxy class according to the view type obtained by the first abstract interface, and traverses the parent class of the proxy class to filter out the parent class of the subtype that conforms to ViewBinding, obtains the generic parameters of the filtered parent class, and calls the inflate method by reflection to generate an instance of the proxy class according to the generic parameters, and calls the method of the second abstract interface to return the instance of the proxy class to the UI of the list item of the RecyclerView control. The third abstract interface, namely, onBindViewHolder, calls the second interface according to the position of the list item to operate the data of the list item of the RecyclerView control and the UI corresponding to the data, so as to display the data of the list item.
[0063] At this time, in step S32, the first abstract interface obtains the position of the data list item, and obtaining the view type through the position includes:
[0064] S321. Obtain the name of the list item of the RecyclerView control, and perform hash calculation on the name of the list item of the RecyclerView control to obtain a hash value, use the hash value as the type identifier of the view type, and use a SparseArray data structure to cache a specific embodiment of the implementation class of the second interface corresponding to the list item of the RecyclerView control according to the type identifier.
[0065] In this embodiment, if Figure 2 As shown, when the first abstract interface obtains the view type, it also calculates the hash value of the name of the obtained list item, uses the hash value as the type identifier of the view type, and uses the SparseArray data structure to cache the specific embodiment of the implementation class of the second interface corresponding to the list item according to the type identifier.
[0066] At this time, step S3 includes:
[0067] S33. Define a first basic adapter and a second basic adapter for the business data layer based on the list item adapter. The first basic adapter provides synchronous UI thread data updates, and the second basic adapter provides asynchronous data difference calculation and local data updates using the DiffUtil solution.
[0068] S34: Display the data of the list item according to the first basic adapter and the second basic adapter.
[0069] In this embodiment, if Figure 2 As shown, based on the list item adapter, a first basic adapter and a second basic adapter for the business data layer are defined, that is, a basic adapter that provides synchronous UI thread update data: BasicAdapter, and a basic adapter that provides asynchronous data difference calculation using the DiffUtil solution for local update data: BasicDiffAdapter, that is, based on the list item adapter: AbsAdapter <t:ivhproxy>Provide implementation of BasicAdapter <t:ivhproxy>and BasicDiffAdapter <t:ivhproxy>A basic general implementation, wherein the first basic adapter stores the general code of the RecyclerView control, and when defining the first basic adapter, it can be defined directly in the display page corresponding to the data of the list item, and the data of the list item is displayed according to the first basic adapter and the second basic adapter.
[0070] At this time, step S34 includes:
[0071] S341: Based on the list item adapter, define a third basic adapter and a fourth basic adapter for the business data layer, wherein the third basic adapter is a universal adapter for list item selection, and the fourth basic adapter is a universal adapter for responsive list display that responds to window size changes.
[0072] S342: Display the data of the list items according to the first basic adapter, the second basic adapter, the third basic adapter, and the fourth basic adapter.
[0073] In this embodiment, if Figure 2 As shown, a third basic adapter and a fourth basic adapter for the business data layer are defined based on the list item adapter, that is, a general adapter for list item selection function: SelectionWrapperAdapter and a general adapter for responsive list display that responds to window size changes: WindowSizeWrapperAdapter are defined. The data of the list items is displayed according to the first basic adapter, the second basic adapter, the third basic adapter and the fourth basic adapter.
[0074] Example 2
[0075] Please refer to Figure 3 The present invention provides an optimization system for displaying list item data based on a RecyclerView control, comprising a memory 3, a processor 2, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, the steps in Example 1 are implemented.
[0076] Since the systems / devices described in the above embodiments of the present invention are systems / devices used to implement the methods of the above embodiments of the present invention, those skilled in the art will be able to understand the specific structures and variations of these systems / devices based on the methods described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the methods of the above embodiments of the present invention are within the scope of protection of the present invention.
[0077] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions.
[0079] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several distinct components and by means of a suitably programmed computer. In claims enumerating several means, several of these means may be embodied by one and the same hardware. The use of the words first, second, third etc. is for convenience only and does not indicate any order. These words may be understood as part of the component name.
[0080] In addition, it should be noted that, in the description of this specification, the terms "one embodiment," "some embodiments," "an embodiment," "an example," "a specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in conjunction with the embodiment or example as being included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification, unless they are mutually inconsistent.
[0081] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after learning the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0082] Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if such modifications and variations fall within the scope of the claims and their equivalents, the present invention shall also include such modifications and variations.< / t:ivhproxy> < / t:ivhproxy> < / t:ivhproxy> < / t> < / t:ivhproxy> < / t:ivhproxy> < / t> < / t>
Claims
1. An optimization method for displaying list item data based on a RecyclerView control, characterized in that: include: Construct a business data layer in the list item adapter and the list item UI layer of the RecyclerView control, define a first interface and a second interface in the business data layer, and associate the first interface with the second interface, wherein the first interface is an independent data structure of the list item, and the second interface is a basic behavior of the list item of the RecyclerView control; In the business data layer, based on the abstract class of the RecyclerView control, a first abstract class that inherits the second interface is defined, wherein the first abstract class is a UI of a list item of the RecyclerView control, and the first abstract class includes a subtype of the first interface and a subtype of ViewBinding; In the list item adapter, a reflection method is adopted to automatically query and create an instance corresponding to the UI of the list item of the RecyclerView control, so as to display the data of the list item.
2. The optimization method for displaying list item data based on the RecyclerView control according to claim 1, characterized in that: The basic behaviors of the list items of the RecyclerView control include N lifecycle methods, and different lifecycle methods are used to perform corresponding operations at different stages.
3. The optimization method for displaying list item data based on the RecyclerView control according to claim 1, characterized in that: The automatically querying and creating an instance corresponding to the UI of the list item of the RecyclerView control by reflection in the list item adapter to display the data of the list item includes: Get the first abstract interface, the second abstract interface and the third abstract interface; The first abstract interface obtains the position of the list item of the RecyclerView control, and obtains the view type through the position of the list item of the RecyclerView control. The second abstract interface obtains the corresponding proxy class according to the view type, and traverses the parent classes of the proxy class to filter out the parent classes that conform to the subtype of the ViewBinding, obtains the generic parameters of the filtered parent classes, creates an instance of the proxy class according to the generic parameters by reflection, and returns the instance of the proxy class to the UI of the list item of the RecyclerView control. The third abstract interface calls the second interface according to the position of the list item of the RecyclerView control to operate the data of the list item of the RecyclerView control and the UI corresponding to the data, so as to display the data of the list item.
4. The optimization method for displaying list item data based on the RecyclerView control according to claim 3, characterized in that: The first abstract interface obtains the position of the data list item, and obtaining the view type through the position includes: Get the name of the list item of the RecyclerView control, perform hash calculation on the name of the list item of the RecyclerView control to obtain a hash value, use the hash value as the type identifier of the view type, and use a SparseArray data structure to cache a specific implementation example of the second interface implementation class corresponding to the list item of the RecyclerView control according to the type identifier.
5. The optimization method for displaying list item data based on the RecyclerView control according to claim 3, characterized in that: The first abstract interface is getItemViewType, the second abstract interface is onCreateViewHolder, and the third abstract interface is onBindViewHolder.
6. The optimization method for displaying list item data based on the RecyclerView control according to claim 1, characterized in that: Automatically querying and creating an instance corresponding to the UI of the list item of the RecyclerView control by reflection in the list item adapter to display the data of the list item includes: Based on the list item adapter, a first basic adapter and a second basic adapter facing the business data layer are defined, wherein the first basic adapter is a basic adapter that provides synchronous UI thread data update, and the second basic adapter is a basic adapter that provides asynchronous data difference calculation and local data update using the DiffUtil solution; The data of the list items are displayed according to the first basic adapter and the second basic adapter.
7. The optimization method for displaying list item data based on the RecyclerView control according to claim 6, characterized in that: The first basic adapter stores the general code of the RecyclerView control.
8. The optimization method for displaying list item data based on the RecyclerView control according to claim 6, characterized in that: The definition of a first basic adapter facing the business data layer based on the list item adapter is directly defined in a display page corresponding to the data of the list item.
9. The optimization method for displaying list item data based on the RecyclerView control according to claim 6, characterized in that: The displaying of the data of the list item according to the first basic adapter and the second basic adapter includes: Based on the list item adapter, a third basic adapter and a fourth basic adapter facing the business data layer are defined, wherein the third basic adapter is a universal adapter for list item selection function, and the fourth basic adapter is a universal adapter for responsive list display that responds to window size changes; The data of the list items are displayed according to the first basic adapter, the second basic adapter, the third basic adapter and the fourth basic adapter.
10. An optimization system for displaying list item data based on a RecyclerView control, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.