Supercharge Your Innovation With Domain-Expert AI Agents!

Method for dynamically combining Android layouts

A layout and Android technology, applied in the field of Internet TV, can solve problems such as non-function and flexible display

Pending Publication Date: 2021-02-12
海看网络科技(山东)股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The list component RecyclerView officially launched by Android is a new list implementation after ListView. Compared with ListView, RecyclerView has obvious advantages in cache processing, layout optimization, performance optimization, etc., but it cannot flexibly display non-functional and different style layout

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for dynamically combining Android layouts
  • Method for dynamically combining Android layouts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention is described in further detail now in conjunction with accompanying drawing.

[0039] Such as figure 1 Diagram of dynamic layout list shown

[0040] As shown in the figure, the entire page is a RecyclerView list, which contains 15 list items with different styles and functions, then the data list viewInfos used to render data also contains 15 elements, and the order of the data list elements corresponds to the list The order of items in the RecyclerView list.

[0041] Among them, the two list items in the first row are two video playback boxes. In their configuration items, the width spanCount is 24, which is 1 / 2 of the list width, the height is 300 pixels, and the type viewType is 310101 and 310102 respectively. The layout file The name layoutName is holder_dynamic_video, where the first two digits 31 represent the type of the video playback box, the middle two digits 01 represent the first row, and the last digits 01 and 02 represent the first ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for dynamically combining Android layouts, which comprises the following steps of: initializing a layout manager, initializing a self-defined Adapter list adapter, acquiring configuration data of a Recycler View list from a server, analyzing the configuration data, converting the configuration data into a List data list viewInfos, transmitting the viewInfos to theself-defined Adapter, calling a refreshing method, triggering a subsequent rendering process, creating and rendering a single list item, and after the creation and rendering of the list item are completed, enabling the Recycler View to achieve the final layout through the GridLayoutManager. According to the application, the self-defined Adapter adapter is provided for the Android list component RecyclerView, so that the Android list component Recycler View becomes a list container capable of accommodating display units with different functions and different styles. Configuration data of a server side are read, functional components are combined together, and display styles of the functional components are adjusted during rendering, so that different display effects are flexibly presented,namely, a dynamic list container is achieved.

Description

technical field [0001] The invention relates to the technical field of Internet TV, in particular to a method for dynamically combining Android layouts. Background technique [0002] IPTV, also known as interactive network television, is a new media service jointly operated by operators and broadcast control platforms, providing users with telephone, broadband, and television services through optical fibers. In addition to live broadcast channels, IPTV also provides rich interactive information services such as on-demand, content playback, special topics, applications, communities, and life. At present, IPTV, as a new digital media in the form of TV, is increasingly valued by users and has become an irresistible trend. [0003] Android is a mobile operating system released by Google on December 23, 2008, mainly used on mobile phones and tablets. At present, the Android system has experienced more than ten years of development, and a total of 11 major system versions have b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F9/445G06F9/451H04N21/431
CPCG06F8/38G06F9/451G06F9/4451H04N21/431
Inventor 王琦魏代邦张晓刚
Owner 海看网络科技(山东)股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More