CN110058915A - Interface adaptation adaptation method, device, wearable device and storage medium - Google Patents

Interface adaptation adaptation method, device, wearable device and storage medium Download PDF

Info

Publication number
CN110058915A
CN110058915A CN201910321451.8A CN201910321451A CN110058915A CN 110058915 A CN110058915 A CN 110058915A CN 201910321451 A CN201910321451 A CN 201910321451A CN 110058915 A CN110058915 A CN 110058915A
Authority
CN
China
Prior art keywords
interface
configuration file
adaptation
application
changed
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.)
Pending
Application number
CN201910321451.8A
Other languages
Chinese (zh)
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 CN201910321451.8A priority Critical patent/CN110058915A/en
Publication of CN110058915A publication Critical patent/CN110058915A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of interface adaptation adaptation method, device, wearable device and storage mediums, this method comprises: judging whether the starting application has carried out handling using update when detecting the application starting on wearable device;If the starting application handle using update, what acquisition prestored shows associated first configuration file with the original interface for starting application;Obtain application update treated it is described starting application each interface to be shown data information, according to the data information to first configuration file carry out adaptation processing, to obtain the second configuration file;Each interface to be shown is shown according to second configuration file.When the present invention solves the third-party application being shown on wearable device in the prior art update, the interface UI is adapted to vulnerable technical problem.

Description

Interface adaptation adaptation method, device, wearable device and storage medium
Technical field
The present invention relates to smart lock technical field more particularly to a kind of interface adaptation adaptation method, device, wearable set Standby and storage medium.
Background technique
With the development of economy, the use of wearable device such as smartwatch etc. is increasingly becoming the daily of people, can wear Third-party application can be shown by wearing in equipment, third-party application also refers to show on wearable device not corresponding The application of source code, currently, the third-party application shown on wearable device substantially or for mobile phone screen width into Row user interface UI interface layout, and the screen width and mobile phone screen on wearable device is of different size, thus, to keep away The phenomenon that infull UI interface display or display overlapping can be had by exempting from the third-party application on wearable device, when leaving the factory, often Often it is adapted to by carrying out the initial interface UI to the third-party application on wearable device, such as: the width of adjustment UI interface layout, it is hidden Hide menu, increase the processing modes such as menu, it is ensured that normal display of the third-party application on wearable device, however, due to Third-party application on wearable device does not have corresponding source code, thus, when the third-party application shown on wearable device When changing such as version updating, the initial interface UI before will lead to is adapted to failure.
Summary of the invention
The main purpose of the present invention is to provide a kind of interface adaptation adaptation method, device, wearable device and storages Medium, it is intended to solve in the prior art when the third-party application on wearable device updates, the interface UI is adapted to vulnerable skill Art problem.
To achieve the above object, the embodiment of the present invention provides a kind of interface adaptation adaptation method, the interface adaptation Adaptation method is applied to wearable device, and the interface adaptation adaptation method includes:
When detecting the application starting on wearable device, judge whether the starting application has carried out using at update Reason;
If the starting application handle using update, the original interface with the starting application prestored is obtained Show associated first configuration file;
Obtain application update treated it is described starting application each interface to be shown data information, according to described Data information carries out adaptation processing to first configuration file, to obtain the second configuration file;
Each interface to be shown is shown according to second configuration file.
Optionally, described when detecting the application starting on wearable device, judge whether the starting application carries out Application updates processing step
When detecting the application starting on wearable device, the version number of the starting application is obtained;
Judge whether the version number of the starting application is changed;
If the version number of the starting application is changed, it is determined that the starting application has been carried out using at update Reason.
Optionally, it is described obtain application update treated it is described starting application each interface to be shown data letter Breath carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration file step packet It includes:
It obtains at each interface to be shown of the application starting application that updates that treated, and obtains described each to aobvious Show each node location of the interface in the corresponding interface tree of starting application;
The corresponding each file node of each node location, root are obtained in the file tree of first configuration file Each configuration file to be changed is obtained according to corresponding search of each file node;
The corresponding multiple subdata information of each node location are extracted, from the data information with each to correspondence Configuration file to be changed carries out adaptation processing, to obtain the second configuration file.
It is optionally, described that the corresponding multiple subdata information of each node location are extracted from the data information, To carry out adaptation processing to each configuration file to be changed of correspondence, include: to obtain the second configuration file step
The corresponding multiple subdata information of each node location are extracted from the data information, with obtain each to Each attribute information of the corresponding each entry to be changed of display interface;
For each entry to be changed, following steps are executed:
Being chosen from the configuration file to be changed with the entry same alike result information to be changed is more than preset number First configuration subfile to be changed;
According to each attribute information to the first configuration subfile to be changed carry out outside same alike result information other are non- The more changed handling one by one of display size attribute information, to obtain the second configuration file.
It is optionally, described that the corresponding multiple subdata information of each node location are extracted from the data information, To carry out adaptation processing to each configuration file to be changed of correspondence, to obtain the second configuration file step further include:
The corresponding each entry to be changed in each interface to be shown is obtained, is extracted from the data information described every The corresponding multiple subdata information of a node location, to obtain the entry positions attribute and entry of each entry to be changed Name attribute;
For each entry to be changed, following steps are executed:
It is chosen from the configuration file to be changed completely the same with the entry positions attribute and clause name attribute The second configuration subfile to be changed;
To its in the described second configuration subfile to be changed in addition to the entry positions attribute and clause name attribute He carries out more changed handling one by one by attribute information, to obtain the second configuration file.
Optionally, if starting application handle using update, what acquisition prestored answers with the starting Original interface shows that associated first configuration file step includes:
If starting application handle using update, judge whether to receive update treated the starting Using corresponding third configuration file;
If not receiving update treated the starting applies corresponding third configuration file, acquisition prestore with institute The original interface for stating starting application shows associated first configuration file.
Optionally, it is described each interface step to be shown is shown according to second configuration file after further include:
Preservation processing is carried out to second configuration file, and mark is modified to second configuration file and is added Add.
The present invention also provides a kind of interface adaptation adaptive device, the interface adaptation adaptive device is applied to wearable Equipment, the interface adaptation adaptive device include:
Detection module, for when detecting the application starting on wearable device, judge the starting apply whether into It has gone and has been handled using update;
First obtain module, if for the starting application carried out using update handle, acquisition prestore with it is described The original interface of starting application shows associated first configuration file;
Second obtains module, for obtaining at each interface to be shown that the application starting that updates that treated is applied Data information carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration file;
Display module, for showing each interface to be shown according to second configuration file.
Optionally, the detection module includes:
First acquisition unit, for obtaining the starting application when detecting the application starting on wearable device Version number;
First judging unit, for judging whether the version number of the starting application is changed;
Determination unit, if the version number for the starting application is changed, it is determined that the starting application carries out Application update is handled.
Optionally, the second acquisition module includes:
Second acquisition unit, for obtain application update treated it is described starting application each interface to be shown, And obtain each node location of each interface to be shown in the corresponding interface tree of starting application;
Third acquiring unit, it is corresponding for obtaining each node location in the file tree of first configuration file Each file node, each configuration file to be changed is obtained according to corresponding search of each file node;
First adaptation unit, for extracting the corresponding multiple subdatas of each node location from the data information Information, to carry out adaptation processing to each configuration file to be changed of correspondence, to obtain the second configuration file.
Optionally, first adaptation unit includes:
First obtains subelement, for extracting the corresponding multiple subnumbers of each node location from the data information It is believed that breath, to obtain each attribute information of the corresponding each entry to be changed in each interface to be shown;
For each entry to be changed, first adaptation unit further include:
Second obtains subelement, for choosing and the entry same alike result to be changed from the configuration file to be changed Information is more than the first configuration subfile to be changed of preset number;
First change subelement is identical for being carried out according to each attribute information to the first configuration subfile to be changed The more changed handling one by one of other non-display size attribute information outside attribute information, to obtain the second configuration file.
Optionally, first adaptation unit further include:
Third obtains subelement, for obtaining the corresponding each entry to be changed in each interface to be shown, from described The corresponding multiple subdata information of each node location are extracted in data information, to obtain each entry to be changed Entry positions attribute and clause name attribute;
For each entry to be changed, first adaptation unit further include:
4th obtains subelement, for choosing and the entry positions attribute and item from the configuration file to be changed The second completely the same configuration subfile to be changed of mesh name attribute;
Second change subelement, for in the described second configuration subfile to be changed except the entry positions attribute and Other attribute informations outside clause name attribute carry out more changed handling one by one, to obtain the second configuration file.
Optionally, the first acquisition module includes:
Second judgment unit judges whether to receive more if handle using update for starting application Newly treated, and corresponding third configuration file is applied in the starting;
4th acquiring unit, if updating that treated for not receiving starting application corresponding third configuration being literary Part then obtains the original interface applied with the starting prestored and shows associated first configuration file.
Optionally, the interface adaptation adaptive device further include:
Preserving module for carrying out preservation processing to second configuration file, and carries out second configuration file Change the addition of mark.
The present invention also provides a kind of wearable device, the wearable device includes: memory, processor and is stored in institute State the interface adaptation adaptation procedure that can be run on memory and on the processor, the interface adaptation adaptation procedure quilt It realizes when the processor executes such as the step of above-mentioned interface adaptation adaptation method.
The present invention also provides a kind of storage medium, interface adaptation adaptation procedure is stored on the storage medium, it is described It realizes when interface adaptation adaptation procedure is executed by processor such as the step of above-mentioned interface adaptation adaptation method.
The present invention is by when detecting that the application on wearable device starts, judging whether the starting application carries out It is handled using update;If the starting application handle using update, the original with the starting application prestored is obtained Associated first configuration file of beginning interface display;Obtain application update treated it is described starting application each boundary to be shown The data information in face carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration text Part;Each interface to be shown is shown according to second configuration file.That is, in this application, if detecting wearable When starting application in equipment has been carried out using updating, needs first to obtain and show associated the with the original interface of starting application One configuration file, and according to the data information at the updated each interface to be shown of application, the first configuration file is adapted to Processing, due to being adapted to according to data information to the first configuration file, and the first configuration file is the corresponding adaptation of starting application The configuration file of the normal display interface of meeting be and UI circle on wearable device using interface to be shown each after update thus Face adaptation, thus avoid when the third-party application on wearable device updates, the interface UI is adapted to the phenomenon that failing, and solves In the prior art when the third-party application on wearable device updates, the interface UI is adapted to vulnerable technical problem.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is the flow diagram of one embodiment of interface adaptation adaptation method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101 What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, broadband code Point multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, the time-division S-CDMA-Synchronous Code Division Multiple Access), (Frequency Division Duplexing-Long Term Evolution, frequency division are double by FDD-LTE Work long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are long-term Evolution) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly., wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102, The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100 When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera, It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear, Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments, Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101 The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable device When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this Shen It please propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be set Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5 Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, the equipment Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with It is all covered on the watchband of the equipment, the embodiment of the present application is not limited thereto.
Based on above-mentioned wearable device hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
The present invention provides a kind of interface adaptation adaptation method, which is mainly used in wearable In equipment, in one embodiment of interface adaptation adaptation method, referring to Fig. 6, the interface adaptation adaptation method includes:
Step S10 judges whether the starting application is answered when detecting the application starting on wearable device It is handled with update;
Step S20, if the starting application carried out using update handle, obtain prestore with it is described starting application Original interface shows associated first configuration file;
Step S30, obtain application update treated it is described starting application each interface to be shown data information, Processing is updated to first configuration file according to the data information, to obtain the second configuration file;
Step S40 shows each interface to be shown according to second configuration file.
Specific step is as follows:
Step S10 judges whether the starting application is answered when detecting the application starting on wearable device It is handled with update;
It should be noted that in the present embodiment, wearable device includes Intelligent bracelet, such as smartwatch equipment, Such as Fig. 4, shown in Fig. 5, which further includes the equipment such as intelligent glasses, each in addition to being provided in the wearable device Outside a wearable device sensor, wechat can be set, game, the types of applications such as Taobao, application shop, which can wear The wechat in equipment is worn, game, the types of applications such as Taobao, application shop can be updated processing, on the wearable device Include: using the mode being updated
Mode one: newest application is downloaded to and can be worn from computer or mobile phone wearable device by tools such as data lines It wears in equipment, to realize the update applied in wearable device;
Mode two: there is more new button in the types of applications in wearable device, be somebody's turn to do if detecting that user touches or clicks When more new button, the update of the types of applications in wearable device is triggered;
Mode three: the downloading that user carries out types of applications from the application shop in wearable device updates.
It should be noted that avoid the application on wearable device that from existing, UI interface display is not complete or display is overlapped The phenomenon that, when wearable device is dispatched from the factory, the interface UI adaptation processing all is carried out to types of applications and wearable device, That is, hiden application corresponds to menu and increases the processing sides such as the corresponding menu of application by adjusting the width of application UI interface layout Formula, it is ensured that normal display of the types of applications on wearable device, the application that the interface UI is adapted to should be carried out with wearable device is It is not updated the application of processing, if the application on wearable device is updated, can usually change using user interface i.e. The attributes such as name, the ID mark at the interface UI, the display content at the interface UI at the interface UI, application attribute caused by being updated because of application The change of information, the application for being adapted to display before will lead to wearable device is no longer adapted to, that is, updated application can deposit It is being adapted to display failure, there are the incomplete using UI interface display of update or is showing the phenomenon that being overlapped.
In the present embodiment, when detecting the application starting on wearable device, judge the starting apply whether into It has gone and has been handled using update, wherein before any application starting on wearable device, required judge that the starting application is It is no carried out using update handle, wherein can be checked from the sofeware management in wearable device the starting application whether into It has gone and has been handled using update, it should be noted that when the application on wearable device updates, sofeware management can identify and remember Record.
In addition, it is described when detecting the application starting on wearable device, judge whether the starting application carries out Include: using processing step is updated
Step S11 obtains the version number of the starting application when detecting the application starting on wearable device;
In the present embodiment, when detecting the application starting on wearable device every time, starting application is all obtained Version number, e.g., the starting are 1.1 using original version number, and the version number of the starting application currently obtained can be 1.2. It should be noted that starting application all detects the version number of application every time on wearable device, and at the record of progress version number Reason.
Step S12 judges whether the version number of the starting application is changed;
The version number of the application currently obtained is compared with the version number of the application recorded before, is opened described in judgement Whether the version number of dynamic application is changed.
Step S13, if the version number of the starting application is changed, it is determined that the starting is applied Update processing.
If the version number of the starting application is changed, it is determined that the starting application has been carried out using at update Reason.If the version number of the starting application does not change, it is determined that the starting application does not carry out handling using update.If institute The version number for stating starting application is changed, and records the version number after changing and the version number after the change of record is replaced it Preceding version number, so that next time carries out the judgement of starting application.
Step S20, if the starting application carried out using update handle, obtain prestore with it is described starting application Original interface shows associated first configuration file;
In the present embodiment, can not there be the source code of starting application on wearable device, but there is starting application First configuration file, first configuration file are the configuration files of the starting application prestored when leaving the factory on wearable device, should First configuration file shows with the original interface of the starting application and is associated with that first configuration file includes each of starting application Interface title, ID mark, the display content of each original interface of each original interface of original interface, each original interface Whether display height, the display width of each original interface, each original interface focus, and whether each original interface can be clicked, Whether each original interface can slide or other association attributes etc..Wherein, obtain prestore with it is described starting application Original interface show the mode of associated first configuration file include: when starting wearable device in application, prestoring Corresponding first configuration file is parsed in the process of interface.
Wherein, if starting application handle using update, what acquisition prestored applies with the starting Original interface show that associated first configuration file step includes:
Step S21, if starting application handle using update, judging whether to receive update, treated Corresponding third configuration file is applied in the starting;
In the present embodiment, if starting application handle using update, judge whether to receive at update Corresponding third configuration file is applied in the starting after reason, wherein by this, using updating, treated starts the version applied Inquiring from configuration file library for this number whether there is corresponding third configuration file, which refers to To each associated configuration file of interface display to be shown of the application starting application that updates that treated, as at each application update The display content at each interface to be shown of the starting application after reason, the display height at each interface to be shown are each to be shown The display width at interface, whether each interface to be shown can slide or other association attributes etc..
Step S22, if not receiving update treated, corresponding third configuration file is applied in the starting, is obtained in advance It is depositing to show associated first configuration file with starting application original interface.
If not receiving update treated the starting applies corresponding third configuration file, acquisition prestore with institute The original interface for stating starting application show associated first configuration file, applies pair if receiving update treated the starting The third configuration file answered then obtains the third configuration file, and it is described to be updated that treated based on the third configuration file The display at the corresponding each interface to be shown of starting application.
Step S30, obtain application update treated it is described starting application each interface to be shown data information, Adaptation processing is carried out to first configuration file according to the data information, to obtain the second configuration file;
In the present embodiment, obtain application update treated it is described starting application each interface to be shown data Information, wherein the data information mainly includes the data information of the system framework layer in application, the data of the system framework layer Information is embodied in the attribute information for applying interface to be shown, for an application interface to be shown, subdivision For each entry to be shown, thus, it include the son of the corresponding each entry to be shown in each interface to be shown in the data information Data information.
After obtaining data information, adaptation processing is carried out to first configuration file according to the data information, wherein It is original in the first configuration file that can be for adaptation processing change is carried out to first configuration file according to the data information The display content at interface, original interface interface I D mark etc., and corresponded in the first configuration file interface display height or The association attributes such as display width generally without change, this is because corresponded in the first configuration file interface display height or The association attributes such as person's display width be with wearable device adaptation interface display will not be caused incomplete or display is Chong Die 's.
Adaptation processing is carried out to first configuration file according to the data information, to obtain the second configuration file, example Such as, starting applies the data information of the entry 1 at the interface A to be shown for<name_x, 2, context_xx, hide, 10mm>, and first The corresponding attribute information of the entry 1 at the interface A is<name_x, 1, content_x, hide, 5mm>in configuration file, then matches first The corresponding attribute changes of entry 1 for setting the interface A in file are<name_x, 2, context_xx, hide, 5mm>, equally, to first Starting carries out the change of corresponding attribute using other interfaces to be shown in configuration file, to obtain the second configuration file.
Step S40 shows each interface to be shown according to second configuration file.
After obtaining the second configuration file, each interface to be shown is shown according to second configuration file, to keep away Exempt from interface display it is incomplete or display overlapping.
The present invention is by when detecting that the application on wearable device starts, judging whether the starting application carries out It is handled using update;If the starting application handle using update, the original with the starting application prestored is obtained Associated first configuration file of beginning interface display;Obtain application update treated it is described starting application each boundary to be shown The data information in face carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration text Part;Each interface to be shown is shown according to second configuration file.That is, in this application, if detecting wearable When starting application in equipment has been carried out using updating, needs first to obtain and show associated the with the original interface of starting application One configuration file, and according to the data information at the updated each interface to be shown of application, the first configuration file is adapted to Processing, due to being adapted to according to data information to the first configuration file, and the first configuration file is the corresponding adaptation of starting application The configuration file of the normal display interface of meeting be and UI circle on wearable device using interface to be shown each after update thus Face adaptation, thus avoid when the third-party application on wearable device updates, the interface UI is adapted to the phenomenon that failing, and solves In the prior art when the third-party application on wearable device updates, the interface UI is adapted to vulnerable technical problem.
Further, described to obtain at application update in another embodiment of interface adaptation adaptation method of the present invention The data information at each interface to be shown of the starting application after reason, according to the data information to first configuration File carries out adaptation processing, includes: to obtain the second configuration file step
Step S31, obtain application update treated it is described starting application each interface to be shown, and obtain described in Each node location of each interface to be shown in the corresponding interface tree of starting application;
In the present embodiment, each starting application is corresponding has interface tree, the elder generation at each interface to be shown of interface tree representation It shows that relationship either father and son shows relationship afterwards, after starting application and updating, obtains application in real time to update that treated described and open Each interface to be shown of dynamic application, and it is each in the corresponding interface tree of starting application to obtain each interface to be shown A node location, the purpose for obtaining the corresponding node location in interface to be shown, which is to ensure that, orderly matches according to data information to first It sets file to be adapted to, and promotes adaptation speed.
Step S32 obtains the corresponding each text of each node location in the file tree of first configuration file Part node obtains each configuration file to be changed according to corresponding search of each file node;
In the present embodiment, corresponding in the first configuration file to have file tree, file tree and interface tree have incidence relation, The corresponding file node relationships of each display interface of file tree representation, according to the incidence relation of this document tree and interface tree, The corresponding each file node of each node location is obtained in the file tree of first configuration file, according to described each Corresponding search of a file node obtains each configuration file to be changed, for example, if file tree and interface tree have correspondingly Incidence relation, and the interface A is in third node location in interface tree, then corresponds to correspondence at third file node in file tree and look into Find the configuration file to be changed at the interface A.
Step S33 extracts the corresponding multiple subdata information of each node location, from the data information with right Corresponding each configuration file to be changed carries out adaptation processing, to obtain the second configuration file.
Wherein, the storage configuration of information is consistent with interface tree in data information, therefore, it is possible to according to each node location from Corresponding subdata information is extracted in data information, to carry out adaptation processing to each configuration file to be changed of correspondence, to obtain Second configuration file.
It is specifically, described that the corresponding multiple subdata information of each node location are extracted from the data information, To carry out adaptation processing to each configuration file to be changed of correspondence, include: to obtain the second configuration file step
Step S331 extracts the corresponding multiple subdata information of each node location from the data information, with Obtain each attribute information of the corresponding each entry to be changed in each interface to be shown;
The corresponding interface of each node location, include on the interface multiple entry to be changed such as item1, item2, Item3 ... etc. extracts the corresponding multiple subdata information of each node location, wherein every from the data information Subdata information includes the attribute information of an entry to be changed;
For each entry to be changed, following steps are executed:
Step S332, it is more than pre- for being chosen from the configuration file to be changed with the entry same alike result information to be changed If the configuration subfile to be changed of the first of number;
Being chosen from the configuration file to be changed with the entry same alike result information to be changed is more than preset number First configuration subfile to be changed to ensure the corresponding adaptation modification at interface, rather than is modified, carelessly for example, first is to be changed The title for configuring subfile b is identical as entry B to be changed, and the ID mark of the first configuration subfile b to be changed and item to be changed Mesh B is identical, then the configuration subfile b to be changed of first in configuration file to be changed be choose with the entry B phase to be changed It is more than the first configuration subfile to be changed of preset number with attribute information.
Step S333 carries out outside same alike result information the first configuration subfile to be changed according to each attribute information Other non-display size attribute information more changed handling one by one, to obtain the second configuration file.
According to each attribute information to the first configuration subfile to be changed carry out outside same alike result information other are non- The more changed handling one by one of display size attribute information, to obtain the second configuration file, for example, by the first configuration subfile to be changed In content modification be entry B to be changed content, according to each attribute information to the first configuration subfile to be changed into The more changed handling one by one of other non-display size attribute information outside row same alike result information, to obtain the second configuration file, In, it does not include width, the height at interface etc. in other non-display size attribute information.
In the present embodiment, the corresponding multiple subnumbers of each node location are extracted from the data information it is believed that Breath, to obtain each attribute information of the corresponding each entry to be changed in each interface to be shown;For each to be changed Entry executes following steps: choosing from the configuration file to be changed and with the entry same alike result information to be changed is more than The configuration subfile to be changed of the first of preset number;The first configuration subfile to be changed is carried out according to each attribute information The more changed handling one by one of other non-display size attribute information outside same alike result information, to obtain the second configuration file.At this In embodiment, realization accurately obtains the second configuration file, is adapted to avoid the interface UI vulnerable.
Further, the present invention provide another embodiment of interface adaptation adaptation method, in this embodiment, it is described from The corresponding multiple subdata information of each node location are extracted in the data information, to each configuration to be changed of correspondence File carries out adaptation processing, to obtain the second configuration file step further include:
Step A1 obtains the corresponding each entry to be changed in each interface to be shown, mentions from the data information The corresponding multiple subdata information of each node location are taken, to obtain the entry positions attribute of each entry to be changed And clause name attribute;
In the present embodiment, each interface to be shown respectively corresponds multiple entries to be changed, mentions from the data information The corresponding multiple subdata information of each node location are taken, to obtain the entry positions attribute of each entry to be changed And clause name attribute, wherein entry positions attribute includes the display subregion for including the entry in correspondence interface to be shown, Clause name attribute includes that root name belonging to entry claims.
For each entry to be changed, following steps are executed:
Step A2 chooses complete with the entry positions attribute and clause name attribute from the configuration file to be changed Complete consistent second configuration subfile to be changed;
It is chosen from the configuration file to be changed completely the same with the entry positions attribute and clause name attribute The second configuration subfile to be changed, in the present embodiment, as long as entry positions attribute and clause name attribute are completely the same, Then assert that the content expression of respective file and the entry is consistent, for example, the entry of the entry positions attribute of C entry and C entry Name attribute can be completely the same with the c configuration subfile to be changed in configuration file to be changed.
Step A3, in the described second configuration subfile to be changed remove the entry positions attribute and clause name attribute Other outer non-display size attribute information carry out more changed handling one by one, to obtain the second configuration file.
To its in the described second configuration subfile to be changed in addition to the entry positions attribute and clause name attribute He carries out more changed handling one by one at non-display size attribute information, to obtain the second configuration file, such as, wherein other are non-display It does not include width, the height etc. at interface in size attribute information.
In the present embodiment, by obtaining the corresponding each entry to be changed in each interface to be shown, from the number It is believed that the corresponding multiple subdata information of each node location are extracted in breath, to obtain the item of each entry to be changed Mesh position attribution and clause name attribute;For each entry to be changed, following steps are executed: from the configuration text to be changed The second to be changed configuration subfile completely the same with the entry positions attribute and clause name attribute is chosen in part;To institute State in the second configuration subfile to be changed other attribute informations in addition to the entry positions attribute and clause name attribute into Capable more changed handling one by one, to obtain the second configuration file.In the present embodiment, it realizes and accurately obtains the second configuration file, to keep away It is vulnerable to exempt from the interface UI adaptation.
Further, another embodiment of interface adaptation adaptation method, in this embodiment, described are provided in the present invention After showing each interface step to be shown according to second configuration file further include:
Preservation processing is carried out to second configuration file, and mark is modified to second configuration file and is added Add.
In the present embodiment, after obtaining the second configuration file, preservation processing is carried out to second configuration file, so as to Update processing starting apply in subsequent starting, be able to carry out normal display, after being saved, to second configuration file into The addition of row change mark, to prompt the second configuration file is modified on the first profile-base, so as to subsequent Inquiry.
In addition, the embodiment of the present invention also proposes a kind of interface adaptation adaptive device, the interface adaptation adaptive device Applied to wearable device, which includes:
Detection module, for when detecting the application starting on wearable device, judge the starting apply whether into It has gone and has been handled using update;
First obtain module, if for the starting application carried out using update handle, acquisition prestore with it is described The original interface of starting application shows associated first configuration file;
Second obtains module, for obtaining at each interface to be shown that the application starting that updates that treated is applied Data information carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration file;
Display module, for showing each interface to be shown according to second configuration file.
Optionally, the detection module includes:
First acquisition unit, for obtaining the starting application when detecting the application starting on wearable device Version number;
First judging unit, for judging whether the version number of the starting application is changed;
Determination unit, if the version number for the starting application is changed, it is determined that the starting application carries out Application update is handled.
Optionally, the second acquisition module includes:
Second acquisition unit, for obtain application update treated it is described starting application each interface to be shown, And obtain each node location of each interface to be shown in the corresponding interface tree of starting application;
Third acquiring unit, it is corresponding for obtaining each node location in the file tree of first configuration file Each file node, each configuration file to be changed is obtained according to corresponding search of each file node;
First adaptation unit, for extracting the corresponding multiple subdatas of each node location from the data information Information, to carry out adaptation processing to each configuration file to be changed of correspondence, to obtain the second configuration file.
Optionally, first adaptation unit includes:
First obtains subelement, for extracting the corresponding multiple subnumbers of each node location from the data information It is believed that breath, to obtain each attribute information of the corresponding each entry to be changed in each interface to be shown;
For each entry to be changed, first adaptation unit further include:
Second obtains subelement, for choosing and the entry same alike result to be changed from the configuration file to be changed Information is more than the first configuration subfile to be changed of preset number;
First change subelement is identical for being carried out according to each attribute information to the first configuration subfile to be changed The more changed handling one by one of other non-display size attribute information outside attribute information, to obtain the second configuration file.
Optionally, first adaptation unit further include:
Third obtains subelement, for obtaining the corresponding each entry to be changed in each interface to be shown, from described The corresponding multiple subdata information of each node location are extracted in data information, to obtain each entry to be changed Entry positions attribute and clause name attribute;
For each entry to be changed, first adaptation unit further include:
4th obtains subelement, for choosing and the entry positions attribute and item from the configuration file to be changed The second completely the same configuration subfile to be changed of mesh name attribute;
Second change subelement, for in the described second configuration subfile to be changed except the entry positions attribute and Other attribute informations outside clause name attribute carry out more changed handling one by one, to obtain the second configuration file.
Optionally, the first acquisition module includes:
Second judgment unit judges whether to receive more if handle using update for starting application Newly treated, and corresponding third configuration file is applied in the starting;
4th acquiring unit, if updating that treated for not receiving starting application corresponding third configuration being literary Part then obtains the original interface applied with the starting prestored and shows associated first configuration file.
Optionally, the interface adaptation adaptive device further include:
Preserving module for carrying out preservation processing to second configuration file, and carries out second configuration file Change the addition of mark.
In addition, the embodiment of the present invention also proposes that a kind of wearable device, wearable device include: memory 109, processor 110 and it is stored in the interface adaptation adaptation procedure that can be run on memory 109 and on processor 110, interface adaptation is suitable The step of each embodiment of above-mentioned interface adaptation adaptation method is realized when being executed with program by processor 110.
In addition, the present invention also provides a kind of computer storage medium, the computer storage medium be stored with one or More than one program of person, the one or more programs can also be executed by one or more than one processor with In the step of realizing each embodiment of above-mentioned interface adaptation adaptation method.
The expansion content of the specific embodiment of wearable device and storage medium (i.e. computer storage medium) of the present invention Essentially identical with above-mentioned each embodiment of interface adaptation adaptation method, this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that wearable device (it can be mobile phone, computer, Server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of interface adaptation adaptation method, which is characterized in that the interface adaptation adaptation method is applied to wearable set Standby, the interface adaptation adaptation method includes:
When detecting the application starting on wearable device, judge whether the starting application has carried out handling using update;
If the starting application handle using update, what acquisition prestored shows with the original interface for starting application Associated first configuration file;
Obtain application update treated it is described starting application each interface to be shown data information, according to the data Information carries out adaptation processing to first configuration file, to obtain the second configuration file;
Each interface to be shown is shown according to second configuration file.
2. interface adaptation adaptation method as described in claim 1, which is characterized in that described on detecting wearable device Application starting when, judge whether starting application has carried out applying the update processing step include:
When detecting the application starting on wearable device, the version number of the starting application is obtained;
Judge whether the version number of the starting application is changed;
If the version number of the starting application is changed, it is determined that the starting application handle using update.
3. interface adaptation adaptation method as described in claim 1, which is characterized in that described to obtain after application update processing The starting application each interface to be shown data information, according to the data information to first configuration file Adaptation processing is carried out, includes: to obtain the second configuration file step
It obtains at each interface to be shown of the application starting application that updates that treated, and obtains each boundary to be shown Each node location of the face in the corresponding interface tree of starting application;
The corresponding each file node of each node location is obtained in the file tree of first configuration file, according to institute It states corresponding search of each file node and obtains each configuration file to be changed;
The corresponding multiple subdata information of each node location are extracted, from the data information with each to more to correspondence Change configuration file and carry out adaptation processing, to obtain the second configuration file.
4. interface adaptation adaptation method as claimed in claim 3, which is characterized in that described to be extracted from the data information The corresponding multiple subdata information of each node location, to carry out adaptation processing to each configuration file to be changed of correspondence, Include: to obtain the second configuration file step
The corresponding multiple subdata information of each node location are extracted from the data information, it is each to be shown to obtain Each attribute information of the corresponding each entry to be changed in interface;
For each entry to be changed, following steps are executed:
Choose from the configuration file to be changed is more than the first of preset number with the entry same alike result information to be changed Configuration subfile to be changed;
According to each attribute information to the first configuration subfile to be changed carry out outside same alike result information other are non-display The more changed handling one by one of size attribute information, to obtain the second configuration file.
5. interface adaptation adaptation method as claimed in claim 3, which is characterized in that described to be extracted from the data information The corresponding multiple subdata information of each node location, to carry out adaptation processing to each configuration file to be changed of correspondence, To obtain the second configuration file step further include:
The corresponding each entry to be changed in each interface to be shown is obtained, each section is extracted from the data information The corresponding multiple subdata information in point position, to obtain the entry positions attribute and clause name of each entry to be changed Attribute;
For each entry to be changed, following steps are executed:
The completely the same with the entry positions attribute and clause name attribute is chosen from the configuration file to be changed Two configuration subfiles to be changed;
To in the described second configuration subfile to be changed in addition to the entry positions attribute and clause name attribute other are non- Display size attribute information carries out more changed handling one by one, to obtain the second configuration file.
6. interface adaptation adaptation method as described in claim 1, which is characterized in that if starting application carries out It is handled using update, then obtains the original interface applied with the starting prestored and show associated first configuration file step packet It includes:
If starting application handle using update, judge whether to receive update that treated that the starting is applied Corresponding third configuration file;
If not receiving update treated, corresponding third configuration file is applied in the starting, and what acquisition prestored opens with described The original interface of dynamic application shows associated first configuration file.
7. interface adaptation adaptation method as described in claim 1, which is characterized in that described according to second configuration file After showing each interface step to be shown further include:
Preservation processing is carried out to second configuration file, and is modified the addition of mark to second configuration file.
8. a kind of interface adaptation adaptive device, which is characterized in that the interface adaptation adaptive device is applied to wearable set Standby, the interface adaptation adaptive device includes:
Detection module, for judging whether the starting application carries out when detecting the application starting on wearable device It is handled using update;
First obtains module, if handle using update for starting application, acquisition is prestoring with the starting The original interface of application shows associated first configuration file;
Second obtain module, for obtains application update treated it is described starting apply each interface to be shown data Information carries out adaptation processing to first configuration file according to the data information, to obtain the second configuration file;
Display module, for showing each interface to be shown according to second configuration file.
9. a kind of wearable device, which is characterized in that the wearable device includes: memory, processor and is stored in described On memory and the interface adaptation adaptation procedure that can run on the processor, the interface adaptation adaptation procedure is by institute State the step of realizing the interface adaptation adaptation method as described in any one of claims 1 to 7 when processor executes.
10. a kind of storage medium, which is characterized in that be stored with interface adaptation adaptation procedure, the boundary on the storage medium The interface adaptation adaptation as described in any one of claims 1 to 7 is realized when surface self-adaption adaptation procedure is executed by processor The step of method.
CN201910321451.8A 2019-04-19 2019-04-19 Interface adaptation adaptation method, device, wearable device and storage medium Pending CN110058915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910321451.8A CN110058915A (en) 2019-04-19 2019-04-19 Interface adaptation adaptation method, device, wearable device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910321451.8A CN110058915A (en) 2019-04-19 2019-04-19 Interface adaptation adaptation method, device, wearable device and storage medium

Publications (1)

Publication Number Publication Date
CN110058915A true CN110058915A (en) 2019-07-26

Family

ID=67319944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910321451.8A Pending CN110058915A (en) 2019-04-19 2019-04-19 Interface adaptation adaptation method, device, wearable device and storage medium

Country Status (1)

Country Link
CN (1) CN110058915A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427240A (en) * 2019-07-30 2019-11-08 努比亚技术有限公司 Intelligence desktop management method, wearable device and computer readable storage medium
CN111427699A (en) * 2020-03-02 2020-07-17 福建省天奕网络科技有限公司 Message reminding method and storage medium
CN112363654A (en) * 2020-11-27 2021-02-12 歌尔科技有限公司 Display control method of wearable device, wearable device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140013236A1 (en) * 2012-07-03 2014-01-09 International Business Machines Corporation Representing a graphical user interface using a topic tree structure
CN106843842A (en) * 2016-12-23 2017-06-13 光锐恒宇(北京)科技有限公司 The update method and device of a kind of application profiles
CN107977203A (en) * 2017-10-20 2018-05-01 捷开通讯(深圳)有限公司 The creation method of storage device, application program control and user interface
CN108628629A (en) * 2018-05-21 2018-10-09 网易(杭州)网络有限公司 UI update methods, device, equipment and storage medium
CN109408086A (en) * 2018-09-28 2019-03-01 平安普惠企业管理有限公司 Interface updating method, device, computer equipment and the storage medium of APP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140013236A1 (en) * 2012-07-03 2014-01-09 International Business Machines Corporation Representing a graphical user interface using a topic tree structure
CN106843842A (en) * 2016-12-23 2017-06-13 光锐恒宇(北京)科技有限公司 The update method and device of a kind of application profiles
CN107977203A (en) * 2017-10-20 2018-05-01 捷开通讯(深圳)有限公司 The creation method of storage device, application program control and user interface
CN108628629A (en) * 2018-05-21 2018-10-09 网易(杭州)网络有限公司 UI update methods, device, equipment and storage medium
CN109408086A (en) * 2018-09-28 2019-03-01 平安普惠企业管理有限公司 Interface updating method, device, computer equipment and the storage medium of APP

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427240A (en) * 2019-07-30 2019-11-08 努比亚技术有限公司 Intelligence desktop management method, wearable device and computer readable storage medium
CN111427699A (en) * 2020-03-02 2020-07-17 福建省天奕网络科技有限公司 Message reminding method and storage medium
CN111427699B (en) * 2020-03-02 2023-04-11 福建省天奕网络科技有限公司 Message reminding method and storage medium
CN112363654A (en) * 2020-11-27 2021-02-12 歌尔科技有限公司 Display control method of wearable device, wearable device and storage medium

Similar Documents

Publication Publication Date Title
CN109946986A (en) Household electric appliance control method, wearable device and computer readable storage medium
CN109947327A (en) A kind of interface inspection method, wearable device and computer readable storage medium
CN110058915A (en) Interface adaptation adaptation method, device, wearable device and storage medium
CN109976612A (en) Application function implementation method, wearable device, mobile phone and computer readable storage medium
CN110362368A (en) Picture customization display methods, relevant device and the storage medium of wearable device
CN110099176A (en) Breath screen display methods, wearable device and computer readable storage medium
CN109995938A (en) A kind of notice display methods, mobile phone, wearable device and calculate readable storage medium storing program for executing
CN110399195A (en) A kind of desktop icons dynamic replacement method, equipment and computer readable storage medium
CN110175066A (en) Wearable device, interaction control method and computer readable storage medium
CN110134312A (en) Control method, wearable device and computer readable storage medium
CN110308883A (en) Method for splitting, wearable device and the computer readable storage medium of screen
CN110098845A (en) Message treatment method, wearable device, mobile terminal and readable storage medium storing program for executing
CN110086563A (en) A kind of method of controlling rotation, equipment and computer readable storage medium
CN110175008A (en) Method, wearable device and the computer readable storage medium of operating terminal
CN110086930A (en) A kind of voice interactive method, wearable device and computer readable storage medium
CN110191230A (en) Application interface display methods, mobile terminal and readable storage medium storing program for executing
CN110109603A (en) A kind of page operation method, wearable device and computer readable storage medium
CN110071866A (en) A kind of instant messaging application control method, wearable device and storage medium
CN110069184A (en) Control method, wearable device and the computer readable storage medium of mobile terminal
CN110058760A (en) A kind of display methods, wearable device and computer readable storage medium
CN110083205A (en) Page switching method, wearable device and computer readable storage medium
CN110198377A (en) A kind of double screen terminal control method, double screen terminal and computer readable storage medium
CN109947501A (en) Starting processing method, wearable device and the storage medium of application program
CN109992341A (en) Button fast response method, wearable device and computer readable storage medium
CN110096150A (en) A kind of search interaction control method, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination