CN109901904B - Application picture adjusting method in wearable device and wearable device - Google Patents

Application picture adjusting method in wearable device and wearable device Download PDF

Info

Publication number
CN109901904B
CN109901904B CN201910138971.5A CN201910138971A CN109901904B CN 109901904 B CN109901904 B CN 109901904B CN 201910138971 A CN201910138971 A CN 201910138971A CN 109901904 B CN109901904 B CN 109901904B
Authority
CN
China
Prior art keywords
display screen
control
application
screen
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910138971.5A
Other languages
Chinese (zh)
Other versions
CN109901904A (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

Images

Landscapes

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

Abstract

The invention discloses an application picture adjusting method in wearable equipment and the wearable equipment, wherein the method comprises the following steps: acquiring the width and height of a display screen of the wearable device; adjusting the display state of an application picture according to the width and/or height of the display screen; the adjusted application picture is displayed in the display screen, so that the problem that the wearable device in the related technology is difficult to use due to the fact that the screen is small and the third-party application picture cannot be normally displayed can be solved, and the effect of self-adaptive adjustment of the display picture of the wearable device through the opposite-type screen is achieved.

Description

Application picture adjusting method in wearable device and wearable device
Technical Field
The invention relates to the field of communication, in particular to an application picture adjusting method in wearable equipment and the wearable equipment.
Background
Mobile devices now have a wide variety of screen sizes with an aspect ratio of 16: 9,4: 3,5: 1, etc., while third party applications cannot provide versions to accommodate screens of various sizes, taking 5:1 as an example, since the display screen of the wearable device is small, currently mainstream third party applications are 5:1, are difficult or impossible to use, and the wearable device provides adaptive capabilities to provide a better user experience.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an application picture adjusting method in wearable equipment and the wearable equipment, which are used for at least solving the problem that the wearable equipment in the related technology is difficult to use due to the fact that the display is small and a third party application picture cannot be normally displayed.
According to an aspect of the embodiments of the present invention, there is provided an application screen adjusting method in a wearable device, including:
acquiring the width and height of a display screen of the wearable device;
adjusting the display state of an application picture according to the width and/or height of the display screen;
and displaying the application picture after adjustment in the display screen.
Optionally, adjusting the display state of the application screen according to the width and/or height of the display screen includes:
designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen;
adding a sliding control supporting sliding into the root node of the window;
and adjusting the display state of the application picture through the sliding control.
Optionally, displaying the application screen after the adjustment in the display screen includes:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, displaying the application picture in a left-right sliding mode through a received transverse touch instruction; and/or the presence of a gas in the atmosphere,
and when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, displaying the application picture in a vertical sliding mode through the received longitudinal touch instruction.
Optionally, adjusting the display state of the application screen according to the width and/or height of the display screen includes:
designing a canvas with a bitmap as a rear end;
searching a WebView control;
passing the canvas to the WebView control;
generating an image view imageView control with the same size as the display screen;
zooming out and displaying the bitmap on the imageView control to adjust the display state of an application picture;
displaying the application screen after the adjustment in the display screen includes:
and projecting the imageView control to the display screen to display the application picture.
Optionally, displaying the bitmap reduced on the imageView control comprises:
determining a scaling ratio according to the size of the imageView control and the size of the WebView;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
Optionally, after the imageView control is projected onto the display screen to display the application picture, the method further includes:
receiving touch operation through the display screen;
acquiring a position coordinate of the touch operation;
amplifying the position coordinate according to the scaling to obtain an event coordinate;
transmitting the event coordinates to the WebView control;
and responding to the touch operation through the WebView control.
According to another aspect of the embodiments of the present invention, there is also provided a wearable device, including: a processor, a memory, and a communication bus, wherein,
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the application picture adjusting program stored in the memory so as to realize the following steps:
acquiring the width and height of a display screen of the wearable device;
adjusting the display state of an application picture according to the width and/or height of the display screen;
and displaying the application picture after adjustment in the display screen.
Optionally, the processor is further configured to execute an application screen adjustment program to implement the following steps:
designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen;
adding a sliding control supporting sliding into the root node of the window;
and adjusting the display state of the application picture through the sliding control.
Optionally, the processor is further configured to execute an application screen adjustment program to implement the following steps:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, displaying the application picture in a left-right sliding mode through a received transverse touch instruction; and/or the presence of a gas in the gas,
and when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, displaying the application picture in a vertical sliding mode through the received longitudinal touch instruction.
Optionally, the processor is further configured to execute an application screen adjustment program to implement the following steps:
designing a canvas with a bitmap as a rear end;
searching a WebView control;
passing the canvas to the WebView control;
generating an image view imageView control with the same size as the display screen;
zooming out and displaying the bitmap on the imageView control to adjust the display state of an application picture;
and projecting the imageView control to the display screen to display the application picture.
Optionally, the processor is further configured to execute an application screen adjustment program to implement the following steps:
determining a scaling according to the size of the imageView control and the size of the WebView;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
Optionally, the processor is further configured to execute an application screen adjustment program to implement the following steps:
after the imageView control is projected to the display screen to display the application picture, receiving touch operation through the display screen;
acquiring a position coordinate of the touch operation;
amplifying the position coordinate according to the scaling to obtain an event coordinate;
transmitting the event coordinates to the WebView control;
and responding to the touch operation through the WebView control.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps of the above-described information synchronization processing method.
According to the invention, the width and the height of the display screen of the wearable device are obtained; adjusting the display state of an application picture according to the width and/or height of the display screen; the adjusted application picture is displayed in the display screen, so that the problem that the wearable device in the related technology is difficult to use due to the fact that the screen is small and the third-party application picture cannot be normally displayed can be solved, and the effect of self-adaptive adjustment of the display picture of the wearable device through the opposite-type screen is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of an application screen adjustment method in a wearable device according to an embodiment of the present invention;
FIG. 2 is a first schematic diagram of a wearable device according to an embodiment of the invention;
FIG. 3 is a second schematic view of a wearable device according to an embodiment of the invention;
fig. 4 is a schematic diagram of an application screen adjusting apparatus in a wearable device according to an embodiment of the present invention;
fig. 5 is a first schematic diagram of an application screen adjusting apparatus in an alternative wearable device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a second application screen adjustment apparatus in an alternative wearable device according to an embodiment of the present invention;
fig. 7 is a block diagram of a wearable device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided a method for adjusting an application screen in a wearable device, and fig. 1 is a flowchart of the method for adjusting an application screen in a wearable device according to an embodiment of the present invention, as shown in fig. 1, including:
step S101, obtaining the width and height of a display screen of the wearable device;
step S102, adjusting the display state of an application picture according to the width and/or height of the display screen;
and step S103, displaying the adjusted application picture in the display screen.
Acquiring the width and the height of a display screen of the wearable device through the steps S101 to S103; adjusting the display state of an application picture according to the width and/or height of the display screen; the adjusted application picture is displayed in the display screen, so that the problem that the wearable device in the related technology is difficult to use due to the fact that the screen is small and the third-party application picture cannot be normally displayed can be solved, and the effect of self-adaptive adjustment of the display picture of the wearable device through the opposite-type screen is achieved.
The wearable device in the embodiment of the invention comprises an intelligent bracelet, an intelligent watch and a mobile terminal. With the continuous development of screen technologies and the appearance of screen forms such as flexible screens and folding screens, the mobile terminal can also be used as a wearable device. The wearable device provided in the embodiment of the present invention may include: a Radio Frequency (RF) unit, a WiFi module, an audio output unit, an a/V (audio/video) input unit, a sensor, a display unit, a user input unit, an interface unit, a memory, a processor, and a power supply. It will be appreciated by those skilled in the art that the above described structure does not constitute a limitation of the wearable device, which may include more or fewer components, or combine certain components, or a different arrangement of components.
Fig. 2 is a first schematic diagram of the wearable device according to the embodiment of the present invention, and fig. 3 is a second schematic diagram of the wearable device according to the embodiment of the present invention, as shown in fig. 2 and 3, the embodiment of the present invention is based on that the special-shaped screen of the wearable device is small, the third-party application screen cannot be normally displayed, and the third-party application screen is adjusted according to the size of the display screen, so that the corresponding function of the third-party application is conveniently controlled in the display screen, and the user experience can be improved.
In the embodiment of the present invention, there is more than one way to adjust the display state of the application screen according to the width and/or height of the display screen, and there may be different adjustment ways according to different sizes of the display screen, and in an optional embodiment, the step S102 may specifically include: designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen; adding a sliding control supporting sliding into the root node of the window; and adjusting the display state of the application picture through the sliding control.
Correspondingly, the step S103 may specifically include:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, the application picture is displayed in a left-right sliding mode through the received transverse touch instruction, namely, a user can view the contents of all the application pictures through a left-right sliding scroll bar; and/or the presence of a gas in the gas,
when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, the application picture is displayed in a vertical sliding mode through the received longitudinal touch instruction, namely, a user can view the contents of all the application pictures in a vertical sliding mode through a scroll bar.
In another optional embodiment, the step S102 may specifically include:
step S1021, designing a canvas with a bitmap as a rear end;
step S1022, searching a WebView control of the network view;
step S1023, transferring the canvas to the WebView control;
step S1024, generating an image view imageView control with the same size as the display screen;
step S1025, displaying the bitmap on the imageView control in a reduced mode so as to adjust the display state of an application picture;
correspondingly, the step S103 may specifically include:
and projecting the imageView control to the display screen to display the application picture, wherein the display screen can display the content of the complete application picture.
Optionally, the step S1025 may specifically include:
determining a scaling ratio according to the size of the imageView control and the size of the WebView, wherein specifically, the ratio of the size of the imageView control to the size of the WebView is the scaling ratio;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
In the embodiment of the present invention, a corresponding touch operation may also be performed in a display screen of the wearable device, and specifically, after the imageView control is projected onto the display screen to display the application picture, the display screen receives the touch operation, obtains a position coordinate of the touch operation, and amplifies the position coordinate according to the scaling to obtain an event coordinate; and transmitting the event coordinate to the WebView control, carrying out corresponding processing on the WebView control, and responding to the touch operation through the WebView control.
It should be noted that, the triggering manner of the touch operation in the embodiment of the present invention is not specifically limited, for example, the touch operation may be generated by triggering the touch operation performed by the user on the target object in the display screen, where the touch operation performed by the user on the target object in the display screen may include, but is not limited to: clicks (including single click, double click, etc.), long presses, drags, gestures, etc.
In order to improve user experience, a mechanism of the special-shaped screen self-adaptive third-party application is designed on the mobile equipment, and the problem of picture display in a special scene is solved. The third party application user interface UI mainly has two types of display problems, and the solutions are as follows:
1. the number of UI components in the application picture is too large in the same direction, so that the screen cannot be displayed, and the components are stacked together.
The method comprises the steps of designing a canvas which is larger than the width of a screen for each window, and adding a control which supports sliding left and right in the root layout of each window, so that a complete picture can be seen in a sliding left and right mode.
2. The third party application draws a canvas beyond the screen on the custom canvas without using the GUI components of the system, resulting in a failure to see the complete picture.
For example, a third-party application draws a two-dimensional code by using a web view webview component, and the size of the two-dimensional code exceeds the width or height of a screen, so that the user sees an incomplete two-dimensional code which cannot be scanned and used.
The designed solution is as follows: designing a Canvas with a Bitmap as a rear end, firstly finding a WebView control in a View tree of an android, then calling a draw method of the WebView control, transferring the prepared Canvas to the WebView control, taking a complete Bitmap of the WebView picture by the method, then generating an imageView component with the size same as that of a display screen, reducing and displaying the generated Bitmap on the ImageView control, calculating the reduced ratio delta of the Bitmap on the ImageView control, and enabling a user to see a complete two-dimensional code by the method. And the image view ImageView control is responsible for displaying the picture.
And recalculating the event coordinate in an event processing function of the imageView control, amplifying the event coordinate according to the original reduction rate delta, and transmitting the amplified event coordinate to the WebView for processing.
The imageView can be regarded as a reduced or enlarged view of the WebView through the method, and the image can be subjected to scaling processing, so that the imageView can adapt to the size of a special-shaped screen, and better use experience is brought.
According to the embodiment of the invention, the problem of self-adaption of the third-party application picture on the special-shaped screen is solved, the zoomed view of the third-party picture is formed by establishing the ImageView, the third-party picture can be effectively processed without concerning the implementation mode of the third-party picture, and the user experience is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is further provided an application screen adjusting apparatus in a wearable device for implementing the application screen adjusting method in the wearable device, and fig. 4 is a schematic diagram of an application screen adjusting apparatus in a wearable device according to an embodiment of the present invention, and as shown in fig. 4, the apparatus may include:
an obtaining module 41, configured to obtain a width and a height of a display screen of the wearable device;
an adjusting module 42, configured to adjust a display state of an application screen according to a width and/or a height of the display screen;
a display module 43, configured to display the adjusted application screen in the display screen.
Through the module, the problem that the wearable device is difficult to use due to the fact that the screen is small and the third-party application picture cannot be normally displayed in the wearable device in the related art can be solved, and the effect of self-adaptive adjustment of the display picture of the wearable device on the opposite-type screen is achieved.
Fig. 5 is a schematic diagram of an optional device for adjusting an application screen in a wearable device according to an embodiment of the present invention, as shown in fig. 5, the adjusting module 42 includes:
a first design unit 51, configured to design a canvas for the window of the application screen, where a size of the canvas is larger than a size of the display screen;
an adding unit 52, configured to add a sliding control supporting sliding in a root node of the window;
and an adjusting unit 53, configured to adjust a display state of the application screen through the sliding control.
Optionally, the display module 43 is further configured to:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, displaying the application picture in a left-right sliding mode through a received transverse touch instruction; and/or the presence of a gas in the gas,
and when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, displaying the application picture in a vertical sliding mode through the received longitudinal touch instruction.
Fig. 6 is a second schematic diagram of an application screen adjusting apparatus in an optional wearable device according to an embodiment of the present invention, and as shown in fig. 6, the adjusting module 42 includes:
the second design unit 61 is used for designing a canvas with a bitmap as a rear end;
the searching unit 62 is used for searching the WebView control;
a transferring unit 63, configured to transfer the canvas to the WebView control;
a generating unit 64, configured to generate an image view imageView control having the same size as the display screen;
a reducing unit 65, configured to reduce and display the bitmap on the imageView control to adjust a display state of an application picture;
the display module 43 is further configured to project the imageView control onto the display screen to display the application picture.
Optionally, the reduction unit 65 is further configured to
Determining a scaling according to the size of the imageView control and the size of the WebView;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
Optionally, the apparatus further comprises:
the receiving module is used for receiving touch operation through the display screen;
the acquisition module is used for acquiring the position coordinates of the touch operation;
the amplifying module is used for amplifying the position coordinates according to the scaling to obtain event coordinates;
the transfer module is used for transferring the event coordinate to the WebView control;
and the response module is used for responding to the touch operation through the WebView control.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of embodiment 1 described above. It should be noted that the modules may run in a hardware environment as a part of the apparatus, and may be implemented by software or hardware.
Example 3
According to the embodiment of the invention, the wearable device for implementing the method is also provided.
Fig. 7 is a block diagram of a wearable device according to an embodiment of the present invention, and as shown in fig. 7, the wearable device may include: one or more (only one is shown) processors 72, a memory 71, the processors 72 and the memory 71 being connected by a communication bus.
The memory 71 can be used for storing software programs and modules, such as program instructions/modules corresponding to the video playing method and apparatus in the embodiment of the present invention, and the processor 72 executes various functional applications and data processing by running the software programs and modules stored in the memory 71, that is, implements the video playing method. The memory 71 may include high speed random access memory 71 and may also include non-volatile memory 71, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory 71. In some examples, the memory 71 may further include memory 71 remotely located from the processor 72, and these remote memories 71 may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The wearable device further comprises transmission means (not shown) for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device includes a Network adapter (NIC) that can be connected to the router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Wherein, in particular, the memory 71 is used for storing application programs;
the processor 72 may call the application screen adjustment program stored in the memory 71 to perform the following steps:
acquiring the width and height of a display screen of the wearable device;
adjusting the display state of an application picture according to the width and/or height of the display screen;
and displaying the application picture after adjustment in the display screen.
Optionally, the processor 72 is further configured to execute an application screen adjustment program to implement the following steps:
designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen;
adding a sliding control supporting sliding into the root node of the window;
and adjusting the display state of the application picture through the sliding control.
Optionally, the processor 72 is further configured to execute an application screen adjustment program to implement the following steps:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, displaying the application picture in a left-right sliding mode through a received transverse touch instruction; and/or the presence of a gas in the gas,
and when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, displaying the application picture in a vertical sliding mode through the received longitudinal touch instruction.
Optionally, the processor 72 is further configured to execute an application screen adjustment program to implement the following steps:
designing a canvas with a bitmap as a rear end;
searching a WebView control;
passing the canvas to the WebView control;
generating an image view imageView control with the same size as the display screen;
zooming out and displaying the bitmap on the imageView control to adjust the display state of an application picture;
and projecting the imageView control to the display screen to display the application picture.
Optionally, the processor 72 is further configured to execute an application screen adjustment program to implement the following steps:
determining a scaling according to the size of the imageView control and the size of the WebView;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
Optionally, the processor 72 is further configured to execute an application screen adjustment program to implement the following steps:
after the imageView control is projected to the display screen to display the application picture, receiving touch operation through the display screen;
acquiring position coordinates of the touch operation;
amplifying the position coordinate according to the scaling to obtain an event coordinate;
transmitting the event coordinates to the WebView control;
and responding to the touch operation through the WebView control.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 4
Embodiments of the present invention also provide a computer-readable storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a video playing method.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, obtaining the width and height of a display screen of the wearable device;
s2, adjusting the display state of the application picture according to the width and/or height of the display screen;
and S3, displaying the adjusted application picture in the display screen.
Optionally, the specific example in this embodiment may refer to the example described in embodiment 1 above, and this embodiment is not described again here.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. An application picture adjusting method in wearable equipment is characterized by comprising the following steps:
acquiring the width and height of a display screen of the wearable device;
adjusting the display state of an application picture according to the width and/or height of the display screen;
displaying the adjusted application picture in the display screen;
wherein adjusting the display state of the application screen according to the width and/or height of the display screen comprises:
designing a canvas with a bitmap as a rear end;
searching a WebView control;
passing the canvas to the WebView control;
generating an image view imageView control with the same size as the display screen;
zooming out and displaying the bitmap on the imageView control to adjust the display state of an application picture;
displaying the application screen after the adjustment in the display screen includes:
and projecting the imageView control to the display screen to display the application picture.
2. The method of claim 1, wherein adjusting the display state of the application screen according to the width and/or height of the display screen comprises:
designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen;
adding a sliding control supporting sliding into the root node of the window;
and adjusting the display state of the application picture through the sliding control.
3. The method of claim 2, wherein displaying the application screen after the adjustment in the display screen comprises:
when the sliding control is a transverse sliding bar arranged on the right side of the display screen, displaying the application picture in a left-right sliding mode through a received transverse touch instruction; and/or the presence of a gas in the gas,
and when the sliding control is a longitudinal sliding bar arranged on the right side of the display screen, displaying the application picture in a vertical sliding mode through the received longitudinal touch instruction.
4. The method of claim 1, wherein displaying the bitmap minification on the imageView control comprises:
determining a scaling according to the size of the imageView control and the size of the WebView;
and zooming out and displaying the bitmap on the imageView control according to the zooming scale.
5. The method of claim 4, wherein after projecting the imageView control onto the display screen to display the application screen, the method further comprises:
receiving touch operation through the display screen;
acquiring a position coordinate of the touch operation;
amplifying the position coordinate according to the scaling to obtain an event coordinate;
transmitting the event coordinates to the WebView control;
and responding to the touch operation through the WebView control.
6. A wearable device, the wearable device comprising: a processor, a memory, and a communication bus, wherein,
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the application picture adjusting program stored in the memory so as to realize the following steps:
acquiring the width and height of a display screen of the wearable device;
adjusting the display state of an application picture according to the width and/or height of the display screen;
displaying the adjusted application picture in the display screen;
wherein the processor is further configured to execute an application screen adjustment program to implement the steps of:
designing a canvas with a bitmap as a rear end;
searching a WebView control;
passing the canvas to the WebView control;
generating an image view imageView control with the same size as the display screen;
zooming out and displaying the bitmap on the imageView control to adjust the display state of an application picture;
and projecting the imageView control to the display screen to display the application picture.
7. The wearable device of claim 6, wherein the processor is further configured to execute an application screen adjustment program to perform the steps of:
designing a canvas for the window of the application picture, wherein the size of the canvas is larger than that of the display screen;
adding a sliding control supporting sliding into the root node of the window;
and adjusting the display state of the application picture through the sliding control.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of applying the screen adjustment method in the wearable device according to any one of claims 1 to 5.
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 CN109901904A (en) 2019-06-18
CN109901904B true 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)

Families Citing this family (2)

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

Citations (3)

* 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
CN104238863A (en) * 2014-08-29 2014-12-24 广州视睿电子科技有限公司 Android-based enclosing zooming method and system
CN109064529A (en) * 2018-07-30 2018-12-21 北京酷我科技有限公司 A kind of animation algorithms of button dynamic flashing

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8799769B2 (en) * 2011-02-08 2014-08-05 Ebay Inc. Application above-the-fold rendering measurements
CN104503655B (en) * 2014-11-28 2017-12-08 晨星半导体股份有限公司 application program interface display control method and device
CN104732486B (en) * 2015-03-23 2017-10-03 海信集团有限公司 The display methods and device of a kind of picture
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
CN108089791B (en) * 2017-12-29 2021-08-10 努比亚技术有限公司 Screen resolution adjusting 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
CN108319487A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 Image display method, mobile terminal and computer readable storage medium
CN108322569B (en) * 2018-02-24 2019-12-31 珠海格力电器股份有限公司 Folding screen display method and folding mobile terminal
CN109068084A (en) * 2018-08-31 2018-12-21 努比亚技术有限公司 Video calling picture display process, mobile terminal and computer readable storage medium

Patent Citations (3)

* 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
CN104238863A (en) * 2014-08-29 2014-12-24 广州视睿电子科技有限公司 Android-based enclosing zooming method and system
CN109064529A (en) * 2018-07-30 2018-12-21 北京酷我科技有限公司 A kind of animation algorithms of button dynamic flashing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于Android智能终端的移动视频监控系统研究";杨飞 等;《计算机技术与发展》;20130210;第23卷(第2期);第195-198页 *

Also Published As

Publication number Publication date
CN109901904A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN107659416B (en) Conference record sharing method and device, conference terminal and storage medium
US10671357B2 (en) Preview changes to mobile applications at different display resolutions
CN108845861B (en) Method and device for realizing virtual camera
CN107277391B (en) Image conversion network processing method, server, computing device and storage medium
EP2905945B1 (en) Inter-terminal image sharing method, terminal device and communication system
US9996959B2 (en) Systems and methods to display rendered images
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
US20170171638A1 (en) Method and Terminal for Video Play
CN103336814B (en) Webpage screenshot processing method and device
CN109783757B (en) Method, device and system for rendering webpage, storage medium and electronic device
CN109901904B (en) Application picture adjusting method in wearable device and wearable device
EP3822758A1 (en) Method and apparatus for setting background of ui control
CN106843794B (en) Split screen display method and system based on android
US10795633B2 (en) Desktop sharing method and mobile terminal
CN109271083B (en) Data processing method and device, computing equipment and storage medium
JP5303534B2 (en) Appearance information processing apparatus and method
CN113426112A (en) Game picture display method and device, storage medium and electronic equipment
CN108647069B (en) Interface display method and device, storage medium and electronic device
CN103561284A (en) Transmission method and device for image processing
CN108023949A (en) dial-up networking method, system, intelligent terminal and server
CN114578898A (en) Display method, electronic device and readable storage medium
CN104735130B (en) A kind of method and apparatus that multimedia file is downloaded
CN114253449A (en) Screen capturing method, device, equipment and medium
CN112463089A (en) Cross-terminal picture synchronous zooming method and device, electronic medium and storage medium
CN107145319B (en) Data sharing method, device and system

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