CN109901904A - Picture adjusting method and wearable device are applied in wearable device - Google Patents

Picture adjusting method and wearable device are applied in wearable device Download PDF

Info

Publication number
CN109901904A
CN109901904A CN201910138971.5A CN201910138971A CN109901904A CN 109901904 A CN109901904 A CN 109901904A CN 201910138971 A CN201910138971 A CN 201910138971A CN 109901904 A CN109901904 A CN 109901904A
Authority
CN
China
Prior art keywords
picture
display screen
control
display
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.)
Granted
Application number
CN201910138971.5A
Other languages
Chinese (zh)
Other versions
CN109901904B (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 CN201910138971.5A priority Critical patent/CN109901904B/en
Publication of CN109901904A publication Critical patent/CN109901904A/en
Application granted granted Critical
Publication of CN109901904B publication Critical patent/CN109901904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses picture adjusting method and wearable device are applied in a kind of wearable device, wherein this method comprises: obtaining the width and height of the display screen of wearable device;The display state of picture is applied according to the width of the display screen and/or height adjustment;It is shown in the display screen described using picture after adjusting, therefore, can solve wearable device in the related technology since screen is smaller can not normally show that third-party application picture leads to the problem of being difficult with, and realize the effect that wearable device opposite sex screen automatic adjusument shows picture.

Description

Picture adjusting method and wearable device are applied in wearable device
Technical field
The present invention relates to the communications field, in particular to applying picture adjusting method in a kind of wearable device and wear Wear formula equipment.
Background technique
Present mobile device screen size is varied, and length-width ratio has 16:9,4:3,5:1 etc., and third-party application The version for adapting to various sizes screen can not be provided, by taking 5:1 as an example, since the display screen of wearable device is smaller, mainstream at present Third-party application on the screen of 5:1 UI can be stacked, it is difficult to using or be not available, wearable device to provide from Adaptability can just provide the user with better usage experience.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides picture adjusting method and wearable device is applied in a kind of wearable device, at least Solve in the related technology wearable device due to showing that smaller can not normally to show that third-party application picture causes unworkable Problem.
According to an aspect of an embodiment of the present invention, it provides in a kind of wearable device using picture adjusting method, packet It includes:
Obtain the width and height of the display screen of wearable device;
The display state of picture is applied according to the width of the display screen and/or height adjustment;
It is shown in the display screen described using picture after adjusting.
Optionally, it adjusts according to the width of the display screen and/or height and described includes: using the display state of picture
For described one painting canvas of window design using picture, wherein the size of the painting canvas is greater than the display screen Size;
The sliding control for supporting sliding is added in the root node of the window;
The display state using picture is adjusted by the sliding control.
Optionally, show that the application picture after adjustment includes: in the display screen
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, touched by the transverse direction received Control instruction is shown described using picture in a manner of horizontally slipping;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, touched by the longitudinal direction received Control instruction is shown described using picture in a manner of sliding up and down.
Optionally, include: using the display state of picture according to the width of the display screen and/or height adjustment
Design one is using bitmap as the painting canvas of rear end;
Network Search view WebView control;
The painting canvas is passed into the WebView control;
Generate size image views imageView control identical with the display screen;
The bitmap is reduced into display on the imageView control, to adjust the display state for applying picture;
Show that the application picture after adjustment includes: in the display screen
The imageView control is projected described in the display screen display using picture.
Optionally, the bitmap is reduced display includes: on the imageView control
Scaling is determined according to the size of the size of the imageView control and the WebView;
The bitmap is reduced into display on the imageView control according to the scaling.
Optionally, the imageView control is being projected described in the display screen display using after picture, institute State method further include:
Touch control operation is received by the display screen;
Obtain the position coordinates of the touch control operation;
According to the scaling event coordinates will be obtained after position coordinates amplification;
The event coordinates are passed into the WebView control;
The touch control operation is responded by the WebView control.
According to another aspect of an embodiment of the present invention, a kind of wearable device is additionally provided, the wearable device includes: Processor, memory and communication bus, wherein
The communication bus, for realizing the connection communication between the processor and the memory;
The processor, for executing the application picture adjustment programme stored in memory, to perform the steps of
Obtain the width and height of the display screen of wearable device;
The display state of picture is applied according to the width of the display screen and/or height adjustment;
It is shown in the display screen described using picture after adjusting.
Optionally, the processor is also used to execute using picture adjustment programme, to perform the steps of
For described one painting canvas of window design using picture, wherein the size of the painting canvas is greater than the display screen Size;
The sliding control for supporting sliding is added in the root node of the window;
The display state using picture is adjusted by the sliding control.
Optionally, the processor is also used to execute using picture adjustment programme, to perform the steps of
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, touched by the transverse direction received Control instruction is shown described using picture in a manner of horizontally slipping;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, touched by the longitudinal direction received Control instruction is shown described using picture in a manner of sliding up and down.
Optionally, the processor is also used to execute using picture adjustment programme, to perform the steps of
Design one is using bitmap as the painting canvas of rear end;
Network Search view WebView control;
The painting canvas is passed into the WebView control;
Generate size image views imageView control identical with the display screen;
The bitmap is reduced into display on the imageView control, to adjust the display state for applying picture;
The imageView control is projected described in the display screen display using picture.
Optionally, the processor is also used to execute using picture adjustment programme, to perform the steps of
Scaling is determined according to the size of the size of the imageView control and the WebView;
The bitmap is reduced into display on the imageView control according to the scaling.
Optionally, the processor is also used to execute using picture adjustment programme, to perform the steps of
The imageView control is being projected described in the display screen display using after picture, by described Display screen receives touch control operation;
Obtain the position coordinates of the touch control operation;
According to the scaling event coordinates will be obtained after position coordinates amplification;
The event coordinates are passed into the WebView control;
The touch control operation is responded by the WebView control.
According to another aspect of an embodiment of the present invention, a kind of computer readable storage medium, the computer are additionally provided Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor It executes, the step of to realize above- mentioned information synchronization processing method.
Through the invention, the width and height of the display screen of wearable device are obtained;According to the width of the display screen and/ Or the display state of picture is applied in height adjustment;Shown in the display screen adjustment after it is described using picture therefore can It can not normally show that third-party application picture causes to be difficult with since screen is smaller to solve wearable device in the related technology The problem of, realize the effect that wearable device opposite sex screen automatic adjusument shows picture.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that picture adjusting method is applied in wearable device according to an embodiment of the present invention;
Fig. 2 is the schematic diagram one of wearable device according to an embodiment of the present invention;
Fig. 3 is the schematic diagram two of wearable device according to an embodiment of the present invention;
Fig. 4 is the schematic diagram that picture regulator is applied in a kind of wearable device according to an embodiment of the present invention;
Fig. 5 is the schematic diagram that picture regulator is applied in a kind of optional wearable device according to an embodiment of the present invention One;
Fig. 6 is the schematic diagram that picture regulator is applied in a kind of optional wearable device according to an embodiment of the present invention Two;
Fig. 7 is a kind of structural block diagram of wearable device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, it provides using picture adjusting method in a kind of wearable device, Fig. 1 is according to this hair The flow chart of picture adjusting method is applied in the wearable device of bright embodiment, as shown in Figure 1, comprising:
Step S101 obtains the width and height of the display screen of wearable device;
Step S102 applies the display state of picture according to the width of the display screen and/or height adjustment;
Step S103 is shown described using picture after adjusting in the display screen.
S101 to S103 through the above steps obtains the width and height of the display screen of wearable device;According to described aobvious The display state of picture is applied in the width of display screen and/or height adjustment;It is answered described in being shown in the display screen after adjusting With picture, therefore, can solve wearable device in the related technology can not normally show that third-party application is drawn since screen is smaller Face leads to the problem of being difficult with, and realizes the effect that wearable device opposite sex screen automatic adjusument shows picture.
Wearable device in the embodiment of the present invention includes Intelligent bracelet, smartwatch and mobile terminal.With screen The continuous development of technology, the appearance of the screens form such as flexible screen, Folding screen, mobile terminal 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, sensor, display unit, user input unit, interface unit, is deposited A/V (audio/video) input unit The components such as reservoir, processor and power supply.It will be understood by those skilled in the art that the structure of foregoing description is not constituted to can The restriction of wearable device, wearable device may include more or fewer components, perhaps combine certain components or different Component layout.
Fig. 2 is the schematic diagram one of wearable device according to an embodiment of the present invention, and Fig. 3 is according to an embodiment of the present invention wears The schematic diagram two of formula equipment is worn, as shown in Figures 2 and 3, the embodiment of the present invention is that the abnormity screen based on wearable device is smaller, for Third-party application picture can not normally be shown, be adjusted to third-party application picture according to the size of display screen, be convenient for Corresponding manipulation is carried out to the corresponding function of third-party application in display screen, user experience can be improved.
The display state using picture is adjusted according to the width of the display screen and/or height in the embodiment of the present invention Mode more than one, can have different adjustment modes according to display screen different size, in an alternative embodiment, on Stating step S102 can specifically include: for described one painting canvas of window design using picture, wherein the size of the painting canvas is big In the size of the display screen;The sliding control for supporting sliding is added in the root node of the window;It is controlled by the sliding Part adjusts the display state using picture.
Accordingly, above-mentioned steps S103 can specifically include:
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, touched by the transverse direction received Control instruction is shown described using picture in a manner of horizontally slipping, i.e., user can be checked by the scroll bar that horizontally slips all answers With the content of picture;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, touched by the longitudinal direction received Control instruction is shown described using picture in a manner of sliding up and down, i.e. user can be checked by way of sliding up and down scroll bar All using the content of picture.
In another alternative embodiment, above-mentioned steps S102 can specifically include:
Step S1021 designs one using bitmap as the painting canvas of rear end;
Step S1022, Network Search view WebView control;
The painting canvas is passed to the WebView control by step S1023;
Step S1024 generates size image views imageView control identical with the display screen;
The bitmap is reduced display on the imageView control, to adjust using the aobvious of picture by step S1025 Show state;
Accordingly, above-mentioned steps S103 can specifically include:
The imageView control is projected using picture described in the display screen display, display screen can be shown Show the complete content for applying picture.
Optionally, above-mentioned steps S1025 can specifically include:
Scaling is determined according to the size of the size of the imageView control and the WebView, specifically, institute The ratio for stating the size of imageView control and the size of the WebView is the scaling;
The bitmap is reduced into display on the imageView control according to the scaling.
In the embodiment of the present invention, correspondingly touch control operation can also be carried out in the display screen of wearable device, specifically, The imageView control is being projected described in the display screen display using after picture, is being connect by the display screen Touch control operation is received, the position coordinates of the touch control operation are obtained, will be obtained after position coordinates amplification according to the scaling To event coordinates;The event coordinates are passed into the WebView control, the WebView control performs corresponding processing, The touch control operation is responded by the WebView control.
It should be noted that the embodiment of the present invention is not specifically limited the triggering mode of touch control operation, for example, touch-control is grasped Make to trigger touch control operation performed by target object in display screen as user and generate, wherein user is in display screen May include to touch control operation performed by target object but be not limited to: click (including click, double-click), long-pressing, dragging, Gesture etc..
In order to promote user experience, the mechanism that abnormity shields adaptive third-party application is devised on the mobile apparatus, is solved Picture display problem under special screne.Third-party application user interface UI there are two main classes display problem, solution It is as follows respectively:
1. UI component count is excessive in the same direction in application picture, cause screen that can not show that stack of components is one It rises.
It is every in graphic user interface (Graphical User Interface, referred to as, GUI) system of android The painting canvas that each window of a application is seen is different, and the painting canvas of screen width is greater than for each window design one, so One is added in the root layout of each window afterwards and supports the control to horizontally slip, can be seen by way of horizontally slipping in this way To complete picture.
2. third-party application does not use the GUI component of system, the picture for exceeding screen is drawn on customized painting canvas Cloth leads to not see complete picture.
For example third-party application draws a two dimensional code using network view webview component, and this two dimensional code is big The width or height of the small screen exceeded, at this moment user is it is seen that an incomplete two dimensional code, an incomplete two dimension Code, which can not scan, to be used.
The solution of design are as follows: design one is using Bitmap bitmap as the painting canvas Canvas of rear end, first android's WebView control is found in View tree, the picture draw method of the WebView control is then called, ready painting canvas Canvas passes to WebView control, the complete bitmap Bitmap of the WebView picture can be taken by this method, then The imageView component generated, size and display screen be it is the same, the bitmap that front is generated reduces display and exists On ImageView control, the ratio delta reduced can be calculated by WebView and imageView size, be passed through This method allows user that can see a complete two dimensional code.Wherein, vivid view ImageView control is responsible for showing picture.
Event coordinates are recalculated in the event handling function of imageView control, event coordinates press original diminution Ratio delta, which is done, to be amplified, and amplified event coordinates pass to WebView to handle.
The view zoomed in or out that can be regarded as WebView by above method imageView, because of image Itself scaling processing can be done, so it is adapted to the size of abnormity screen, bring better usage experience.
The embodiment of the present invention solves the adaptive problem that abnormity shields upper third-party application picture, passes through foundation ImageView forms the scaling view of third party's picture, third party's picture can be effectively treated, without being concerned about that third party draws The implementation in face, the user experience is improved.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing in above-mentioned wearable device using picture adjusting method Wearable device in apply picture regulator, Fig. 4 is in a kind of wearable device according to an embodiment of the present invention using picture Face adjusts the schematic diagram of device, as shown in figure 4, the apparatus may include:
Module 41 is obtained, for obtaining the width and height of the display screen of wearable device;
Module 42 is adjusted, the display state of picture is applied for the width and/or height adjustment according to the display screen;
Display module 43, it is described using picture after adjusting for being shown in the display screen.
By above-mentioned module, can solve wearable device in the related technology since screen is smaller can not normally show third Fang Yingyong picture leads to the problem of being difficult with, and realizes the effect that wearable device opposite sex screen automatic adjusument shows picture.
Fig. 5 is the schematic diagram that picture regulator is applied in a kind of optional wearable device according to an embodiment of the present invention One, as shown in figure 5, the adjustment module 42 includes:
First design cell 51, for for described one painting canvas of window design using picture, wherein the painting canvas it is big The small size greater than the display screen;
Adding unit 52, for the sliding control for supporting sliding to be added in the root node of the window;
Adjustment unit 53, for adjusting the display state using picture by the sliding control.
Optionally, the display module 43, is also used to:
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, touched by the transverse direction received Control instruction is shown described using picture in a manner of horizontally slipping;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, touched by the longitudinal direction received Control instruction is shown described using picture in a manner of sliding up and down.
Fig. 6 is the schematic diagram that picture regulator is applied in a kind of optional wearable device according to an embodiment of the present invention Two, as shown in fig. 6, adjustment module 42 includes:
Second design cell 61, for designing one using bitmap as the painting canvas of rear end;
Searching unit 62 is used for Network Search view WebView control;
Transfer unit 63, for the painting canvas to be passed to the WebView control;
Generation unit 64, for generating size image views imageView control identical with the display screen;
Reducing unit 65 applies picture for the bitmap to be reduced display in the imageView control to adjust Display state;
The display module 43 is also used to project the imageView control and answer described in the display screen display Use picture.
Optionally, the reducing unit 65, is also used to
Scaling is determined according to the size of the size of the imageView control and the WebView;
The bitmap is reduced into display on the imageView control according to the scaling.
Optionally, described device further include:
Receiving module, for receiving touch control operation by the display screen;
Module is obtained, for obtaining the position coordinates of the touch control operation;
Amplification module, for according to the scaling event coordinates will to be obtained after position coordinates amplification;
Transfer module, for the event coordinates to be passed to the WebView control;
Respond module, for responding the touch control operation by the WebView control.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module may operate in firmly as a part of device In part environment, hardware realization can also be passed through by software realization.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the wearable device of the above method.
Fig. 7 is a kind of structural block diagram of wearable device according to an embodiment of the present invention, as shown in fig. 7, this wearable sets Standby may include: one or more (one is only shown in figure) processors 72, memory 71, and processor 72 passes through with memory 71 Communication bus connection.
Wherein, memory 71 can be used for storing software program and module, such as the video playing side in the embodiment of the present invention Method and the corresponding program instruction/module of device, the software program and mould that processor 72 is stored in memory 71 by operation Block realizes above-mentioned video broadcasting method thereby executing various function application and data processing.Memory 71 may include height Fast random access memory 71, can also include nonvolatile memory 71, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories 71 of person.In some instances, memory 71 can further comprise remote relative to processor 72 The memory 71 of journey setting, these remote memories 71 can pass through network connection to terminal.The example of above-mentioned network include but It is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned wearable device further includes that transmitting device (not shown) is used to receive or send out via a network Send data.Above-mentioned network specific example may include cable network and wireless network.In an example, transmitting device includes one A network adapter (Network Interface Controller, NIC), can pass through cable and other network equipments and road It is connected by device so as to be communicated with internet or local area network.In an example, transmitting device is radio frequency (Radio Frequency, RF) module, it is used to wirelessly be communicated with internet.
Wherein, specifically, memory 71 is for storing application program;
The application picture adjustment programme that processor 72 can call memory 71 to store, to execute following step:
Obtain the width and height of the display screen of wearable device;
The display state of picture is applied according to the width of the display screen and/or height adjustment;
It is shown in the display screen described using picture after adjusting.
Optionally, the processor 72 is also used to execute using picture adjustment programme, to perform the steps of
For described one painting canvas of window design using picture, wherein the size of the painting canvas is greater than the display screen Size;
The sliding control for supporting sliding is added in the root node of the window;
The display state using picture is adjusted by the sliding control.
Optionally, the processor 72 is also used to execute using picture adjustment programme, to perform the steps of
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, touched by the transverse direction received Control instruction is shown described using picture in a manner of horizontally slipping;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, touched by the longitudinal direction received Control instruction is shown described using picture in a manner of sliding up and down.
Optionally, the processor 72 is also used to execute using picture adjustment programme, to perform the steps of
Design one is using bitmap as the painting canvas of rear end;
Network Search view WebView control;
The painting canvas is passed into the WebView control;
Generate size image views imageView control identical with the display screen;
The bitmap is reduced into display on the imageView control, to adjust the display state for applying picture;
The imageView control is projected described in the display screen display using picture.
Optionally, the processor 72 is also used to execute using picture adjustment programme, to perform the steps of
Scaling is determined according to the size of the size of the imageView control and the WebView;
The bitmap is reduced into display on the imageView control according to the scaling.
Optionally, the processor 72 is also used to execute using picture adjustment programme, to perform the steps of
The imageView control is being projected described in the display screen display using after picture, by described Display screen receives touch control operation;
Obtain the position coordinates of the touch control operation;
According to the scaling event coordinates will be obtained after position coordinates amplification;
The event coordinates are passed into the WebView control;
The touch control operation is responded by the WebView control.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
The embodiments of the present invention also provide a kind of computer readable storage mediums.Optionally, in the present embodiment, above-mentioned Storage medium can be used for executing the program code of video broadcasting method.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 obtains the width and height of the display screen of wearable device;
S2 applies the display state of picture according to the width of the display screen and/or height adjustment;
S3 is shown described using picture after adjusting in the display screen.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment 1, the present embodiment Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. applying picture adjusting method in a kind of wearable device characterized by comprising
Obtain the width and height of the display screen of wearable device;
The display state of picture is applied according to the width of the display screen and/or height adjustment;
It is shown in the display screen described using picture after adjusting.
2. the method according to claim 1, wherein according to the width of the display screen and/or height adjustment institute It states and includes: using the display state of picture
For described one painting canvas of window design using picture, wherein the size of the painting canvas is greater than the size of the display screen;
The sliding control for supporting sliding is added in the root node of the window;
The display state using picture is adjusted by the sliding control.
3. according to the method described in claim 2, it is characterized in that, showing the application after adjustment in the display screen Picture includes:
When the sliding control is that the lateral slide-bar on the right side of the display screen is arranged in, referred to by the lateral touch-control received Order is shown described using picture in a manner of horizontally slipping;And/or
When the sliding control is that the longitudinal sliding motion on the right side of the display screen is arranged in, referred to by the longitudinal touch-control received Order is shown described using picture in a manner of sliding up and down.
4. the method according to claim 1, wherein
Include: using the display state of picture according to the width of the display screen and/or height adjustment
Design one is using bitmap as the painting canvas of rear end;
Network Search view WebView control;
The painting canvas is passed into the WebView control;
Generate size image views imageView control identical with the display screen;
The bitmap is reduced into display on the imageView control, to adjust the display state for applying picture;
Show that the application picture after adjustment includes: in the display screen
The imageView control is projected described in the display screen display using picture.
5. according to the method described in claim 4, being controlled it is characterized in that, the bitmap is reduced display in the imageView Include: on part
Scaling is determined according to the size of the size of the imageView control and the WebView;
The bitmap is reduced into display on the imageView control according to the scaling.
6. according to the method described in claim 5, it is characterized in that, the imageView control is projected the display After applying picture described in screen display, the method also includes:
Touch control operation is received by the display screen;
Obtain the position coordinates of the touch control operation;
According to the scaling event coordinates will be obtained after position coordinates amplification;
The event coordinates are passed into the WebView control;
The touch control operation is responded by the WebView control.
7. a kind of wearable device, which is characterized in that the wearable device includes: processor, memory and communication bus, In,
The communication bus, for realizing the connection communication between the processor and the memory;
The processor, for executing the application picture adjustment programme stored in memory, to perform the steps of
Obtain the width and height of the display screen of wearable device;
The display state of picture is applied according to the width of the display screen and/or height adjustment;
It is shown in the display screen described using picture after adjusting.
8. wearable device according to claim 7, which is characterized in that the processor is also used to execute using picture tune Whole program, to perform the steps of
For described one painting canvas of window design using picture, wherein the size of the painting canvas is greater than the size of the display screen;
The sliding control for supporting sliding is added in the root node of the window;
The display state using picture is adjusted by the sliding control.
9. wearable device according to claim 7, which is characterized in that the processor is also used to execute using picture tune Whole program, to perform the steps of
Design one is using bitmap as the painting canvas of rear end;
Network Search view WebView control;
The painting canvas is passed into the WebView control;
Generate size image views imageView control identical with the display screen;
The bitmap is reduced into display on the imageView control, to adjust the display state for applying picture;
The imageView control is projected described in the display screen display using picture.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, be appointed with realizing in claim 1-6 The step of picture adjusting method is applied in one wearable device.
CN201910138971.5A 2019-02-25 2019-02-25 Application picture adjusting method in wearable device and wearable device Active CN109901904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910138971.5A CN109901904B (en) 2019-02-25 2019-02-25 Application picture adjusting method in wearable device and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910138971.5A CN109901904B (en) 2019-02-25 2019-02-25 Application picture adjusting method in wearable device and wearable device

Publications (2)

Publication Number Publication Date
CN109901904A true CN109901904A (en) 2019-06-18
CN109901904B CN109901904B (en) 2022-06-07

Family

ID=66945326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910138971.5A Active CN109901904B (en) 2019-02-25 2019-02-25 Application picture adjusting method in wearable device and wearable device

Country Status (1)

Country Link
CN (1) CN109901904B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051010A (en) * 2019-12-28 2021-06-29 Oppo(重庆)智能科技有限公司 Application picture adjusting method in wearable device and related device
CN114173005A (en) * 2020-09-11 2022-03-11 华为技术有限公司 Application layout control method and related device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6825860B1 (en) * 2000-09-29 2004-11-30 Rockwell Automation Technologies, Inc. Autoscaling/autosizing user interface window
US20120204094A1 (en) * 2011-02-08 2012-08-09 Ebay Inc. Application above-the-fold rendering measurements
CN104238863A (en) * 2014-08-29 2014-12-24 广州视睿电子科技有限公司 Android-based enclosing zooming method and system
CN104503655A (en) * 2014-11-28 2015-04-08 晨星半导体股份有限公司 Application program interface display control method and device
CN104732486A (en) * 2015-03-23 2015-06-24 海信集团有限公司 Picture display method and device
CN106598404A (en) * 2015-10-16 2017-04-26 青岛海信移动通信技术股份有限公司 Window display method and mobile terminal
CN108008904A (en) * 2017-11-30 2018-05-08 努比亚技术有限公司 Wearable flexible screen display methods, mobile terminal and computer-readable recording medium
CN108089791A (en) * 2017-12-29 2018-05-29 努比亚技术有限公司 Screen resolution method of adjustment, mobile terminal and computer readable storage medium
CN108319329A (en) * 2017-12-27 2018-07-24 努比亚技术有限公司 A kind of display control method, flexible screen terminal and computer readable storage medium
CN108322569A (en) * 2018-02-24 2018-07-24 珠海格力电器股份有限公司 A kind of folding screen display methods, folding mobile terminal
CN108319487A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 Image display method, mobile terminal and computer readable storage medium
CN108334391A (en) * 2017-12-31 2018-07-27 广州金十信息科技有限公司 A kind of multisystem shows adaptation method, electronic equipment and storage medium
CN109064529A (en) * 2018-07-30 2018-12-21 北京酷我科技有限公司 A kind of animation algorithms of button dynamic flashing
CN109068084A (en) * 2018-08-31 2018-12-21 努比亚技术有限公司 Video calling picture display process, mobile terminal and computer readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6825860B1 (en) * 2000-09-29 2004-11-30 Rockwell Automation Technologies, Inc. Autoscaling/autosizing user interface window
US20120204094A1 (en) * 2011-02-08 2012-08-09 Ebay Inc. Application above-the-fold rendering measurements
CN104238863A (en) * 2014-08-29 2014-12-24 广州视睿电子科技有限公司 Android-based enclosing zooming method and system
CN104503655A (en) * 2014-11-28 2015-04-08 晨星半导体股份有限公司 Application program interface display control method and device
CN104732486A (en) * 2015-03-23 2015-06-24 海信集团有限公司 Picture display method and device
CN106598404A (en) * 2015-10-16 2017-04-26 青岛海信移动通信技术股份有限公司 Window display method and mobile terminal
CN108008904A (en) * 2017-11-30 2018-05-08 努比亚技术有限公司 Wearable flexible screen display methods, mobile terminal and computer-readable recording medium
CN108319329A (en) * 2017-12-27 2018-07-24 努比亚技术有限公司 A kind of display control method, flexible screen terminal and computer readable storage medium
CN108089791A (en) * 2017-12-29 2018-05-29 努比亚技术有限公司 Screen resolution method of adjustment, mobile terminal and computer readable storage medium
CN108334391A (en) * 2017-12-31 2018-07-27 广州金十信息科技有限公司 A kind of multisystem shows adaptation method, electronic equipment and storage medium
CN108319487A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 Image display method, mobile terminal and computer readable storage medium
CN108322569A (en) * 2018-02-24 2018-07-24 珠海格力电器股份有限公司 A kind of folding screen display methods, folding mobile terminal
CN109064529A (en) * 2018-07-30 2018-12-21 北京酷我科技有限公司 A kind of animation algorithms of button dynamic flashing
CN109068084A (en) * 2018-08-31 2018-12-21 努比亚技术有限公司 Video calling picture display process, mobile terminal and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨飞 等: ""基于Android智能终端的移动视频监控系统研究"", 《计算机技术与发展》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051010A (en) * 2019-12-28 2021-06-29 Oppo(重庆)智能科技有限公司 Application picture adjusting method in wearable device and related device
CN113051010B (en) * 2019-12-28 2023-04-28 Oppo(重庆)智能科技有限公司 Application picture adjustment method and related device in wearable equipment
CN114173005A (en) * 2020-09-11 2022-03-11 华为技术有限公司 Application layout control method and related device

Also Published As

Publication number Publication date
CN109901904B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN107071331B (en) Image display method, device and system, storage medium and processor
CN104090700B (en) application icon management method and device
CN103902165B (en) The method and apparatus for realizing menu background
EP2840472B1 (en) Menu layout processing method and apparatus
KR20170011675A (en) Mobile terminal and method for controlling the same
CN105204354A (en) Smart home device control method and device
CN104540012B (en) Content shared method, apparatus and terminal
CN103927086A (en) Wallpaper processing method and system and mobile terminal
CN109901904A (en) Picture adjusting method and wearable device are applied in wearable device
CN110070496A (en) Generation method, device and the hardware device of image special effect
CN105404578B (en) Method and apparatus for showing the occupied memory of application program
CN107911547A (en) Interactive system, the method for interface layout
CN111767012A (en) Screen projection method and device
CN110460774A (en) A kind of control method and terminal of video record
CN109769089A (en) A kind of image processing method and terminal device
CN106528163A (en) Page switching method and device
CN110363814A (en) A kind of method for processing video frequency, device, electronic device and storage medium
CN106878783A (en) A kind of method and device of lookup equipment
EP2793122A2 (en) Method for controlling audio output and device supporting the same
CN105701850A (en) Real-time method for collaborative animation
CN104980582A (en) Screen switching method and mobile terminal
US10303268B2 (en) Flexible component-based interactive method and interactive apparatus, and user equipment
CN112270728A (en) Image processing method and device, electronic equipment and readable storage medium
CN109309822A (en) Projecting method and optical projection system
CN105491183B (en) 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