CN112004160A - Interface interaction method, device and medium based on page list control - Google Patents
Interface interaction method, device and medium based on page list control Download PDFInfo
- Publication number
- CN112004160A CN112004160A CN202010680072.0A CN202010680072A CN112004160A CN 112004160 A CN112004160 A CN 112004160A CN 202010680072 A CN202010680072 A CN 202010680072A CN 112004160 A CN112004160 A CN 112004160A
- Authority
- CN
- China
- Prior art keywords
- page
- list control
- list
- interface
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4823—End-user interface for program selection using a channel name
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides an interface interaction method, equipment and a medium based on a page list control in the field of computers, wherein the method comprises the following steps: step S10, opening up a memory space, and caching the page-based list control into the memory space; step S20, initializing the page-based list control through the parameters of the page-based list control, and binding the page-based list control with the interface and the processing function respectively; step S30, assigning values to data to be displayed by the page list control; step S40, entering an interface to which the page-based list control belongs, and displaying the page-based list control; and step S50, performing interaction of scrolling and page turning on the page list control based on the received operation instruction. The invention has the advantages that: the expenditure of the memory is greatly saved, and the unified management of the controls is facilitated.
Description
Technical Field
The invention relates to the field of computers, in particular to an interface interaction method, equipment and a medium based on a page list control.
Background
In order to enable a user to obtain better experience, the application program is continuously subjected to iteration updating, and the memory for saving the running of the application program plays a key role in the high-quality running of the whole application program.
The user interactive interface is a window directly facing to a user, and the development of the user interactive interface is extremely important in order to enable the user to obtain excellent interface experience. The existing user interaction interface adopts a plurality of controls to carry out combined display, so that the expenditure of memory is greatly wasted, the running of an application program is tense, and the unified management of the controls is not convenient.
Therefore, how to provide an interface interaction method, device and medium based on a page list control, which saves memory overhead and facilitates unified management of the control, becomes a problem to be solved urgently.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an interface interaction method, device and medium based on a page list control, which can save memory overhead and facilitate unified management of the control.
In a first aspect, the present invention provides an interface interaction method based on a page list control, including the following steps:
step S10, opening up a memory space, and caching the page-based list control into the memory space;
step S20, initializing the page-based list control through the parameters of the page-based list control, and binding the page-based list control with the interface and the processing function respectively;
step S30, assigning values to data to be displayed by the page list control;
step S40, entering an interface to which the page-based list control belongs, and displaying the page-based list control;
and step S50, performing interaction of scrolling and page turning on the page list control based on the received operation instruction.
Further, in step S20, the initializing the page-by-page list control according to the parameters of the page-by-page list control specifically includes:
giving initial values to the parameters of the page-based list control, and further initializing the page-based list control;
the parameters comprise a page-by-page list control identification, an abscissa relative to the interface, an ordinate relative to the interface, a page-by-page list control width, a page-by-page list control height, a page-by-page list control ID, an affiliated interface ID, a style of a current list item when focus is possessed, a style of the current list item when focus is lost, a style of a non-current list item, a style width, a style height, the number of displayed maximum list items per page, intervals of all list items, a background style, display data and the number of the list items of the current page.
Further, in step S20, the binding the page-based list control with the interface and the processing function respectively is specifically:
binding the page-by-page list control with the interface based on the initialized parameters by using an interface binding function; and binding the page list control and the processing function based on the initialized parameters by utilizing an event binding function.
Further, in step S20, the processing function includes a response function and a page turning function.
Further, in step S40, the displaying the per-page list control specifically includes:
step S41, drawing the background style of the page list control on the interface based on the abscissa relative to the interface and the ordinate relative to the interface;
step S42, judging whether the number of the current page list items in the page list control is larger than 0, if so, entering step S43; if not, not displaying the page list control and ending the process;
step S43, each list item in the page list control is provided with a number, whether the number of the current list item is equal to the index value of the page list control or not is judged, if yes, the style of the current list item with the focus is drawn on the leftmost side of the current list item, and the display data is displayed; if not, drawing the style of the current list item when the focus is lost on the leftmost side of the current list item, and displaying the display data.
Further, the step S50 specifically includes:
step S51, receiving an operation instruction sent by a remote controller, judging whether the operation instruction is a rolling instruction or a page turning instruction, and if the operation instruction is the rolling instruction, entering step S52; if yes, go to step S53;
step S52, judging whether the sum of the scroll value of the scroll instruction and the index value of the per-page list control is less than or equal to 0 or greater than the number of the maximum list items displayed on each page, if so, entering step S53; if not, executing the rolling instruction;
and S53, calling a page turning function to execute the page turning instruction of the page list control, and entering S40.
In a second aspect, the present invention provides an interface interaction device based on a page-by-page list control, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method according to the first aspect when executing the program.
In a third aspect, the present invention provides an interface interaction medium based on a page-wise list control, on which a computer program is stored, which when executed by a processor implements the method of the first aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
after the parameters of the page-based list control are initialized, the page-based list control is respectively bound with the interface and the processing function, the page-based list control is displayed on the interface, namely, the display data is organized by pages, the display data is managed through a single page-based list control, and compared with the traditional mode that a plurality of controls are adopted for combined display, the method greatly saves the memory overhead and is convenient for unified management of the controls.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a flowchart of an interface interaction method based on a page list control according to the present invention.
FIG. 2 is a schematic structural diagram of an interface interaction device based on a page list control according to the present invention.
FIG. 3 is a schematic structural diagram of an interface interaction medium based on a page list control according to the present invention.
FIG. 4 is an effect diagram of the page list control of the present invention.
Detailed Description
By providing the interface interaction method, the interface interaction device and the interface interaction medium based on the page list control, the memory overhead is saved, and the unified management of the control is facilitated.
Please refer to fig. 1 to 4:
example one
The embodiment provides an interface interaction method based on a page list control, which comprises the following steps:
step S10, opening up a memory space, and caching the page-based list control into the memory space;
step S20, initializing the page-based list control through the parameters of the page-based list control, and binding the page-based list control with the interface and the processing function respectively;
step S30, assigning values to data to be displayed by the page list control; for example:
step S40, entering an interface to which the page-based list control belongs, and displaying the page-based list control;
and step S50, performing interaction of scrolling and page turning on the page list control based on the received operation instruction.
In step S20, initializing the page-by-page list control according to the parameters of the page-by-page list control specifically includes:
giving initial values to the parameters of the page-based list control, and further initializing the page-based list control;
the parameters comprise a page-by-page list control identification, an abscissa relative to the interface, an ordinate relative to the interface, a page-by-page list control width, a page-by-page list control height, a page-by-page list control ID, an affiliated interface ID, a style of a current list item when focus is possessed, a style of the current list item when focus is lost, a style of a non-current list item, a style width, a style height, the number of displayed maximum list items per page, intervals of all list items, a background style, display data and the number of the list items of the current page.
The parameters are tabulated as follows:
in step S20, the binding the page-based list control with the interface and the processing function respectively specifically includes:
binding a per-page list control with an interface based on the initialized parameters using an interface binding function (DEF _ LBP); namely DEF _ LBP (lpClassName, x, y, nWidth, nHeight, ID, parentID, selectAndFocusStyle, selectAndUnDoccoStyle, unselectStyle, styleWidth, styleHeight, numInPage, interval, BKStyle)
For example:
DEF_LBP("LBP",74,140,266,240,ID_LBP_List_TvProgram,ID_DLG
TvProgram,STYLE_MenuOrangeS_W266_H36,STYLE_MenuOrangeS_W266_H36,STYLE_RECBLUE_BAR_W266_H36,266,36,6,ID_SCR_TvProgram,40)。
binding a per-page list control with a handling function based on the initialized parameters using an event binding function (DEF _ LBP _ EVE); namely DEF _ LBP _ EVE (ID, Key _ Response _ Function, Page _ Turning _ Response _ Functi on).
For example:
DEF_LBP_EVE(ID_LBP_ChildLockMenu,UI_MainMenu_ChildLockMenu_Ke y,UI_MainMenu_ChildLockMenu_Change)。
in step S20, the processing function includes a response function and a page flip function. The Response Function is Key _ Response _ Function, and the Page flip Function is Page _ Turning _ Response _ Function.
In step S40, the displaying a page list control specifically includes:
step S41, drawing the background style (BKStyle) of the page list control on the interface based on the abscissa (X) relative to the interface and the ordinate (Y) relative to the interface;
step S42, judging whether the number (allNum) of the list items of the current page in the per-page list control is larger than 0, if so, entering step S43; if not, not displaying the page list control and ending the process;
step S43, each list item in the page list control is provided with a number, whether the number of the current list item is equal to the index value (index) of the page list control is judged, if yes, the style (selected AndFocusStyle) of the current list item with the focus is drawn on the leftmost side of the current list item, and the display data (data) is displayed; if not, drawing the style (select AndUnUocussStyle) of the current list item when the focus is lost on the leftmost side of the current list item, and displaying the display data (data).
The index value is an integer and is greater than or equal to 0, and the value is the remainder of the number of the current list item divided by the number of the displayed maximum list items per page minus 1.
For example, each page displays 3 maximum list items, the number of the current list item is 2, and the index value is 2% 3-1-2-1.
The step S50 specifically includes:
step S51, receiving an operation instruction (operation key value) sent by a remote controller, judging whether the operation instruction is a rolling instruction or a page turning instruction, and if the operation instruction is the rolling instruction, entering step S52; if yes, go to step S53;
step S52, judging whether the sum of the scroll value of the scroll instruction and the index value of the per-page list control is less than or equal to 0 or greater than the number of the maximum list items displayed on each page, if so, entering step S53; if not, executing the rolling instruction;
step S53, a Page flipping Function (Page _ Turning _ Response _ Function) is called to execute the Page flipping instruction of the Page-by-Page list control, and step S40 is entered, that is, the Page-by-Page list control is redrawn. And executing the page turning instruction, and informing a user of reorganizing the display data by a page list control, and if the display data is not reorganized, displaying the original display data.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, which is detailed in the second embodiment.
Example two
The embodiment provides an interface interaction device based on a page list control, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, any one of the first embodiment modes can be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a specific implementation of the electronic device in this embodiment and various variations thereof can be understood by those skilled in the art, and therefore, how to implement the method in the first embodiment of the present application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the third embodiment.
EXAMPLE III
The embodiment provides an interface interaction medium based on a page list control, and a computer program is stored on the interface interaction medium, and when the computer program is executed by a processor, any one of the first embodiment can be realized.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
after the parameters of the page-based list control are initialized, the page-based list control is respectively bound with the interface and the processing function, the page-based list control is displayed on the interface, namely, the display data is organized by pages, the display data is managed through a single page-based list control, and compared with the traditional mode that a plurality of controls are adopted for combined display, the method greatly saves the memory overhead and is convenient for unified management of the controls.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, 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 embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (8)
1. An interface interaction method based on a page list control is characterized in that: the method comprises the following steps:
step S10, opening up a memory space, and caching the page-based list control into the memory space;
step S20, initializing the page-based list control through the parameters of the page-based list control, and binding the page-based list control with the interface and the processing function respectively;
step S30, assigning values to data to be displayed by the page list control;
step S40, entering an interface to which the page-based list control belongs, and displaying the page-based list control;
and step S50, performing interaction of scrolling and page turning on the page list control based on the received operation instruction.
2. The method of claim 1, wherein the method comprises the following steps: in step S20, initializing the page-by-page list control according to the parameters of the page-by-page list control specifically includes:
giving initial values to the parameters of the page-based list control, and further initializing the page-based list control;
the parameters comprise a page-by-page list control identification, an abscissa relative to the interface, an ordinate relative to the interface, a page-by-page list control width, a page-by-page list control height, a page-by-page list control ID, an affiliated interface ID, a style of a current list item when focus is possessed, a style of the current list item when focus is lost, a style of a non-current list item, a style width, a style height, the number of displayed maximum list items per page, intervals of all list items, a background style, display data and the number of the list items of the current page.
3. The method of claim 1, wherein the method comprises the following steps: in step S20, the binding the page-based list control with the interface and the processing function respectively specifically includes:
binding the page-by-page list control with the interface based on the initialized parameters by using an interface binding function; and binding the page list control and the processing function based on the initialized parameters by utilizing an event binding function.
4. The method of claim 1, wherein the method comprises the following steps: in step S20, the processing function includes a response function and a page flip function.
5. The method of claim 2, wherein the method comprises the following steps: in step S40, the displaying a page list control specifically includes:
step S41, drawing the background style of the page list control on the interface based on the abscissa relative to the interface and the ordinate relative to the interface;
step S42, judging whether the number of the current page list items in the page list control is larger than 0, if so, entering step S43; if not, not displaying the page list control and ending the process;
step S43, each list item in the page list control is provided with a number, whether the number of the current list item is equal to the index value of the page list control or not is judged, if yes, the style of the current list item with the focus is drawn on the leftmost side of the current list item, and the display data is displayed; if not, drawing the style of the current list item when the focus is lost on the leftmost side of the current list item, and displaying the display data.
6. The method of claim 2, wherein the method comprises the following steps: the step S50 specifically includes:
step S51, receiving an operation instruction sent by a remote controller, judging whether the operation instruction is a rolling instruction or a page turning instruction, and if the operation instruction is the rolling instruction, entering step S52; if yes, go to step S53;
step S52, judging whether the sum of the scroll value of the scroll instruction and the index value of the per-page list control is less than or equal to 0 or greater than the number of the maximum list items displayed on each page, if so, entering step S53; if not, executing the rolling instruction;
and S53, calling a page turning function to execute the page turning instruction of the page list control, and entering S40.
7. An interface interaction device based on a page-wise list control, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the program.
8. An interface interaction medium based on a page-wise list control, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010680072.0A CN112004160B (en) | 2020-07-15 | 2020-07-15 | Interface interaction method, device and medium based on page list control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010680072.0A CN112004160B (en) | 2020-07-15 | 2020-07-15 | Interface interaction method, device and medium based on page list control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112004160A true CN112004160A (en) | 2020-11-27 |
CN112004160B CN112004160B (en) | 2022-04-05 |
Family
ID=73467164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010680072.0A Active CN112004160B (en) | 2020-07-15 | 2020-07-15 | Interface interaction method, device and medium based on page list control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112004160B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914213A (en) * | 2012-12-31 | 2014-07-09 | 北京新媒传信科技有限公司 | Method and device for eliminating page dithering |
CN106294523A (en) * | 2015-06-24 | 2017-01-04 | 华平智慧信息技术(深圳)有限公司 | A kind of list control and method showing big data item based on finite list item |
CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
CN109542563A (en) * | 2018-11-09 | 2019-03-29 | 优信数享(北京)信息技术有限公司 | One kind integrating multi-mode Android page management method, apparatus and system |
CN110888583A (en) * | 2019-12-20 | 2020-03-17 | 北京同邦卓益科技有限公司 | Page display method, system and device and electronic equipment |
-
2020
- 2020-07-15 CN CN202010680072.0A patent/CN112004160B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914213A (en) * | 2012-12-31 | 2014-07-09 | 北京新媒传信科技有限公司 | Method and device for eliminating page dithering |
CN106294523A (en) * | 2015-06-24 | 2017-01-04 | 华平智慧信息技术(深圳)有限公司 | A kind of list control and method showing big data item based on finite list item |
CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
CN109542563A (en) * | 2018-11-09 | 2019-03-29 | 优信数享(北京)信息技术有限公司 | One kind integrating multi-mode Android page management method, apparatus and system |
CN110888583A (en) * | 2019-12-20 | 2020-03-17 | 北京同邦卓益科技有限公司 | Page display method, system and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112004160B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8839142B2 (en) | Desktop system object removal | |
WO2017177931A1 (en) | Text information display method and apparatus, and mobile device | |
CN111581570B (en) | Page layout method and computing device | |
WO2020124398A1 (en) | Multi-image display method and computer-readable storage medium | |
CN106909383A (en) | The display methods and display device of application program | |
CN113986076A (en) | Icon display control method and device, electronic equipment and storage medium | |
CN111985203A (en) | Document processing method, document processing device and electronic equipment | |
CN112004160B (en) | Interface interaction method, device and medium based on page list control | |
CN103513855A (en) | Method and device for updating display pages | |
CN111158840B (en) | Image carousel method and device | |
CN111724455A (en) | Image processing method and electronic device | |
CN114385295B (en) | Method and system for displaying pictures in comparison waterfall flow mode | |
WO2022143337A1 (en) | Display control method and apparatus, and electronic device and storage medium | |
CN114797109A (en) | Object editing method and device, electronic equipment and storage medium | |
CN114089885A (en) | Application icon management method and device, electronic equipment and readable storage medium | |
CN109101143B (en) | Focus top setting method, storage medium, equipment and system suitable for page scrolling | |
CN113836872A (en) | Page diagram object editing method, device, equipment and readable medium | |
CN112363668A (en) | Multi-view interaction method and device, mobile terminal and computer equipment | |
CN111858395A (en) | Data management method and device | |
CN109547827A (en) | Data inputting method, device, equipment and storage medium | |
CN108229040A (en) | A kind of numerically controlled lathe component mounting method, device and computer readable storage medium | |
CN114217709B (en) | Page display method, reader and computer storage medium | |
CN102426517B (en) | Method and equipment for executing tool module in first page container | |
CN113723062A (en) | Report label editing method and device, storage medium and terminal equipment | |
CN116028155A (en) | Intelligent rendering method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |