CN109947524B - Interface display method, wearable device and computer readable storage medium - Google Patents
Interface display method, wearable device and computer readable storage medium Download PDFInfo
- Publication number
- CN109947524B CN109947524B CN201910247585.XA CN201910247585A CN109947524B CN 109947524 B CN109947524 B CN 109947524B CN 201910247585 A CN201910247585 A CN 201910247585A CN 109947524 B CN109947524 B CN 109947524B
- Authority
- CN
- China
- Prior art keywords
- interface
- screen
- bullet frame
- wearable device
- parameters
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses an interface display method, a wearable device and a computer readable storage medium, comprising the following steps: when the wearable device detects that a bullet frame interface is ready to be displayed, determining whether the bullet frame interface is a third-party application interface or not; if the bullet frame interface is a third party application interface, acquiring layout parameters of the bullet frame interface; determining whether the bullet box interface is matched with a screen interface in the wearable device based on the layout parameters; and if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface. The application solves the technical problem of how to improve the display effect of the elastic frame interface in the wearable equipment.
Description
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to an interface display method, a wearable device, and a computer readable storage medium.
Background
At present, along with the increasing degree of intellectualization of electronic devices such as mobile phones and tablet computers, users can set display interfaces of the electronic devices such as mobile phones and tablet computers at will so as to meet individual demands of the users, but for wearable devices such as wrist phones, the wearable devices are small in size and narrow in screen, and display of interfaces is incomplete. Especially when using third party application on the wrist machine, often pop out the bullet frame of different styles under a plurality of scenes, but show incompletely or show overlapping after some bullet frames pop out, let the user unable operation, seriously influence user's operation use. Therefore, how to improve the display effect of the frame interface in the wearable device becomes a technical problem to be solved at present.
Disclosure of Invention
The invention mainly aims to provide an interface display method, a wearable device and a computer readable storage medium, and aims to solve the technical problem of how to improve the display effect of a frame interface in the wearable device.
In order to achieve the above object, an embodiment of the present invention provides an interface display method, including:
when the wearable device detects that a bullet frame interface is ready to be displayed, determining whether the bullet frame interface is a third-party application interface or not;
if the bullet frame interface is a third party application interface, acquiring layout parameters of the bullet frame interface;
determining whether the bullet box interface is matched with a screen interface in the wearable device based on the layout parameters;
and if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface.
Optionally, the step of determining whether the bullet box interface matches with a screen interface in the wearable device based on the layout parameters includes:
acquiring screen parameters of a screen interface in the wearable equipment, and matching the layout parameters with the screen parameters;
If the layout parameters are matched with the screen parameters, the bullet frame interface is matched with the screen interface;
and if the layout parameters and the screen parameters are not matched, the bullet frame interface and the screen interface are not matched.
Optionally, the step of matching the layout parameter and the screen parameter includes:
acquiring the bullet frame area of the bullet frame interface from the layout parameters, and judging whether the screen area of the screen interface is smaller than the bullet frame area;
if the screen area is smaller than the bullet frame area, the layout parameters and the screen parameters are not matched;
and if the screen area is larger than or equal to the bullet frame area, matching the layout parameters with the screen parameters.
Optionally, the step of matching the layout parameter and the screen parameter if the screen area is greater than or equal to the area of the bullet frame includes:
if the screen area is larger than or equal to the bullet frame area, acquiring a position to be displayed corresponding to the bullet frame interface from the layout parameters;
judging whether the position to be displayed is matched with a screen position corresponding to a screen interface in the screen parameters;
And if the position to be displayed is matched with the screen position, the layout parameters are matched with the screen parameters.
Optionally, the step of dynamically adjusting the bullet box interface based on the screen interface includes:
acquiring screen parameters of the screen interface, and adjusting the layout parameters through the screen parameters to acquire new layout parameters after adjustment;
and dynamically adjusting the bullet frame interface based on the new layout parameters.
Optionally, the step of dynamically adjusting the bullet box interface based on the new layout parameter includes:
acquiring a modification position and a modification area in the new layout parameters;
dynamically adjusting the bullet frame area of the bullet frame interface according to the modification area to enable the adjusted bullet frame area to be smaller than or equal to the screen area;
and dynamically adjusting the position to be displayed of the bullet frame interface according to the modification position, so that the adjusted position to be displayed is matched with the screen position.
Optionally, before the step of determining whether the frame interface is the third party application interface when the frame interface is detected to be ready for display in the wearable device, the method includes:
Acquiring an application scene of an application to be started of the wearable equipment, and determining a target display mode of the application to be started based on the application scene;
and establishing a bullet frame interface based on the target display mode so that the bullet frame interface is displayed on the wearable device.
Optionally, the step of determining whether the bullet box interface is a third party application interface includes:
determining whether the application to be started is an uninstallable application in the wearable device;
if the application to be started is the uninstallable application, the bullet frame interface is a third party application interface;
and if the application to be started is not the uninstallable application, the bullet box interface is not a third party application interface.
In addition, in order to achieve the above purpose, the present invention also provides a wearable device;
the wearable device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the interface display method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium;
The computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the interface display method as described above.
According to the interface display method, the terminal and the computer readable storage medium provided by the embodiment of the invention, when the fact that the bullet frame interface is ready to be displayed is detected in the wearable equipment, whether the bullet frame interface is a third party application interface or not is determined; if the bullet frame interface is a third party application interface, acquiring layout parameters of the bullet frame interface; determining whether the bullet box interface is matched with a screen interface in the wearable device based on the layout parameters; and if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface. Whether the bullet frame interface to be displayed is matched with the screen interface or not is determined in the wearable device, whether the bullet frame interface can be completely displayed in the screen interface or not is determined, and when the bullet frame interface is found to be unmatched with the screen interface, the bullet frame interface is adjusted according to the screen interface, so that the bullet frame interface can be completely displayed in the screen interface, the operability of a user on the bullet frame interface is facilitated, the phenomenon that the bullet frame interface cannot be completely displayed on the screen of the wearable device in certain application scenes in the prior art is avoided, and the display effect of the bullet frame interface in the wearable device is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an implementation manner of a wearable device according to an embodiment of the present application;
fig. 2 is a schematic hardware diagram of a first view angle of an embodiment of a wearable device according to the present application;
fig. 3 is a schematic hardware diagram of a second perspective of an embodiment of a wearable device according to the present application;
fig. 4 is a schematic hardware diagram of a third view angle of an embodiment of a wearable device according to the present application;
fig. 5 is a hardware schematic diagram of a fourth view angle of an embodiment of a wearable device according to the present application;
FIG. 6 is a flowchart of a first embodiment of an interface display method according to an embodiment of the present application;
FIG. 7 is a flowchart of a second embodiment of an interface display method according to an embodiment of the present application;
fig. 8 is a schematic diagram of a scene of interface adjustment display of a bullet frame according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the application comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. The wearable device provided in the embodiment of the application can comprise: RF (Radio Frequency) unit, wiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic hardware structure of a wearable device implementing various embodiments of the present invention, where the wearable device 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the radio frequency unit 101 may be used to send and receive information or send signals in a call process, specifically, the radio frequency unit 101 may send uplink information to the base station, or may send downlink information sent by the base station to the processor 110 of the wearable device to process the downlink information, where the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic position where the wearable device is located changes, the base station may send a notification of the change of the geographic position to the radio frequency unit 101 of the wearable device, after receiving the notification of the message, the radio frequency unit 101 may send the notification of the message to the processor 110 of the wearable device to process, and the processor 110 of the wearable device may control the notification of the message to be displayed on the display panel 1061 of the wearable device; typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: through wireless communication with a server in a network system, for example, the wearable device can download file resources from the server through wireless communication, for example, an application program can be downloaded from the server, after the wearable device finishes downloading a certain application program, if the file resources corresponding to the application program in the server are updated, the server can push a message notification of the resource update to the wearable device through wireless communication so as to remind a user to update the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may access an existing communication network by setting an esim card (Embedded-SIM), and by adopting the esim card, the internal space of the wearable device may be saved and the thickness may be reduced.
It will be appreciated that although fig. 1 shows a radio frequency unit 101, it will be appreciated that the radio frequency unit 101 is not an essential component of a wearable device and may be omitted entirely as required within the scope of not changing the essence of the invention. The wearable device 100 may implement communication connection with other devices or communication networks through the wifi module 102 alone, which is not limited by the embodiment of the present invention.
WiFi belongs to a short-distance wireless transmission technology, and the wearable device can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of the wearable device, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the wearable device 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
In one embodiment, the wearable device 100 includes one or more cameras, and by opening the cameras, capturing of images, photographing, video recording and other functions can be achieved, and the positions of the cameras can be set as required.
The wearable device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the wearable device 100 moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for applications for recognizing the gesture of a mobile phone (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, knocking), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, by employing the proximity sensor, the wearable device is able to achieve non-contact manipulation, providing more modes of operation.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which when worn, enables detection of heart rate by being in close proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, by reading a fingerprint, security verification or the like can be achieved.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 employs a flexible display screen, and the wearable device employing the flexible display screen is capable of bending when worn, thereby fitting more. Optionally, the flexible display screen may be an OLED screen body and a graphene screen body, and in other embodiments, the flexible display screen may also be other display materials, which is not limited to this embodiment.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape for ease of wrapping when worn. In other embodiments, other approaches may be taken as well.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the wearable device. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
In one embodiment, the sides of the wearable device 100 may be provided with one or more buttons. The button can realize a plurality of modes such as short pressing, long pressing, rotation and the like, thereby realizing a plurality of operation effects. The number of the buttons can be multiple, and different buttons can be combined for use, so that multiple operation functions are realized.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the wearable device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the wearable device, which is not limited herein. For example, when a message notification of a certain application is received through the rf unit 101, the processor 110 may control the message notification to be displayed in a certain preset area of the display panel 1061, where the preset area corresponds to a certain area of the touch panel 1071, and may control the message notification displayed in the corresponding area on the display panel 1061 by performing a touch operation on the certain area of the touch panel 1071.
The interface unit 108 serves as an interface through which at least one external device can be connected with the wearable apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected with other corresponding devices through the contact, so as to realize functions of charging, connection and the like. The contact can also be waterproof.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 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 processor 110 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109, and invoking data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for powering the various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Fig. 2 to fig. 4 are schematic structural diagrams of a wearable device according to an embodiment of the present application. The wearable device comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show schematic structural diagrams of the wearable device screen when unfolded, and fig. 4 shows schematic structural diagrams of the wearable device screen when bent.
Based on the above embodiments, it can be seen that if the device is a wristwatch, a bracelet, or a wearable device, the screen of the device may not cover the watchband area of the device, or may cover the watchband area of the device. The application proposes an alternative embodiment, in which the device may be a wristwatch, a bracelet or a wearable device, comprising a screen and a connection. The screen may be a flexible screen and the connection may be a wristband. Alternatively, the screen of the device or the display area of the screen may be partially or fully overlaid on the wristband of the device. Fig. 5 is a schematic hardware diagram of an implementation manner of a wearable device according to an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, which is not limited to the embodiment of the present application.
The invention provides an interface display method which is mainly applied to wearable equipment,
specifically, in a first embodiment of the interface display method of the present invention, referring to fig. 6, the interface display method includes:
step S10, when the wearable device detects that a bullet frame interface is ready to be displayed, determining whether the bullet frame interface is a third party application interface;
the bullet box interface may be an interface ready to be displayed on a wearable device screen. The third party application can be the software developed by other organizations or individuals other than the software composer aiming at the functional deficiency of certain software or application, and the software can not be directly hung on a nonlinear card to carry out input/output, but can process and edit the audio and video which has entered the hard disk array, or make own two-dimensional and three-dimensional images and then synthesize with the video materials, and the synthesized works are output by the input/output software. And the third party application interface may be a box interface to be displayed when the wearable device starts the third party application. When detecting that the missile frame interface is ready to be displayed on the screen of the wearable device in the wearable device, whether the application corresponding to the missile frame interface is a third party application or not needs to be determined, namely whether the missile frame interface is a third party application interface or not needs to be determined. And when the bullet frame interface is found to be the third application bullet frame through judgment, the layout parameter information of the bullet frame interface is required to be acquired, whether the size of the bullet frame interface is matched with the screen size of the wearable device or not is determined according to the layout parameter information, and whether the bullet frame interface can be completely and clearly displayed on the screen of the wearable device or not is determined based on the matching result. However, when it is judged that the bullet box interface is not the third party application interface, other processing may not be performed on the bullet box interface, so as to ensure that the bullet box interface can be completely displayed on the screen of the wearable device.
Step S20, if the bullet frame interface is a third party application interface, obtaining layout parameters of the bullet frame interface;
the layout parameters may include information such as the size and display area of the bullet frame interface, the location to be displayed, and the like. When the fact that the missile frame interface is the third-party application interface is judged, namely the internal system of the wearable device starts the third-party application, the third-party application is required to output the missile frame interface to be displayed on the screen of the wearable device, and therefore a user can conveniently perform related operations. However, since the third party application cannot directly hang on the nonlinear card in the wearable device, the sabot interface based on the output of the third party application itself may not be completely displayed on the screen of the wearable device. Therefore, when the third party application is started and operated and prepares to output the frame interface for display on the screen of the wearable device, it is necessary to acquire the layout parameters of the frame interface and determine whether the frame interface can be displayed completely and clearly on the screen of the wearable device based on the layout parameters.
Step S30, determining whether the bullet frame interface is matched with a screen interface in the wearable device or not based on the layout parameters;
After the layout parameters of the bullet frame interface are acquired, related information of the screen interface in the wearable device, such as the width, height, area and the like of the screen interface, is required to be acquired. Then comparing the width, height, area and the like of the bullet frame interface with the width, height and area of the screen interface in sequence, so as to determine whether the width of the bullet frame interface is smaller than the width of the screen interface; whether the height of the spring frame interface is smaller than that of the screen interface or not; whether the area of the screen interface is smaller than the area of the bullet frame interface. When the width, height and area of the bullet frame interface are smaller than those of the screen interface, it is also necessary to determine whether the position of the bullet frame interface to be displayed on the screen display interface coincides with the screen interface, that is, whether the bullet frame interface and the screen interface are matched. When the bullet frame interface and the screen interface are found to be matched, the bullet frame interface can be displayed on the screen of the wearable device completely, but when the bullet frame interface and the screen interface are found to be unmatched through judgment, the bullet frame interface needs to be adjusted so that the bullet frame interface can be displayed on the screen of the wearable device completely.
And S40, if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface.
When the fact that the bullet frame interface is not matched with the screen interface is judged, namely that the bullet frame interface can not be displayed on the screen interface completely can be determined, dynamic adjustment of the bullet frame interface is needed according to relevant information of the screen interface, namely that management and control are added in a Dialog parent class of the wearable device, parameters such as height, width and gradient of the bullet frame interface are set according to the characteristics of a third-party application interface, the bullet frame interface can be dynamically adjusted according to the screen interface before being displayed, the fact that the bullet frame interface can be normally displayed on a screen of the wearable device is met, and finally the adjusted bullet frame interface is displayed on the screen interface of the wearable device.
To aid understanding, dynamic adjustment of the sabot interface in the wearable device is illustrated below.
For example, as shown in fig. 8, in the wearable device, when it is detected that the bullet frame interface is ready to be displayed, whether the bullet frame interface is a third party application interface is first determined, if yes, layout parameter information of the bullet frame interface is obtained, and whether the bullet frame interface is matched with a screen interface in the wearable device is determined, if not, the bullet frame interface is adjusted, so that the bullet frame interface can be completely displayed on the screen interface.
In the embodiment, when the fact that the bullet frame interface is ready to be displayed is detected in the wearable equipment, whether the bullet frame interface is a third-party application interface or not is determined; if the bullet frame interface is a third party application interface, acquiring layout parameters of the bullet frame interface; determining whether the bullet box interface is matched with a screen interface in the wearable device based on the layout parameters; and if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface. Whether the bullet frame interface to be displayed is matched with the screen interface or not is determined in the wearable device, whether the bullet frame interface can be completely displayed in the screen interface or not is determined, and when the bullet frame interface is found to be unmatched with the screen interface, the bullet frame interface is adjusted according to the screen interface, so that the bullet frame interface can be completely displayed in the screen interface, the operability of a user on the bullet frame interface is facilitated, the phenomenon that the bullet frame interface cannot be completely displayed on the screen of the wearable device in certain application scenes in the prior art is avoided, and the display effect of the bullet frame interface in the wearable device is improved.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the interface display method of the present invention is provided, where the embodiment is a refinement of step S30 of the first embodiment of the present invention, referring to fig. 7, including:
step S31, screen parameters of a screen interface in the wearable equipment are obtained, and the layout parameters and the screen parameters are matched;
the screen parameters may include various parameter information of the wearable device screen interface, such as width, height, area, etc. of the screen interface. After the layout parameters of the bullet frame interface are obtained in the wearable device, the screen parameters of the screen interface in the wearable device are required to be obtained, then, each parameter in the layout parameters and each parameter in the screen parameters are matched and compared in sequence, and whether the bullet frame interface can be completely displayed on the screen interface in the wearable device is determined based on the matching result.
Step S32, if the layout parameters are matched with the screen parameters, the bullet frame interface is matched with the screen interface;
when the layout parameters and the screen parameters are judged to be matched, the bullet frame interface and the screen interface can be considered to be matched, namely the bullet frame interface can be considered to be displayed on the screen interface of the wearable device completely.
And step S33, if the layout parameters and the screen parameters are not matched, the bullet frame interface and the screen interface are not matched.
When the layout parameters and the screen parameters are not matched through judgment, the bullet frame interface and the screen interface are not matched, namely the bullet frame interface can not be completely displayed on the screen interface in the wearable device, and the bullet frame interface needs to be adjusted.
In the embodiment, the screen parameters of the screen interface in the wearable device and the layout parameters of the bullet frame interface are subjected to matching comparison, and whether the bullet frame interface is matched with the screen interface or not is determined based on the matching comparison result, so that whether the bullet frame interface can be completely displayed on the screen interface or not is accurately known.
Specifically, the step of matching the layout parameter and the screen parameter includes:
step S311, acquiring the bullet frame area of the bullet frame interface in the layout parameters, and judging whether the screen area of the screen interface is smaller than the bullet frame area;
the bezel area may be the area of the bezel interface that needs to be displayed on the wearable device. The screen area may be the screen size of the wearable device. After the layout parameters corresponding to the bullet frame interface and the screen parameters corresponding to the screen interface are obtained from the wearable device, the bullet frame area of the bullet frame interface is also required to be obtained from the layout parameters, and the screen area corresponding to the screen interface is also required to be obtained from the screen parameters. And then judging whether the screen area is smaller than the area of the bullet frame, and when the screen area is found to be smaller than the area of the bullet frame, the area of the bullet frame is overlarge, and all contents to be displayed cannot be displayed on the screen of the wearable device. But when the screen area is found to be greater than or equal to the sabot area, then the sabot interface may be placed directly in a suitable position for display on the screen of the wearable device.
Step S312, if the screen area is smaller than the bullet frame area, the layout parameters and the screen parameters are not matched;
when the screen area is smaller than the bullet frame area through judgment, the layout parameters and the screen parameters can be considered to be unmatched, the bullet frame interface can not be displayed on the screen of the wearable device completely, and at the moment, the bullet frame interface needs to be adjusted correspondingly, so that the bullet frame interface can be displayed on the screen of the wearable device completely.
Step S313, if the screen area is greater than or equal to the frame area, the layout parameters are matched with the screen parameters.
When the screen area is larger than or equal to the bullet frame area through judgment, namely the screen interface can completely accommodate the bullet frame interface, the layout parameters and the screen parameters can be considered to be matched.
In this embodiment, by comparing the bullet area of the bullet interface with the screen area of the screen interface and determining whether the layout parameters and the screen parameters are matched based on the comparison result, it is further known whether the content to be displayed on the bullet interface can be displayed on the screen interface completely.
Specifically, if the screen area is greater than or equal to the area of the bullet frame, the step of matching the layout parameter with the screen parameter includes:
Step A10, if the screen area is larger than or equal to the bullet frame area, acquiring a position to be displayed corresponding to the bullet frame interface from the layout parameters;
when the screen area is larger than or equal to the bullet frame area through judgment, that is, when the screen interface can completely accommodate the bullet frame interface, the position to be displayed corresponding to the bullet frame interface needs to be obtained from the layout parameters. The to-be-displayed position is a position where the bullet box interface needs to be displayed on a screen of the wearable device.
Step A11, judging whether the position to be displayed is matched with a screen position corresponding to a screen interface in the screen parameters;
when the position to be displayed corresponding to the bullet frame interface is obtained, the position to be displayed and the screen position corresponding to the screen interface in the screen parameters are required to be matched, and after the position to be displayed and the screen position are successfully matched, the layout parameters and the screen parameters can be considered to be matched, that is, the bullet frame interface can be completely displayed in the screen of the wearable device. However, when the position to be displayed and the screen position are not matched through judgment, the bullet frame interface can be considered to be adjusted and cannot be displayed in the screen of the wearable device completely.
And step A12, if the position to be displayed is matched with the screen position, matching the layout parameters with the screen parameters.
When the position to be displayed is found to be matched with the screen position through judgment, the layout parameters can be considered to be matched with the screen parameters, namely the bullet frame interface can be completely displayed in the screen of the wearable device, and at the moment, the layout parameters are matched with the screen parameters.
In this embodiment, whether the bullet frame interface can be displayed on the screen interface completely is determined by determining whether the position to be displayed corresponding to the bullet frame interface matches with the screen position corresponding to the screen interface, so that accuracy of judging whether the bullet frame interface can be displayed on the screen interface completely is ensured.
Further, on the basis of any one of the first embodiment to the second embodiment of the present invention, a third embodiment of the interface display method of the present invention is provided, where in step S40 of the first embodiment of the present invention, the step of dynamically adjusting the bullet frame interface based on the screen interface is refined, and includes:
step S41, obtaining screen parameters of the screen interface, and adjusting the layout parameters through the screen parameters to obtain new layout parameters after adjustment;
The screen parameters may be parameters (such as screen width, height, area, etc.) corresponding to the screen of the wearable device, and when the screen parameters of the screen interface of the wearable device are acquired, the screen parameters and the layout parameters are required to be matched and compared, and when the screen parameters and the layout parameters are found to be unmatched, the layout parameters are required to be adjusted according to the screen parameters so as to obtain new layout parameters after adjustment.
And step S42, dynamically adjusting the bullet frame interface based on the new layout parameters.
After the adjusted new layout parameters are obtained, the bullet frame interface is also required to be adjusted according to the new layout parameters, so that the screen interface can be ensured to be displayed on the screen of the wearable device completely.
In this embodiment, the layout parameters are adjusted according to the screen parameters to obtain new layout parameters, and then the bullet frame interface is dynamically adjusted based on the new layout parameters, so that the display effect of the bullet frame interface displayed on the screen interface is ensured.
Specifically, the step of dynamically adjusting the bullet frame interface based on the new layout parameters includes:
step S421, obtaining a modification position and a modification area in the new layout parameters;
The modified location may be a location in the new layout parameters where the box interface is to be displayed. The modified area may be the area of the new layout parameters that the box interface is to display. When the layout parameters are adjusted, after the new layout parameters are obtained, the modification positions and the modification areas are also required to be obtained from the new layout parameters so as to adjust the bullet frame interface.
Step S422, dynamically adjusting the area of the frame interface according to the modified area, so that the adjusted new frame area is smaller than or equal to the screen area;
when the modified area in the new layout parameters is obtained, the area of the bullet frame interface is required to be dynamically adjusted according to the modified area, so that the adjusted bullet frame area is smaller than or equal to the screen area, and the bullet frame interface can be ensured to be displayed on the screen of the wearable device completely.
Step S423, dynamically adjusting the position to be displayed of the bullet frame interface according to the modification position, so that the adjusted position to be displayed matches with the screen position.
When the modification position in the new layout parameters is obtained, the position to be displayed of the bullet frame interface is required to be dynamically adjusted according to the modification position, so that the adjusted position to be displayed is matched with the screen position, and the bullet frame interface is ensured to be displayed on the screen of the wearable device completely.
In the embodiment, the bullet frame interface is dynamically adjusted according to the modification position and the modification area in the new layout parameters, so that the bullet frame interface is ensured to be completely displayed on the screen interface.
Further, on the basis of any one of the first embodiment to the third embodiment of the present invention, a fourth embodiment of the present invention interface display method is provided, where in step S10 of the first embodiment of the present invention, when detecting that a frame interface is ready to be displayed in a wearable device, before the step of determining whether the frame interface is a third party application interface, the method includes:
step A30, acquiring an application scene of an application to be started of the wearable equipment, and determining a target display mode of the application to be started based on the application scene;
the application scene may be a scene corresponding to the wearable device at the current moment, such as a payment scene. The target display mode may be a mode in which the application to be launched is ready to be displayed on the wearable device screen. In the wearable device, it is required to determine which application is ready to be started at the current moment, namely, determine an application to be started, determine an application scene corresponding to the application to be started, and then determine a target display mode corresponding to the application to be started according to the application scene. The application to be started can determine different display modes in different application scenes so as to meet the watching operation requirement of a user, so that the application scenes are determined first, and then the target display mode of the application to be started is determined according to the application scenes.
And step A31, establishing a bullet frame interface based on the target display mode so that the bullet frame interface is displayed on the wearable equipment.
After a target display mode corresponding to the application to be started is acquired, a bullet frame interface is required to be established according to the target display mode, so that the bullet frame interface can display contents to be displayed by the application to be started on the wearable device.
In the embodiment, the target display mode of the application to be displayed is determined, and the bullet frame interface is established based on the target display mode, so that the content to be displayed by the application to be displayed can be displayed to the user when the bullet frame interface is displayed, and the user can watch and operate conveniently.
Further, the step of determining whether the bullet box interface is a third party application interface includes:
step S11, determining whether the application to be started is an uninstallable application in the wearable device;
the offloadable application may be an application in the wearable device that is capable of being offloaded by a user. When the wearable device detects that the bullet box interface is ready to be displayed, whether the application to be started corresponding to the bullet box interface is an uninstallable application or not needs to be determined, and whether the bullet box interface is a third party application interface or not is determined based on a judging result.
Step S12, if the application to be started is the uninstallable application, the box interface is a third party application interface.
When the application to be started is found to be the uninstallable application through judgment, the bullet box interface can be considered to be a third party application interface, and whether the bullet box interface can be completely displayed on the screen of the wearable device or not needs to be determined.
Step S13, if the application to be started is not the uninstallable application, the box interface is not a third party application interface.
However, when the application to be started is found to be not the uninstallable application through judgment, the bullet box interface can be considered to be not a third party application interface, and the bullet box interface can be directly displayed on the screen of the wearable device.
In this embodiment, by determining whether the application to be started corresponding to the bullet frame interface is an uninstallable application, and when the application to be started is an uninstallable application, it may be determined that the bullet frame interface is a third party application interface, thereby ensuring that the bullet frame interface can be displayed on the screen interface completely.
The invention also provides a wearable device comprising: memory, processor, communication bus, and computer program stored on the memory:
The communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the computer program to implement the steps of the embodiments of the interface display method described above.
The present invention also provides a computer-readable storage medium storing one or more programs executable by one or more processors for implementing the steps of the above-described interface display method embodiments.
The specific implementation of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the interface display method, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (5)
1. An interface display method, characterized in that the interface display method comprises:
when the wearable device detects that a bullet frame interface is ready to be displayed, determining whether the bullet frame interface is a third-party application interface or not;
if the bullet frame interface is a third party application interface, acquiring layout parameters of the bullet frame interface;
determining whether the bullet box interface is matched with a screen interface in the wearable device based on the layout parameters;
if the bullet frame interface is not matched with the screen interface, dynamically adjusting the bullet frame interface based on the screen interface, and displaying the adjusted bullet frame interface in the screen interface;
the step of determining whether the bullet box interface matches a screen interface in the wearable device based on the layout parameters includes:
acquiring screen parameters of a screen interface in the wearable equipment, and matching the layout parameters with the screen parameters;
if the layout parameters are matched with the screen parameters, the bullet frame interface is matched with the screen interface;
if the layout parameters and the screen parameters are not matched, the bullet frame interface and the screen interface are not matched;
The step of matching the layout parameter and the screen parameter includes:
acquiring the bullet frame area of the bullet frame interface from the layout parameters, and judging whether the screen area of the screen interface is smaller than the bullet frame area;
if the screen area is smaller than the bullet frame area, the layout parameters and the screen parameters are not matched;
if the screen area is larger than or equal to the bullet frame area, the layout parameters are matched with the screen parameters;
and if the screen area is greater than or equal to the bullet frame area, matching the layout parameters with the screen parameters, wherein the step comprises the following steps:
if the screen area is larger than or equal to the bullet frame area, acquiring a position to be displayed corresponding to the bullet frame interface from the layout parameters;
judging whether the position to be displayed is matched with a screen position corresponding to a screen interface in the screen parameters;
if the position to be displayed is matched with the screen position, the layout parameters are matched with the screen parameters;
the step of dynamically adjusting the bullet frame interface based on the screen interface comprises the following steps:
acquiring screen parameters of the screen interface, and adjusting the layout parameters through the screen parameters to acquire new layout parameters after adjustment;
Dynamically adjusting the bullet frame interface based on the new layout parameters;
the step of dynamically adjusting the bullet frame interface based on the new layout parameters comprises the following steps:
acquiring a modification position and a modification area in the new layout parameters;
dynamically adjusting the bullet frame area of the bullet frame interface according to the modification area to enable the adjusted bullet frame area to be smaller than or equal to the screen area;
and dynamically adjusting the position to be displayed of the bullet frame interface according to the modification position, so that the adjusted position to be displayed is matched with the screen position.
2. The interface display method according to claim 1, wherein before the step of determining whether the frame interface is a third party application interface when the frame interface is detected in the wearable device to be displayed, the method comprises:
acquiring an application scene of an application to be started of the wearable equipment, and determining a target display mode of the application to be started based on the application scene;
and establishing a bullet frame interface based on the target display mode so that the bullet frame interface is displayed on the wearable device.
3. The interface display method of claim 2, wherein the step of determining whether the box interface is a third party application interface comprises:
Determining whether the application to be started is an uninstallable application in the wearable device;
if the application to be started is the uninstallable application, the bullet frame interface is a third party application interface;
and if the application to be started is not the uninstallable application, the bullet box interface is not a third party application interface.
4. A wearable device, the wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the interface display method according to any one of claims 1 to 3 when executed by the processor.
5. A computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the interface display method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247585.XA CN109947524B (en) | 2019-03-28 | 2019-03-28 | Interface display method, wearable device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247585.XA CN109947524B (en) | 2019-03-28 | 2019-03-28 | Interface display method, wearable device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947524A CN109947524A (en) | 2019-06-28 |
CN109947524B true CN109947524B (en) | 2023-10-17 |
Family
ID=67012875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910247585.XA Active CN109947524B (en) | 2019-03-28 | 2019-03-28 | Interface display method, wearable device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947524B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113051010B (en) * | 2019-12-28 | 2023-04-28 | Oppo(重庆)智能科技有限公司 | Application picture adjustment method and related device in wearable equipment |
CN111158686B (en) * | 2019-12-31 | 2022-04-26 | 京东科技控股股份有限公司 | Webpage popup frame generation method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571769A (en) * | 2010-12-31 | 2012-07-11 | 北京华夏未来信息技术有限公司 | Terminal resolution adaptation method and system |
CN105808189A (en) * | 2016-03-07 | 2016-07-27 | 联想(北京)有限公司 | Display method and electronic device |
KR101686451B1 (en) * | 2015-08-28 | 2016-12-14 | 주식회사 앱포스터 | Method and apparatus for setting a screen of a smart watch |
CN109375967A (en) * | 2018-08-27 | 2019-02-22 | 北京达佳互联信息技术有限公司 | Application Program Interface display methods and device, mobile terminal and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105630159A (en) * | 2015-12-18 | 2016-06-01 | 歌尔声学股份有限公司 | Wearable device and control method therefor |
CN107995975A (en) * | 2016-12-26 | 2018-05-04 | 深圳市柔宇科技有限公司 | A kind of control method and device of display screen |
US20180181289A1 (en) * | 2016-12-27 | 2018-06-28 | Lenovo (Singapore) Pte. Ltd. | Sizing applications based on display parameters |
-
2019
- 2019-03-28 CN CN201910247585.XA patent/CN109947524B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571769A (en) * | 2010-12-31 | 2012-07-11 | 北京华夏未来信息技术有限公司 | Terminal resolution adaptation method and system |
KR101686451B1 (en) * | 2015-08-28 | 2016-12-14 | 주식회사 앱포스터 | Method and apparatus for setting a screen of a smart watch |
CN105808189A (en) * | 2016-03-07 | 2016-07-27 | 联想(北京)有限公司 | Display method and electronic device |
CN109375967A (en) * | 2018-08-27 | 2019-02-22 | 北京达佳互联信息技术有限公司 | Application Program Interface display methods and device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109947524A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109982179B (en) | Audio signal output method and device, wearable device and storage medium | |
CN109946986B (en) | Household appliance control method, wearable device and computer readable storage medium | |
CN110299100B (en) | Display direction adjustment method, wearable device and computer readable storage medium | |
CN110139270B (en) | Wearable device pairing method, wearable device and computer readable storage medium | |
CN110187769B (en) | Preview image viewing method, equipment and computer readable storage medium | |
CN110399195B (en) | Desktop icon dynamic replacement method, equipment and computer readable storage medium | |
CN110177209B (en) | Video parameter regulation and control method, device and computer readable storage medium | |
CN109933400B (en) | Display interface layout method, wearable device and computer readable storage medium | |
CN110225282B (en) | Video recording control method, device and computer readable storage medium | |
CN110098845B (en) | Message processing method, wearable device, mobile terminal and readable storage medium | |
CN109933294B (en) | Data processing method and device, wearable device and storage medium | |
CN109947524B (en) | Interface display method, wearable device and computer readable storage medium | |
CN110620875B (en) | Screenshot control method, equipment and computer readable storage medium in video shooting process | |
CN110177208B (en) | Video recording association control method, equipment and computer readable storage medium | |
CN110198411B (en) | Depth of field control method and device in video shooting process and computer readable storage medium | |
CN110086808B (en) | Account login control method and device and computer readable storage medium | |
CN110113529B (en) | Shooting parameter regulation and control method and device and computer readable storage medium | |
CN110083205B (en) | Page switching method, wearable device and computer-readable storage medium | |
CN109933187B (en) | Wearing equipment operation control method, wearing equipment and computer readable storage medium | |
CN110657794A (en) | Compass calibration method of wearable device, wearable device and storage medium | |
CN110650289B (en) | Shooting depth of field control method, equipment and computer readable storage medium | |
CN109901812B (en) | Volume adjustment method for wearable device, wearable device and readable storage medium | |
CN110058918B (en) | Picture processing method, wearable device and computer readable storage medium | |
CN110083427B (en) | Application program interaction control method, device and computer readable storage medium | |
CN110187950B (en) | Method for adjusting picture display position, wearable device 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 |