CN108108221B - Method and device for switching real-time data display through designated operation - Google Patents

Method and device for switching real-time data display through designated operation Download PDF

Info

Publication number
CN108108221B
CN108108221B CN201810002229.7A CN201810002229A CN108108221B CN 108108221 B CN108108221 B CN 108108221B CN 201810002229 A CN201810002229 A CN 201810002229A CN 108108221 B CN108108221 B CN 108108221B
Authority
CN
China
Prior art keywords
panel
data
display
real
switching
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.)
Active
Application number
CN201810002229.7A
Other languages
Chinese (zh)
Other versions
CN108108221A (en
Inventor
汪刚
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinxin Ruitong Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810002229.7A priority Critical patent/CN108108221B/en
Publication of CN108108221A publication Critical patent/CN108108221A/en
Application granted granted Critical
Publication of CN108108221B publication Critical patent/CN108108221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for switching real-time data by designated operation, which are used in the field of application development of mobile terminals. The method provided by the invention comprises the following steps: creating a switching panel, and adding a scroll view on the switching panel; setting a display style of a switchable panel and marking the panel, wherein the switchable panel is a sub-panel defined on the switching panel; when the appointed operation of a user is detected, the first panel is switched to the second panel, meanwhile, server-side data is obtained, a preset display mode of the second panel is loaded, and the data is displayed in a specific area of the second panel in real time. According to the invention, the user can manually switch the data display panel as required, so that the efficiency of the user for acquiring information is ensured, and the user interaction experience of the mobile terminal is improved.

Description

Method and device for switching real-time data display through designated operation
Technical Field
The invention relates to the field of mobile terminal application development, in particular to a method and a device for switching real-time data display through designated operation.
Background
The popularization rate of the mobile phone is improved, and the terminal application development is brought. Because the existing mobile phone screen generally adopts a touch screen, the operation is convenient, and good user interaction experience is brought. Most of touch operation operations only need to be clicking, sliding, dragging and zooming, and the clicking and dragging operations can be directly performed on the preset window, but when the preset window contains real-time data, the real-time data updating display can be influenced.
Currently, for panel switching containing real-time data, in an existing switching method, an operation gesture of a user is received, interface display of different display styles can be achieved, and when an interface contains real-time data, touch screen operation can affect display of the real-time data. Therefore, the interface containing the real-time data does not support the operation behavior of the user generally, and when the user wants to check the real-time data quickly, the user only waits for the data update of the preset time of the system, so that the efficiency of the user for obtaining the information is reduced, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a method for switching real-time data display by appointed operation, which can receive the appointed operation of a user and switch an interface containing real-time data, and solves the problem that the information acquisition efficiency of the user is influenced by the conventional real-time data carousel switching.
In a first aspect, a method for switching real-time data display by designated operation is provided, which includes:
step a: creating a switching panel, and adding a scroll view on the switching panel; step b: setting a display style of a switchable panel and marking the switchable panel, wherein the switchable panel is a sub-panel defined on the switchable panel; step c: when the appointed operation of a user is detected, the first panel is switched to the second panel, meanwhile, server data are obtained, a preset display mode of the second panel is loaded, and the server data are displayed in a specific area of the second panel in real time.
In a second aspect, an apparatus for designating an operation to switch a real-time data display is provided, including:
a creation module: for creating a switching panel at which to add a scrolling view; setting a module: the display device is used for setting the display style of a panel which can be switched and marking the switchable panel; a switching module: and the display module is used for switching the first panel into the second panel when the specified operation of the user is detected, acquiring the server data, loading a preset display mode of the second panel, and displaying the server data in a specific area of the second panel in real time.
In a third aspect, a terminal device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
In the embodiment of the invention, the display style of the switchable panel in the switching panel is set, the real-time data is stored in the array and can be read in real time, and the updating of the display panel is completed by loading the real-time data and the display style during switching, so that a user can manually switch the data display panel as required, the efficiency of obtaining information by the user is ensured, and the user interaction experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flowchart of an embodiment of a method for switching real-time data display during a designated operation according to the present invention;
fig. 2 is a flowchart illustrating a specific implementation of the method S103 for switching real-time data display according to a specific operation provided in the embodiment of the present invention.
FIG. 3 is a block diagram of an embodiment of an apparatus for switching real-time data display during designated operations according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device for switching real-time data display by designated operation according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for switching real-time data display by appointed operation, which is used for switching an interface containing real-time data by touch screen operation and improving user interaction experience.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an implementation process of the method for switching real-time data display by designated operation according to the embodiment of the present invention includes:
s101, creating a switching panel, and adding a scroll view in the switching panel;
due to the fact that the switching panel has the rolling property, the switchable panel on the switching panel can be guaranteed to be capable of displaying in a rolling mode. And adding a scroll view to enable the switching panel to receive a touch screen event of a user for scroll display. Specifically, a ScrollView needs to be created, and the coordinate position, the proxy, the scrolling direction, the background color, whether scrolling is supported, whether interaction is supported, and the like of the ScrollView are set, wherein the proxy is mainly used for supporting the click-back of the user.
Optionally, the adding a scroll view on the switching panel further includes: judging whether the parent view exists in the current scroll view, if not, adding the scroll view into the controller, setting the time interval of automatic scrolling of the scroll view, and setting whether the scroll view is hidden. Determining whether a scroll view exists may avoid the scroll view from being repeatedly added to the interface.
Optionally, the process further includes adding a collectionView inside the ScrollView, where the collectionView can support a click event, and when the click event is monitored, the call may occur, and a specific link content, such as a web page, is displayed.
S102, setting a display style of a switchable panel, and marking the switchable panel, wherein the switchable panel is a sub-panel defined on the switchable panel;
the switching panel comprises a plurality of self-defined switchable panels, the switchable panels are sub-panels defined on the switching panel, and the switchable panels can be displayed in a display area and switched after receiving a trigger action. And carrying out style setting on the determined switchable panel, specifically, defining an array, initializing the array, configuring a data model for the display style, and storing setting parameters of the data model into the array. The style settings include the position, color, display content, text style, etc. of the displayable panel.
Optionally, the foregoing process further includes: and when the display style is loaded, reading the corresponding setting parameters in the array according to the number marked by the panel. The method comprises the steps that collectionView is arranged in ScrollView, the collectionView comprises a setCustomCell method, the setCustomCell method is called when loading is carried out, a setCustomCell function has a data index, each time the setCustomCell is called, setting parameters in an array can be obtained according to the index, a displayable panel can take the setting parameters, and preset patterns can be displayed on the display panel according to parameter setting.
S103, when the appointed operation of the user is detected, the first panel is switched to the second panel, meanwhile, the server data are obtained, the preset display style of the second panel is loaded, and the server data are displayed in the specific area of the second panel in real time.
The specified operation refers to a specific operation gesture such as a slide. The first panel is a current display panel, and the second panel is a displayable panel adjacent to the current display panel. When the operation appointed by the user is monitored, panel switching is carried out, and in the process of switching to terminal screen display, the switchable panel can display real-time data in a specific area besides displaying according to a preset mode, wherein the real-time data are data acquired from a server side.
For ease of understanding, according to the embodiment described in fig. 1, a method for switching the display of real-time data according to a specific operation in the embodiment of the present invention will be described as a practical application process:
fig. 2 shows a flow of S103 in fig. 1 when performing handover. The details are as follows:
in S201, after detecting a user-specified operation, that is, after detecting a finger touch, the ScrollView temporarily intercepts a touch event, and uses a timer, if the timer does not generate a finger movement event within a preset time interval, the ScrollView sends a tracking event to a clicked sub-view, and when the timer generates the finger movement event within the preset time interval, the ScrollView cancels the tracking to trigger scrolling by itself.
After the sensor of touch screen operation detects user's operation action, the terminal screen can accomplish the switching of display content, specifically, by the switching panel switch to display panel on, two steps of operation can be accomplished to inside procedure: s202 loads the display style and S203 loads the real-time data.
In S202, before loading the display pattern, a display pattern is defined for each switchable panel. The method for customizing the display style is setCustomCell, which has two parameters: the first is to set the cell, the second is the panel that can switch the first position of the panel, and the index identifies the panel that is currently showing.
The defined display style is pre-matched with the data model and the data model is stored in an array. And taking the self-defined cell through setCustomcell, and taking the data model corresponding to the index from the array. After the data model is taken, the user-defined panel can be assigned with the value by using configData according to the setting parameters of the data model, so that the loading of the display style on the display panel is completed. The configdata function is a separately configurable interface that can be used to configure server-side data when the server-side data is passed.
Before S203, S204 is performed, that is, the real-time data is obtained from the server, the data of the server is transmitted to the controller, the controller is transmitted to the switching panel, the data transmitted to the panel is a dictionary of the NSDictionary, and the received message is processed after the real-time update message is received. Defining a model DYANNUALMsgModel, wherein the model has a plurality of fields, each field corresponds to data in a dictionary one by one, converting the dictionary into the model by using an initWithDictionary function after receiving the dictionary, and storing the model in an array. .
When real-time data needs to be loaded, reading a model in the array, specifically, a collectionView is arranged in the ScrollView and comprises a setCustomcell method, calling the setCustomcell method when the real-time data needs to be loaded, wherein a setCustomcell function has data indexes, the model in the array can be obtained according to the indexes when the setCustomcell function is called, and the real-time data can be displayed on the display panel according to the model when the model can be obtained by the display panel.
If a new message is transmitted, the new message needs to be processed uniformly: and creating a dictionary, storing the acquired new data into the dictionary, and updating the dictionary every time the new data are transmitted. The dictionary is used for storing data transmitted by the server, the data comprises various types of real-time data, and when the data needs to be called, the data is directly taken out from the dictionary.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The above mainly describes a method for switching real-time data display by a designated operation, and a device for switching real-time data display by a designated operation will be described in detail below.
Fig. 3 is a block diagram illustrating an embodiment of an apparatus for switching display of real-time data according to a specific operation provided in an embodiment of the present invention.
The creation module 31: for creating a switching panel at which to add a scrolling view;
the setting module 32: the display device is used for setting the display style of a panel which can be switched and marking the panel, wherein the switchable panel is a sub-panel defined on the switching panel;
the switching module 33: when the appointed operation of the user is detected, the first panel is switched to the second panel, meanwhile, the server-side data is obtained, the preset display style of the second panel is loaded, and the data is displayed in the specific area of the second panel in real time
Fig. 4 is a schematic diagram of a structure of a terminal device for switching real-time data display by a specific operation according to an embodiment of the present invention. The terminal device is a mobile computer device with a touch screen, and includes but is not limited to a smart phone, a smart watch, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. As shown in fig. 4, the terminal device 4 of this embodiment includes: radio Frequency (RF) circuit 410, Radio module 420, memory 430, sensor 440, display unit 450, input unit 460, processor 470, and power supply 480, etc., it will be understood by those skilled in the art that the terminal device structure shown in fig. 4 does not constitute a limitation of the terminal device, and may include more or less components than those shown, or combine some components, or arrange different components.
The following specifically describes each constituent component of the terminal device with reference to fig. 4:
RF circuit 410 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 470; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The wireless module is based on short-distance wireless transmission technology, and the terminal equipment can help users to send and receive e-mails, browse webpages, access streaming media and the like through the wireless module 420, and provides wireless broadband internet access for the users. Although fig. 4 shows the wireless module 420, it is understood that it does not belong to the essential constitution of the terminal device and may be omitted entirely as needed within the scope not changing the essence of the invention.
The memory 430 may be used to store software programs and modules, and the processor 470 performs various functional applications of the terminal and data processing by operating the software programs and modules stored in the memory 430. The memory 430 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 430 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The terminal device may also include at least one sensor 440, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 451 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 451 and/or a backlight when the terminal is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device, detailed description is omitted here.
The display unit 450 may be used to display information input by a user or information provided to the user and various menus of the terminal. The Display unit 450 may include a Display panel 451, and optionally, the Display panel 451 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 461 may cover the display panel 451, and when the touch panel 461 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 470 to determine the type of the touch event, and then the processor 470 provides a corresponding visual output on the display panel 451 according to the type of the touch event. Although in fig. 4, the touch panel 461 and the display panel 451 are implemented as two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 461 and the display panel 451 may be integrated to implement the input and output functions of the terminal device.
The input unit 460 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the input unit 460 may include a touch panel 461 and other input devices 462. The touch panel 461, also called a touch screen, can collect the touch operations of the user (such as the operations of the user on the touch panel 461 or near the touch panel 461 by using any suitable object or accessory such as a finger, a stylus pen, etc.), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 461 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 470, and can receive and execute commands sent from the processor 470. In addition, the touch panel 461 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 460 may include other input devices 462 in addition to the touch panel 461. In particular, other input devices 462 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The processor 470 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 430 and calling data stored in the memory 430, thereby integrally monitoring the terminal. Alternatively, processor 470 may include one or more processing units; preferably, the processor 470 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 470.
The terminal device also includes a power supply 480 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 480 via a power management system that may be configured to manage charging, discharging, and power consumption.
Although not shown, the terminal device may further include a camera, a bluetooth module, and the like, which are not described herein.
In the embodiment of the present invention, the processor 470 included in the terminal further has the following functions: the method for adjusting the size of the screen display object comprises the following steps:
creating a switching panel, and adding a scroll view on the switching panel;
setting a display style of a switchable panel and marking the switchable panel, wherein the switchable panel is a sub-panel defined on the switchable panel;
when the appointed operation of a user is detected, the first panel is switched to the second panel, meanwhile, server data are obtained, a preset display mode of the second panel is loaded, and the server data are displayed in a specific area of the second panel in real time.
Further, the creating a toggle panel, adding a scroll view at the toggle panel further comprises:
judging whether the parent view exists in the current scroll view, if not, adding the scroll view to the controller;
further, the setting of the display style of the switchable panel is specifically as follows:
defining an array, configuring a data model for the display style, and storing the setting parameters of the data model into the array.
Further, the defining an array, configuring a data model for the display style, and storing the setting parameters of the data model in the array further includes:
and when the display style is loaded, reading the corresponding setting parameters in the array according to the serial number of the switchable panel label.
Further, when the specified operation of the user is detected, switching the first panel to the second panel, acquiring the server data, loading a preset display style of the second panel, and displaying the server data in the specific area of the second panel in real time further includes:
and when the appointed operation of the user is not detected at the preset time interval, switching the first panel into the second panel, acquiring the data of the server, loading the preset display style of the second panel, and displaying the data in the specific area of the second panel in real time.
Further, the obtaining server data is specifically:
defining a model, converting the data acquired by the server into the model, storing the model into an array, and converting the model in the array into data to be displayed in a specific area of a display panel in real time when the data of the server needs to be called.
Further, the defining a model, converting the data obtained by the server side into a model, storing the model into an array, and converting the model in the array into data to be displayed in real time in a specific area of a display panel when the server side data needs to be called further includes:
and creating a dictionary, storing the acquired new data into the dictionary, and updating the dictionary every time the new data are transmitted.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for switching real-time data display by designated operation is characterized by comprising the following steps:
step a: creating a switching panel, and adding a scroll view on the switching panel;
step b: setting a display style of a switchable panel and marking the switchable panel, wherein the switchable panel is a sub-panel defined on the switchable panel; the display style of the panel with switchable setting is specifically as follows: the setting of the display style of the switchable panel in the step b is specifically as follows:
step b 1: defining an array, configuring a data model for the display style, and storing the setting parameters of the data model into the array; the step b1 further includes:
step b 2: when a display style is loaded, reading corresponding setting parameters in the array according to the serial number of the switchable panel label;
step c: when the appointed operation of a user is detected, a first panel is switched to a second panel, real-time data needs to be acquired from a server side before the first panel is switched to the second panel, then a preset display mode of the second panel is loaded, and the server side data is displayed in a specific area of the second panel in real time.
2. The method of claim 1, wherein step a further comprises:
and judging whether the parent view exists in the current scroll view, and if not, adding the scroll view to the controller.
3. The method of claim 1, wherein step c further comprises:
when the appointed operation of a user is not detected in a preset time interval, a first panel is switched to a second panel, real-time data needs to be acquired from a server side before the first panel is switched to the second panel, then a preset display style of the second panel is loaded, and the server side data is displayed in a specific area of the second panel in real time.
4. The method according to claim 1, wherein step c specifically is:
step c 1: defining a model, converting the data acquired by the server into the model, storing the model into an array, and converting the model in the array into data to be displayed in a specific area of a display panel in real time when the data of the server needs to be called.
5. The method of claim 4, wherein said step c1 further comprises:
step c 2: and creating a dictionary, storing the acquired new data into the dictionary, and updating the dictionary every time the new data are transmitted.
6. An apparatus for designating an operation to switch a display of real-time data, comprising: a creation module: for creating a switching panel at which to add a scrolling view;
setting a module: the method comprises the steps of setting display styles of panels capable of being switched, and marking the panels capable of being switched; the display style of the panel which can be switched is specifically as follows: defining an array, configuring a data model for the display style, and storing the setting parameters of the data model into the array; when the display style is loaded, reading corresponding setting parameters in the array according to the number of the switchable panel label;
a switching module: the method is used for switching a first panel into a second panel when the specified operation of a user is detected, acquiring real-time data from a server side before the first panel is switched into the second panel, loading a preset display mode of the second panel, and displaying the data of the server side in a specific area of the second panel in real time.
7. An apparatus for designating an operation to switch a real-time data display, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the method for designating an operation to switch a real-time data display according to any one of claims 1 to 5.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of switching the display of real-time data according to any one of claims 1 to 5.
CN201810002229.7A 2018-01-02 2018-01-02 Method and device for switching real-time data display through designated operation Active CN108108221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002229.7A CN108108221B (en) 2018-01-02 2018-01-02 Method and device for switching real-time data display through designated operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002229.7A CN108108221B (en) 2018-01-02 2018-01-02 Method and device for switching real-time data display through designated operation

Publications (2)

Publication Number Publication Date
CN108108221A CN108108221A (en) 2018-06-01
CN108108221B true CN108108221B (en) 2021-09-07

Family

ID=62218396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002229.7A Active CN108108221B (en) 2018-01-02 2018-01-02 Method and device for switching real-time data display through designated operation

Country Status (1)

Country Link
CN (1) CN108108221B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191209B (en) * 2019-05-20 2021-06-22 维沃移动通信有限公司 Screen switching control method and terminal
CN114371902A (en) * 2022-01-11 2022-04-19 平安消费金融有限公司 Carousel picture display method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841726A (en) * 2011-06-21 2012-12-26 腾讯科技(深圳)有限公司 System, device and method for achieving a plurality of Tab pages under Android system
CN103914204A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for displaying and switching views
CN103914219A (en) * 2013-01-04 2014-07-09 深圳市金蝶中间件有限公司 Page control method and system
CN104765525A (en) * 2015-03-18 2015-07-08 百度在线网络技术(北京)有限公司 Operation interface switching method and device
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105630310A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and device for displaying titles during graph group switching
CN105760078A (en) * 2007-01-07 2016-07-13 苹果公司 Application Programming Interfaces For Scrolling Operations
CN106933482A (en) * 2015-12-30 2017-07-07 百度在线网络技术(北京)有限公司 A kind of method and apparatus for switching object
CN107239212A (en) * 2017-06-05 2017-10-10 武汉斗鱼网络科技有限公司 Segmentation selection view rendering method, device and user terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5192019B2 (en) * 2010-09-22 2013-05-08 シャープ株式会社 Image forming apparatus
CN104035703B (en) * 2013-03-07 2019-09-13 腾讯科技(深圳)有限公司 Change client, method and system that view is shown
US20140258919A1 (en) * 2013-03-07 2014-09-11 Tencent Technology (Shenzhen) Company Limited View mode switch of graphical user interface
CN103729112B (en) * 2014-01-10 2018-03-06 百度在线网络技术(北京)有限公司 The method and apparatus of display information
CN106155454B (en) * 2015-03-30 2020-06-16 阿里巴巴集团控股有限公司 Interface display method and device and electronic equipment
CN106649725B (en) * 2016-12-22 2019-11-29 前海节事科技(深圳)有限公司 A kind of page switching method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760078A (en) * 2007-01-07 2016-07-13 苹果公司 Application Programming Interfaces For Scrolling Operations
CN102841726A (en) * 2011-06-21 2012-12-26 腾讯科技(深圳)有限公司 System, device and method for achieving a plurality of Tab pages under Android system
CN103914204A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for displaying and switching views
CN103914219A (en) * 2013-01-04 2014-07-09 深圳市金蝶中间件有限公司 Page control method and system
CN104765525A (en) * 2015-03-18 2015-07-08 百度在线网络技术(北京)有限公司 Operation interface switching method and device
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105630310A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and device for displaying titles during graph group switching
CN106933482A (en) * 2015-12-30 2017-07-07 百度在线网络技术(北京)有限公司 A kind of method and apparatus for switching object
CN107239212A (en) * 2017-06-05 2017-10-10 武汉斗鱼网络科技有限公司 Segmentation selection view rendering method, device and user terminal

Also Published As

Publication number Publication date
CN108108221A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN106775420B (en) Application switching method and device and graphical user interface
CN104238918B (en) List View component slippage display methods and device
CN110941750B (en) Data linkage method and related device
CN106055480B (en) Method and terminal for debugging webpage
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106856543B (en) Picture display method and device and mobile terminal
CN107426802B (en) Terminal management method and device
CN105653220B (en) Screen data display method and device in remote control
CN105389104A (en) Application interface control controlling method and related equipment
CN102866916A (en) Terminal and method for dynamically loading application program interface
CN108475161A (en) Display methods and terminal
CN104571979A (en) Method and device for realizing split-screen views
CN107317918B (en) Parameter setting method and related product
CN110569078A (en) Method and device for preloading webpage-level program
US20140372930A1 (en) Method and device for displaying a list view through a sliding operation
CN110798511B (en) Method for predicting number of daily active users of target APP and computer equipment
CN107797723B (en) Display style switching method and terminal
CN108108221B (en) Method and device for switching real-time data display through designated operation
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution
CN104238931B (en) Information input method and device and electronic equipment
CN106293407B (en) Picture display method and terminal equipment
CN110336917B (en) Picture display method and device, storage medium and terminal
CN110719361B (en) Information transmission method, mobile terminal and storage medium
CN109309755B (en) Mobile terminal and APP display method and device
CN109068000B (en) Sensor control method, mobile terminal, and computer-readable 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240119

Address after: Room 8434, Building 3, No. 3 Xijing Road, Badachu High tech Park, Shijingshan District, Beijing, 100000

Patentee after: Beijing Jinxin Ruitong Technology Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.