CN109814953B - Wearable device view processing method and device, wearable device and storage medium - Google Patents

Wearable device view processing method and device, wearable device and storage medium Download PDF

Info

Publication number
CN109814953B
CN109814953B CN201910140987.XA CN201910140987A CN109814953B CN 109814953 B CN109814953 B CN 109814953B CN 201910140987 A CN201910140987 A CN 201910140987A CN 109814953 B CN109814953 B CN 109814953B
Authority
CN
China
Prior art keywords
application
layout
view
application interface
wearable device
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
CN201910140987.XA
Other languages
Chinese (zh)
Other versions
CN109814953A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910140987.XA priority Critical patent/CN109814953B/en
Publication of CN109814953A publication Critical patent/CN109814953A/en
Application granted granted Critical
Publication of CN109814953B publication Critical patent/CN109814953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a wearable device view processing method, a wearable device view processing device, a wearable device and a storage medium, wherein the method comprises the following steps: when detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not; if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application; and displaying the starting application after the self-adaptive processing. The invention solves the technical problem that the view interface display of wearable equipment such as an intelligent bracelet and other applications is inconvenient to operate in the prior art.

Description

Wearable device view processing method and device, wearable device and storage medium
Technical Field
The invention relates to the technical field of wearable equipment, in particular to a wearable equipment view processing method and device, wearable equipment and a storage medium.
Background
At present, wearable equipment is more and more popular like intelligent bracelet, however, when the user used intelligent bracelet adaptation application, there was intelligent bracelet screen width undersize, leads to some applied view display interface to show incompletely, or application interface shows secretly, can't carry out the technical problem of corresponding operation.
Disclosure of Invention
The invention mainly aims to provide a view processing method and device for wearable equipment, the wearable equipment and a storage medium, and aims to solve the technical problem that view interface display of the wearable equipment such as an intelligent bracelet and the like is inconvenient to operate in the prior art.
In order to achieve the above object, the present invention provides a wearable device view processing method, where the wearable device view processing method is applied to a wearable device, and the wearable device view processing method includes:
when detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not;
if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application;
and displaying the starting application after the self-adaptive processing.
Optionally, if the starting application is in a preset white list, the step of performing view adaptive processing on the starting application includes:
if the starting application is in a preset white list, determining a target custom view layout of the starting application according to the incidence relation between each application and the custom view layout pre-stored in the preset white list;
and determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout.
Optionally, the step of determining, according to the layout attribute content in the target custom view layout, the view display width layout of the application interface corresponding to the starting application includes:
obtaining custom nodes of the view tree in the layout attribute content, wherein each node corresponds to an application interface;
determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
and loading a pre-stored layout file of the first application interface from the layout attribute content, determining the view display width layout of the starting application corresponding to the first application interface according to the layout file, and determining the sliding layout of the starting application corresponding to the first application interface according to the view display width layout.
Optionally, the step of determining, according to the view display width layout, a sliding layout of the first application interface corresponding to the launch application includes:
determining a first view display width of the first application interface according to the view display width layout, and judging whether the first view display width is smaller than a preset second view display width;
if the second view display width is smaller than a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a one-way sliding layout;
and if the second view display width is larger than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a bidirectional sliding layout.
Optionally, the step of loading a pre-stored layout file of the first application interface, and after the step of determining, according to the layout file, the view display width layout of the first application interface corresponding to the starting application, includes:
acquiring a non-user-defined node of a view tree in the layout attribute content, and determining a second application interface which is forbidden to slide in the starting application according to the non-user-defined node;
and performing preset sliding identification processing on the second application interface so as to prohibit the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected.
Optionally, the performing of the preset sliding identifier processing on the second application interface to prohibit the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected includes:
and restarting the sliding response processing of the second application interface if a removal instruction for removing the preset sliding identification processing of the second application interface is detected.
Optionally, the wearable device view processing method is applied to a smart watch.
The invention also provides a wearable device view processing device, which is applied to wearable devices, and comprises:
the detection module is used for judging whether the started application is in a preset white list or not when the wearable device detects that the application is started;
the self-adaptive processing module is used for carrying out view self-adaptive processing on the started application if the started application is in a preset white list;
and the display module is used for displaying the starting application after the self-adaptive processing.
Optionally, the adaptive processing module includes:
the first determining unit is used for determining the target custom view layout of the starting application according to the association relationship between each application and the custom view layout pre-stored in the preset white list if the starting application is in the preset white list;
and the second determining unit is used for determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout.
Optionally, the second determining unit includes:
the obtaining subunit is used for obtaining the user-defined nodes of the view tree in the layout attribute content, wherein each node corresponds to one application interface;
the first determining subunit is used for determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
a second determining subunit, configured to load a pre-stored layout file of the first application interface from the layout attribute content, determine, according to the layout file, a view display width layout of the first application interface corresponding to the starting application, and determine, according to the view display width layout, a sliding layout of the first application interface corresponding to the starting application.
Optionally, the second determining subunit is configured to implement:
determining a first view display width of the first application interface according to the view display width layout, and judging whether the first view display width is smaller than a preset second view display width;
if the second view display width is smaller than a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a one-way sliding layout;
and if the second view display width is larger than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a bidirectional sliding layout.
Optionally, the adaptive processing module further includes:
the acquisition unit is used for acquiring a non-user-defined node of a view tree in the layout attribute content and determining a second application interface which is forbidden to slide in the starting application according to the non-user-defined node;
and the identification unit is used for carrying out preset sliding identification processing on the second application interface so as to forbid the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected.
Optionally, the adaptive processing module further includes:
and the restarting unit is used for restarting the sliding response processing of the second application interface if a removal instruction for removing the preset sliding identification processing of the second application interface is detected.
Optionally, the wearable device view processing apparatus is applied to a smart watch.
In addition, to achieve the above object, the present invention also provides a wearable device, including: a memory, a processor, a communication bus, and a wearable device view handler stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the view processing program of the wearable device so as to realize the following steps:
when detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not;
if the starting application is in a preset white list, carrying out view self-adaptive processing on the starting application;
and displaying the starting application after the self-adaptive processing.
Further, to achieve the above object, the present invention also provides a storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not;
if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application;
and displaying the starting application after the self-adaptive processing.
When detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not; if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application; and displaying the starting application after the self-adaptive processing. In the application, the application white list is arranged, and the application in the white list in the wearable device can be subjected to view self-adaptive processing after being arranged, so that when the intelligent bracelet adaptive application is started, the display form of the view display interface can be adjusted according to the view self-adaptive processing mode for the application needing view processing, the situations that the view display interface is displayed too densely or is inconvenient to operate and the like are avoided, and the technical problem that the view interface display operation of the wearable device such as an intelligent bracelet and the like is inconvenient in the prior art is solved.
Drawings
Fig. 1 is a schematic flow chart of a wearable device view processing method according to a first embodiment of the invention;
fig. 2 is a schematic detailed flow diagram of a step of performing view adaptive processing on the started application if the started application is in a preset white list in a second embodiment of the wearable device view processing method according to the present invention;
FIG. 3 is a schematic diagram of an apparatus structure of a hardware operating environment related to a method according to an embodiment of the present invention;
fig. 4 is a schematic view of a first scene of a smart band involved in the wearable device view processing method according to the present invention;
fig. 5 is a schematic view of a second scene of the smart band involved in the view processing method of the wearable device according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first embodiment of the wearable device view processing method of the present invention, referring to fig. 1, the wearable device view processing method includes:
step S10, when detecting that the application is started on the wearable device, judging whether the started application is in a preset white list;
step S20, if the starting application is in a preset white list, carrying out view self-adaptive processing on the starting application;
and step S30, displaying the starting application after the self-adapting processing.
The method comprises the following specific steps:
step S10, when detecting that the application is started on the wearable device, judging whether the started application is in a preset white list;
it should be noted that, in this embodiment, the wearable device includes a smart band, such as a smart watch, as shown in fig. 4 and 5, the wearable device also comprises intelligent glasses and other devices, various non-adaptive applications such as WeChat, games, Taobao and the like can be arranged on the wearable device, in addition, the wearable device can also be provided with various applications such as WeChat, games, Taobao and the like, but is provided with adaptive applications matched with various applications such as WeChat, games, Taobao and the like on the mobile phone terminal, when the wearable device is provided with adaptive applications matched with various applications such as WeChat, games, Taobao and the like on the mobile phone terminal, the adapted application on the wearable device interacts with the mobile phone terminal through an interaction system in the background, specifically, when receiving information on the mobile phone terminal WeChat, the information of the WeChat can be sent to the wearable device through the interactive system.
When detecting that an application is started on the wearable device, specifically, when detecting that a non-adaptive application or an adaptive application is started on the wearable device, determining whether the started application is in a preset white list, specifically, determining whether the started application is in the preset white list by determining whether the name of the started application is in the preset white list.
That is, in this embodiment, a white list is preset, the white list may include all applications or only a part of the applications, the white list includes not only attributes such as names of corresponding applications, but also a custom view layout matching the application name, it should be noted that the custom view layout includes that the view width is customizable and the view left-right sliding mode is customizable, and for an application, the custom view layout corresponding to the application may be a custom view layout pre-stored in the wearable device, that is, each view tree layout template is pre-stored in the wearable device, each view width in each view tree layout template is determined, and the left-right sliding mode corresponding to each view is determined, if the custom view layout of the application is a custom view layout pre-stored in the wearable device, matching the corresponding target template from the preset view tree layout templates, and in addition, the applied custom view layout can also be the custom view layout after the layout is changed by the user. It should be noted that, in this embodiment, when detecting that an application is started on the wearable device, the purpose of determining whether the started application is in the preset white list is to determine whether the started application needs to perform view adaptive processing.
Step S20, if the starting application is in a preset white list, carrying out view self-adaptive processing on the starting application;
and if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application, namely carrying out self-adaption processing on each application interface view of the starting application, namely carrying out determination and adjustment processing on the view width of each application interface view.
Specifically, if the starting application is in a preset white list, the step of performing view adaptive processing on the starting application includes:
step S21, if the starting application is in a preset white list, determining a target custom view layout of the starting application according to the incidence relation between each application and the custom view layout pre-stored in the preset white list;
in this embodiment, a one-to-one mapping relationship (association relationship) between each application and the custom view layout is prestored in the preset white list, and the mapping relationship may be temporarily set or preset to determine the target custom view layout for starting the application. In addition, the association relationship may also be self-matched according to the attribute of the application without setting, which is described in the specific embodiment, and if the display density in the current view of the application is greater than a certain density, only a certain custom view layout can be obtained as the target custom view layout by matching from each custom view layout according to the self-matching rule.
And step S22, determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout.
And determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout, namely, the layout attribute content comprises the view display width layout of each application interface.
Specifically, the step of determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout includes:
step S221, obtaining the user-defined nodes of the view tree in the layout attribute content, wherein each node corresponds to an application interface;
for an application, not every application interface may be view-adaptive processed or adjusted, so in order to implement fast adjustment of an application interface that needs to be adjusted, in this embodiment, when determining a view display width layout of an application interface corresponding to the starting application, a custom node of a view tree in the layout attribute content is obtained, where the view tree includes a custom node that needs to be adjusted and a non-custom node that does not need to be adjusted, and each node corresponds to an application interface, where the custom node corresponds to a page that needs view-adaptive processing or adjustment.
Step S222, determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
after the user-defined node is obtained, the first application interface to be subjected to the user-defined layout in the starting application is determined according to the user-defined node, in this embodiment, the first application interface and other application interfaces are arranged in a distinguishing manner during the starting of the application, and the speed of the user-defined layout of the application interfaces is improved conveniently.
Step S223, loading a pre-stored layout file of the first application interface from the layout attribute content, determining a view display width layout of the first application interface corresponding to the starting application according to the layout file, and determining a sliding layout of the first application interface corresponding to the starting application according to the view display width layout.
After the first application interface is obtained, loading a pre-stored layout file of the first application interface from the layout attribute content, specifically, sequentially loading the pre-stored layout file of the first application interface according to the display sequence of the first application interface, or sequentially loading the pre-stored layout file of the first application interface according to the parent-child relationship of a user-defined node in a view tree, after the layout file is loaded, determining the view display width layout of the starting application corresponding to the first application interface according to the layout file, that is, in the layout file, the view display width of a specific certain first application interface is determined to be half of the content of all the pages of the application, the view display width of another first application interface is determined to be three quarters of the content of all the pages of the application, and determining the view display width layout of the starting application corresponding to the first application interface according to the layout file, that is to be the view display width layout of the first application interface The view is subjected to width adaptation, for example, the application is WeChat, the WeChat page is displayed on the intelligent bracelet screen before all, and after the adaptation is carried out, the WeChat page is partially displayed on the intelligent bracelet screen, so that the view is convenient for a user to read and operate.
In this embodiment, the sliding layout of the first application interface corresponding to the starting application is further determined according to the view display width layout, that is, in this embodiment, since the content of the first application interface is not all displayed on the smart band screen, the sliding layout of the content of the first application interface needs to be performed.
Specifically, the step of determining the sliding layout of the first application interface corresponding to the starting application according to the view display width layout includes:
step S2231, determining a first view display width of the first application interface according to the view display width layout, and determining whether the first view display width is smaller than a preset second view display width;
in this embodiment, a sliding layout is performed according to the adjustment range of the first application interface, specifically, a first view display width of the first application interface is determined according to the view display width layout, and it is determined whether the first view display width is smaller than a preset second view display width.
Step S2232, if the second view display width is smaller than a preset second view display width, determining that the sliding layout of the application interface corresponding to the start application is a one-way sliding layout;
if the second view display width is smaller than the preset second view display width, the second view display width displays most of the content of the first application interface, and therefore, it is determined that the sliding layout of the application interface corresponding to the start application is a one-way sliding layout, which may be a one-way leftward sliding layout or a one-way rightward sliding layout.
Step S2233, if the second view display width is greater than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the start application is a bidirectional sliding layout.
And if the second view display width is larger than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a bidirectional sliding layout, wherein the sliding distance can be equal in the bidirectional sliding layout.
And step S30, displaying the starting application after the self-adapting processing.
In this embodiment, after the starting application is adaptively processed, the starting application after adaptive processing is displayed to facilitate user operation.
When detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not; if the starting application is in a preset white list, carrying out view self-adaptive processing on the starting application; and displaying the starting application after the self-adaptive processing. In this application, be provided with application white list, can carry out view adaptive processing after the application in the white list among the wearable equipment has set up, therefore, when carrying out the application of intelligent bracelet adaptation and starting, can adjust the display form on the view display interface according to view adaptive processing mode to the application that needs view processing, avoid the too close demonstration of view display interface or be inconvenient for operation etc. the circumstances, therefore, solved prior art, the wearable equipment is like the inconvenient technical problem of view interface display operation of applications such as intelligent bracelet.
Further, another embodiment of the method for processing a view of a wearable device is provided, in which the loading a pre-stored layout file of the first application interface, and after the step of determining, according to the layout file, a view display width layout of the first application interface corresponding to the launch application, includes:
step A1, obtaining a non-self-defined node of a view tree in the layout attribute content, and determining a second application interface which is forbidden to slide in the starting application according to the non-self-defined node;
in this embodiment, not all applications include only the first application interface, that is, for an application, part of the applications also include other interfaces that are not adaptively adjusted, so that a non-custom node of a view tree in the layout attribute content is obtained, and a second application interface that is prohibited from sliding in the started application is determined according to the non-custom node, and is prohibited from performing adaptive adjustment in addition to sliding.
Step A2, performing preset sliding identification processing on the second application interface, so as to prohibit the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected.
And performing preset sliding identification processing on the second application interface so as to prohibit the sliding of the second application interface if a certain interface does not allow the sliding when the sliding operation of the sliding of the second application interface is detected, wherein the preset identification can be added with a number 1, if the identification of the second application interface without the preset identification is 0, if the number 1 is added to the current application interface, the sliding is not allowed, and whether the sliding operation is executed is determined according to the sliding identification when a touch event is detected or monitored.
It should be noted that, for an application, all application interfaces may be configured as the second application interface. At this time, the application is prohibited from slipping.
The step of performing preset sliding identifier processing on the second application interface so as to prohibit the sliding of the second application interface when the sliding operation of sliding the second application interface is detected comprises the following steps:
step B1, if a removal instruction for removing the preset sliding identifier processing of the second application interface is detected, restarting the sliding response processing of the second application interface.
In this embodiment, if a removal instruction for performing removal processing on the preset sliding identifier processing of the second application interface is detected, the sliding response processing on the second application interface is restarted, that is, in this embodiment, whether the second application interface slides or not may be adjusted, so that the user experience is improved.
In the embodiment, a second application interface which is forbidden to slide in the starting application is determined according to a non-user-defined node of a view tree in the layout attribute content by obtaining the non-user-defined node; and performing preset sliding identification processing on the second application interface so as to prohibit the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected. Thus, adaptive view adjustment of applications according to actual conditions is facilitated.
Further, the present invention provides another embodiment of a wearable device view processing method, in which the wearable device view processing method is applied to a smart watch.
In this embodiment, a wearable device view processing is performed on a smart watch, which is described in a specific embodiment, a WeChat application exists in a wearable device, a first application interface of the WeChat application is subjected to view display of two thirds of contents, and a view display of the other third of contents is subjected to sliding layout.
In this embodiment, the wearable device view processing method is applied to a smart watch, and view adaptive sliding of smart watch application is realized.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The wearable device in the embodiment of the present invention may be a PC, or may be a terminal device such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a portable computer, or the like.
As shown in fig. 3, the wearable device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Optionally, the wearable device may further include a target user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so forth. The target user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional target user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the wearable device configuration shown in fig. 3 does not constitute a limitation of the wearable device, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a wearable device view processing program. The operating system is a program for managing and controlling hardware and software resources of the wearable device, and supports the operation of the wearable device view processing program and other software and/or programs. The network communication module is used for realizing communication among components in the memory 1005 and communication with other hardware and software in the wearable device.
In the wearable device shown in fig. 3, the processor 1001 is configured to execute a wearable device view processing program stored in the memory 1005, so as to implement the steps of the wearable device view processing method described in any one of the above.
The specific implementation of the wearable device of the present invention is substantially the same as the embodiments of the wearable device view processing method described above, and will not be described herein again.
The invention also provides a wearable device view processing device, which comprises:
the detection module is used for judging whether the started application is in a preset white list or not when the wearable device detects that the application is started;
the self-adaptive processing module is used for carrying out view self-adaptive processing on the started application if the started application is in a preset white list;
and the display module is used for displaying the starting application after the self-adaptive processing.
Optionally, the adaptive processing module includes:
the first determining unit is used for determining the target custom view layout of the starting application according to the incidence relation between each application and the custom view layout pre-stored in the preset white list if the starting application is in the preset white list;
and the second determining unit is used for determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout.
Optionally, the second determining unit includes:
the obtaining subunit is used for obtaining the user-defined nodes of the view tree in the layout attribute content, wherein each node corresponds to one application interface;
the first determining subunit is used for determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
and the second determining subunit is configured to load a pre-stored layout file of the first application interface from the layout attribute content, determine, according to the layout file, a view display width layout of the first application interface corresponding to the starting application, and determine, according to the view display width layout, a sliding layout of the first application interface corresponding to the starting application.
Optionally, the second determining subunit is configured to implement:
determining a first view display width of the first application interface according to the view display width layout, and judging whether the first view display width is smaller than a preset second view display width;
if the second view display width is smaller than a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a one-way sliding layout;
and if the second view display width is larger than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a bidirectional sliding layout.
Optionally, the adaptive processing module further includes:
an obtaining unit, configured to obtain a non-user-defined node of a view tree in the layout attribute content, and determine, according to the non-user-defined node, a second application interface that is prohibited from sliding in the start application;
and the identification unit is used for carrying out preset sliding identification processing on the second application interface so as to forbid the sliding of the second application interface when the sliding operation of sliding the second application interface is detected.
Optionally, the adaptive processing module further includes:
and the restarting unit is used for restarting the sliding response processing of the second application interface if a removal instruction for removing the preset sliding identification processing of the second application interface is detected.
Optionally, the wearable device view processing apparatus is applied to a smart watch.
The specific implementation of the wearable device view processing apparatus of the present invention is substantially the same as the embodiments of the wearable device view processing method described above, and details are not repeated here.
The invention provides a storage medium, which stores one or more programs, wherein the one or more programs can be executed by one or more processors to realize the steps of the wearable device view processing method.
The specific implementation of the storage medium of the present invention is substantially the same as the embodiments of the wearable device view processing method described above, and is not described herein again.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (8)

1. A wearable device view processing method is applied to a wearable device, and comprises the following steps:
when detecting that an application is started on wearable equipment, judging whether the started application is in a preset white list or not;
if the starting application is in a preset white list, carrying out view self-adaption processing on the starting application;
displaying the starting application after the self-adaptive processing;
wherein, if the starting application is in a preset white list, the step of performing view adaptive processing on the starting application comprises:
if the starting application is in a preset white list, determining a target custom view layout of the starting application according to the association relationship between each application and the custom view layout pre-stored in the preset white list;
determining the view display width layout of an application interface corresponding to the starting application according to the layout attribute content in the target custom view layout;
wherein, the step of determining the view display width layout of the application interface corresponding to the starting application according to the layout attribute content in the target custom view layout comprises:
obtaining custom nodes of the view tree in the layout attribute content, wherein each node corresponds to an application interface;
determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
and loading a pre-stored layout file of the first application interface from the layout attribute content, determining the view display width layout of the starting application corresponding to the first application interface according to the layout file, and determining the sliding layout of the starting application corresponding to the first application interface according to the view display width layout.
2. The wearable device view processing method of claim 1, wherein the determining a sliding layout of the launch application corresponding to the first application interface according to the view display width layout step comprises:
determining a first view display width of the first application interface according to the view display width layout, and judging whether the first view display width is smaller than a preset second view display width;
if the first view display width is smaller than a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a one-way sliding layout;
and if the first view display width is larger than or equal to a preset second view display width, determining that the sliding layout of the application interface corresponding to the starting application is a bidirectional sliding layout.
3. The method for processing the view of the wearable device according to claim 1, wherein the loading a pre-stored layout file of the first application interface, and after the step of determining the layout width of the view display corresponding to the first application interface according to the layout file, the step of determining the display width of the view corresponding to the first application interface by the launch application comprises:
obtaining a non-user-defined node of a view tree in the layout attribute content, and determining a second application interface which is forbidden to slide in the starting application according to the non-user-defined node;
and performing preset sliding identification processing on the second application interface so as to prohibit the sliding of the second application interface when the sliding operation of the sliding of the second application interface is detected.
4. The wearable device view processing method of claim 3, wherein the performing of the preset sliding identifier processing on the second application interface to prohibit the sliding operation of the second application interface when the sliding operation of the second application interface is detected comprises:
and restarting the sliding response processing of the second application interface if a removal instruction for removing the preset sliding identification processing of the second application interface is detected.
5. The wearable device view processing method of claim 1, applied in a smart watch.
6. A wearable device view processing apparatus is applied to a wearable device, and the wearable device view processing apparatus includes:
the detection module is used for judging whether the started application is in a preset white list or not when the wearable device detects that the application is started;
the self-adaptive processing module is used for carrying out view self-adaptive processing on the started application if the started application is in a preset white list;
the display module is used for displaying the starting application after the self-adaptive processing;
wherein the adaptive processing module comprises:
the first determining unit is used for determining the target custom view layout of the starting application according to the association relationship between each application and the custom view layout pre-stored in the preset white list if the starting application is in the preset white list;
a second determining unit, configured to determine, according to the layout attribute content in the target custom view layout, a view display width layout of an application interface corresponding to the start application;
wherein the second determination unit includes:
the obtaining subunit is used for obtaining the user-defined nodes of the view tree in the layout attribute content, wherein each node corresponds to one application interface;
the first determining subunit is used for determining a first application interface to be subjected to custom layout in the starting application according to the custom node;
and the second determining subunit is configured to load a pre-stored layout file of the first application interface from the layout attribute content, determine, according to the layout file, a view display width layout of the first application interface corresponding to the starting application, and determine, according to the view display width layout, a sliding layout of the first application interface corresponding to the starting application.
7. A wearable device, comprising: a memory, a processor, a communication bus, and a wearable device view handler stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the wearable device view processing program to realize the steps of the wearable device view processing method according to any one of claims 1 to 5.
8. A storage medium having a wearable device view processing program stored thereon, the wearable device view processing program when executed by a processor implementing the steps of the wearable device view processing method according to any one of claims 1 to 5.
CN201910140987.XA 2019-02-25 2019-02-25 Wearable device view processing method and device, wearable device and storage medium Active CN109814953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910140987.XA CN109814953B (en) 2019-02-25 2019-02-25 Wearable device view processing method and device, wearable device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910140987.XA CN109814953B (en) 2019-02-25 2019-02-25 Wearable device view processing method and device, wearable device and storage medium

Publications (2)

Publication Number Publication Date
CN109814953A CN109814953A (en) 2019-05-28
CN109814953B true CN109814953B (en) 2022-07-22

Family

ID=66607606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910140987.XA Active CN109814953B (en) 2019-02-25 2019-02-25 Wearable device view processing method and device, wearable device and storage medium

Country Status (1)

Country Link
CN (1) CN109814953B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191230A (en) * 2019-05-29 2019-08-30 努比亚技术有限公司 Application interface display methods, mobile terminal and readable storage medium storing program for executing
CN112199139B (en) * 2020-09-02 2023-04-25 成都安易迅科技有限公司 Self-adaptive adjustment method and device for system scaling

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN106708523A (en) * 2016-12-26 2017-05-24 上海斐讯数据通信技术有限公司 Smart wearable device display method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764267B (en) * 2014-01-09 2022-04-19 三星电子株式会社 Wearable display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN106708523A (en) * 2016-12-26 2017-05-24 上海斐讯数据通信技术有限公司 Smart wearable device display method and system

Also Published As

Publication number Publication date
CN109814953A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109165050B (en) Program running method and device, computing equipment and storage medium
EP3029678A1 (en) Recording method, playing method, device, terminal and system
US20170068527A1 (en) Device control method and apparatus
US20020154160A1 (en) Information providing system, program, information storage medium, and user interface setting method
CN104869305B (en) Method and apparatus for processing image data
US9380463B2 (en) Method for displaying lock screen and electronic device thereof
US20170366832A1 (en) Video reproduction apparatus, control method thereof, and computer-readable storage medium storing program
CN110035181B (en) Method and terminal for setting theme of quick application card
CN109814953B (en) Wearable device view processing method and device, wearable device and storage medium
CN109814930A (en) A kind of application loading method, device and mobile terminal
CN108829481B (en) Presentation method of remote controller interface based on control electronic equipment
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
US9757651B2 (en) Electronic device and method of processing user input by electronic device
US9781198B2 (en) Information processing method and electronic device
CN108920266B (en) Program switching method, intelligent terminal and computer readable storage medium
CN113821417A (en) Lamp effect adaptation display processing method, intelligent terminal and storage medium
KR101342210B1 (en) Device and method for controlling screen brightness in wireless terminal
CN105373370B (en) Control display method and device
EP3425533A1 (en) Displaying page
CN105094608A (en) Task display method and device
CN107491353A (en) Method for recovering internal storage, device and computer-readable recording medium
CN107291468B (en) Method for playing power-on/power-off animation, terminal and computer readable storage medium
WO2016188227A1 (en) Intelligent terminal shortcut establishment method and device
CN107943533B (en) Image acquisition method and device, storage medium and electronic equipment

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