CN111991801A - Display method and device and electronic equipment - Google Patents
Display method and device and electronic equipment Download PDFInfo
- Publication number
- CN111991801A CN111991801A CN202010777793.3A CN202010777793A CN111991801A CN 111991801 A CN111991801 A CN 111991801A CN 202010777793 A CN202010777793 A CN 202010777793A CN 111991801 A CN111991801 A CN 111991801A
- Authority
- CN
- China
- Prior art keywords
- interface
- distance
- side frame
- target virtual
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000010586 diagram Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000004044 response Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/214—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
- A63F13/2145—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/22—Setup operations, e.g. calibration, key configuration or button assignment
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a display method, a display device and electronic equipment, belongs to the technical field of communication, and can solve the problem that user operation is influenced when the electronic equipment is connected with external electronic equipment. The method comprises the following steps: under the condition that a first interface of the external electronic equipment is electrically connected with a second interface of the electronic equipment, acquiring a first parameter, wherein the first parameter comprises a first distance; under the condition that the electronic equipment displays the first display interface in a full screen mode, determining a second parameter according to the first parameter; adjusting the display position of the target virtual key in the first display interface according to the second parameter; the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located. The method and the device are applied to a scene that a user operates the electronic equipment externally connected with other electronic equipment.
Description
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a display method and device and electronic equipment.
Background
With the continuous improvement of the performance of the electronic equipment, users can use the electronic equipment to perform rich game experience.
In the related art, electronic devices (e.g., mobile phones, tablets, etc.) have a landscape screen function, and most games are displayed in a landscape screen manner, and a certain number of virtual keys are set in a game interface for a user to operate during game playing. Under the common condition, the commonly used virtual keys conform to the human engineering, the operation of a user is facilitated, meanwhile, the fatigue of the hands of the user can be reduced, and the user can not feel uncomfortable even playing games for a long time.
However, when the electronic device is connected to a peripheral device (e.g., a charger, an earphone) by wire, the grip of the user using the virtual keys is often affected, and in this case, not only the game operation of the user is affected, but also the hand fatigue of the user is caused for a long time.
Disclosure of Invention
The embodiment of the application aims to provide a display method, a display device and electronic equipment, and can solve the problem that user operation is influenced when the electronic equipment is connected with external electronic equipment.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a display method, where the method includes: under the condition that a first interface of the external electronic equipment is electrically connected with a second interface of the electronic equipment, acquiring a first parameter, wherein the first parameter comprises a first distance; under the condition that the electronic equipment displays the first display interface in a full screen mode, determining a second parameter according to the first parameter; adjusting the display position of the target virtual key in the first display interface according to the second parameter; the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
In a second aspect, an embodiment of the present application further provides a display device, including: the device comprises an acquisition module, a determination module and an adjustment module; the acquisition module is used for acquiring a first parameter under the condition that a first interface of the external electronic equipment is electrically connected with a second interface of the electronic equipment, wherein the first parameter comprises a first distance; the determining module is used for determining a second parameter according to the first parameter acquired by the acquiring module under the condition that the electronic equipment displays the first display interface in a full screen mode; the adjusting module is used for adjusting the display position of the target virtual key in the first display interface according to the second parameter determined by the determining module; the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the display method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment of the application, under the condition that a first interface of an external electronic device is electrically connected to a second interface of the electronic device, by obtaining a first parameter including a distance between an outermost frame of the first interface, which is far away from the second interface, and a first side frame of the electronic device, and determining a second parameter including a moving direction and a moving distance of a target virtual key according to the first parameter, and then adjusting a display position of the target virtual key in a first display interface according to the second parameter, under the condition that the electronic device is externally connected to another electronic device, by adjusting the display position of the target virtual key, a response of a change of a user holding gesture caused by the external electronic device to the user is reduced.
Drawings
Fig. 1 is a schematic flow chart of a display method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface applied by a display method according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an interface applied by a display method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a display device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The display method provided by the embodiment of the application can be applied to a scene that a user operates the electronic equipment externally connected with other electronic equipment.
For example, in a scenario where a user operates an electronic device externally connected to another electronic device, when the electronic device is used for playing a game under a landscape display condition, in order to not disturb others or when the electronic device has a low power, some other electronic devices, such as a wired headset, a charging cable, etc., are generally externally connected to the electronic device, and these externally connected electronic devices basically change the hand holding posture of the user, thereby affecting the normal touch of virtual keys on the screen by the user to play the game. In the related art, when the electronic device is externally connected to another electronic device, the user usually adjusts the interface position between the external device and the electronic device to a side with less interference to the holding posture of the user or by turning over the screen, however, the above method still has a large influence on the holding posture of the user, and the long-time use of the electronic device in such a holding posture may cause fatigue of the user's hand and damage to the user's health.
In view of this problem, in the technical solution provided in this embodiment of the application, when an electronic device in use by a user is externally connected to another electronic device, a moving distance and a moving direction of a virtual key displayed on a screen of the electronic device are determined by obtaining a distance that the external electronic device is connected to the electronic device and causes an outward expansion of an external shape of the electronic device and position information of a connection socket between the external device and the electronic device, and a display position of the virtual key is adjusted according to the moving distance and the moving direction, so that in a case where the electronic device is externally connected to another electronic device, the electronic device can reduce a response to the user due to a change of a user holding gesture caused by the external electronic device by adjusting the display position of a target virtual key.
The display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, a display method provided in an embodiment of the present application may include the following steps 201 to 203:
Wherein the first distance is: the first interface is far away from the outermost side frame of the second interface and the distance between the outermost side frame and the first side frame of the electronic equipment, and the first side frame is the side frame where the second interface is located.
The external electronic device may be an external electronic device such as an earphone, a charger, a mouse, a keyboard, or the like. The first interface is an interface for connecting the external device and the electronic device, and includes: a Universal Serial Bus (USB) interface, a Type-C interface, or a 3.5mm earphone interface, and correspondingly, the second interface is an interface physically connected to the first interface on the electronic device. The first interface may be in wired connection with the external electronic device, for example, a wired connection between an earphone and an earphone interface; the wireless connection may also be a wireless connection, for example, a wireless mouse is wirelessly connected to a signal transceiver connected to the second interface of the electronic device (the signal transceiver is plugged into the second interface of the electronic device).
Illustratively, the first interface is a male port, the second interface is a female port, and the first interface and the second interface are electrically connected, which can be understood as that the first interface is inserted into the second interface.
For example, as shown in fig. 2, which is a schematic diagram of an external charger for an electronic device, when the external charger for an electronic device performs charging, a distance from an outermost side of the interface 21 of the charger to (i.e., the first interface) an interface (i.e., the second interface) of the electronic device is L1 (i.e., the first distance).
For example, the first distance may be manually measured by a user and then input into the electronic device, and the electronic device stores the first distance in a database or a configuration file of the electronic device and provides the first distance to an application program in the form of an Application Programming Interface (API). When the application program is displayed in a full screen mode, if the fact that the electronic equipment is externally connected with other electronic equipment is detected, the information can be called through the interface.
Illustratively, when the electronic device is connected with the external electronic device, the device information of the external electronic device is recorded, after the user measures and inputs the first distance, the electronic device stores the device information and the first distance in an associated manner, when the external device is connected with the electronic device again, the electronic device can automatically obtain the first distance of the external device through the device information of the external device, and the user does not need to repeatedly measure and input the first distance.
The second parameter includes a moving direction and a moving distance of the target virtual key.
For example, the first display interface may be an interface displayed in a full screen when the electronic device is in a landscape mode, for example, a game interface displayed in a full screen when the electronic device is in a landscape mode. The target virtual key is a key displayed on the first display interface, for example, a key for controlling task movement and releasing skills in a game interface.
For example, in order to reduce the influence of the external electronic device on the holding posture of the user, the moving distance is less than or equal to the first distance.
For example, as shown in fig. 2, an interface of the game (i.e., the first display interface) is displayed on a full screen of the electronic device. The game interface comprises 5 virtual keys with numbers 1-5. When the electronic device is externally connected with the charger, the interface 21 of the charger is within the holding range of the right hand of the user, which affects the user to operate the virtual keys 2 to 5 (i.e. the target virtual keys). Therefore, the electronic device can determine the moving direction and the moving distance of the 4 virtual keys according to the L1.
For example, after the electronic device determines the moving direction and the moving distance of the target virtual key according to the first parameter, the electronic device adjusts the display position of the target virtual key according to the moving direction and the moving distance.
For example, as shown in fig. 2, after acquiring the distance L1, the electronic device moves the 4 virtual keys in a direction approaching the interface 21 by a distance L.
Therefore, under the condition that the first interface of the external electronic equipment is electrically connected with the second interface of the electronic equipment, the first parameter comprising the distance between the outermost frame of the first interface far away from the second interface and the first side frame of the electronic equipment is obtained, the second parameter comprising the moving direction and the moving distance of the target virtual key is determined according to the first parameter, and then the display position of the target virtual key in the first display interface is adjusted according to the second parameter, so that under the condition that the electronic equipment is externally connected with other electronic equipment, the response of the change of the holding gesture of the user caused by the external electronic equipment to the user is reduced by adjusting the display position of the target virtual key.
Optionally, in this embodiment of the application, the electronic device adjusts the target virtual key to reduce a response of the external electronic device to a holding gesture of the user, and in general, a moving distance of the target virtual key is limited by a distance from the target virtual key to an interface boundary, and when the distance is greater than or equal to the first distance, the electronic device may move the target virtual control according to the first distance.
Illustratively, the step 202 may include the following steps 202 a:
in step 202a, when the second distance is greater than or equal to the first distance, the display device takes the first direction as a moving direction, and determines a moving distance according to the first distance.
Wherein the second distance is: and the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface, and the first direction is the direction in which the target virtual key is close to the first interface boundary.
For example, when the distance from the target virtual key to the first display interface boundary is greater than or equal to the first distance, the electronic device may directly adjust the display position of the target virtual key according to the moving direction and the moving distance.
For example, as shown in FIG. 2, the distance from the 4 virtual keys (virtual keys 2 to 5) to the interface boundary is L2, and when L2 ≧ L1, the electronic device can move the 4 virtual keys by L distance in the direction approaching the interface 21. L is less than or equal to L2.
Therefore, when the second distance is smaller than or equal to the first distance, the electronic device may adjust the display position of the target virtual key according to the direction of the target virtual key approaching the second interface and the distance smaller than or equal to the second distance.
Optionally, in this embodiment of the application, when the distance from the target virtual key to the interface boundary close to the first interface is smaller than the first distance, the electronic device adjusts the display position of the target virtual key according to the method in step 202a, and the influence of the external electronic device on the holding posture of the user cannot be counteracted, and at this time, the electronic device may adjust the display position of the target virtual key through other adjustment manners.
Exemplarily, the first parameter further includes: position information of the second interface on the first side frame.
Further optionally, in this embodiment of the application, the position information includes a third distance, where the third distance is a distance between the second interface and the second side frame, and the moving distance is smaller than or equal to the third distance.
Illustratively, the step 202 may further include the following step 202 b:
step 202b, if the second distance is smaller than the first distance, and if it is determined that the second interface is close to the second side frame of the electronic device according to the position information, the display device uses the second direction as the moving direction of the target virtual control, and determines the moving distance of the target virtual control according to the position information.
Wherein the second distance is: the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface; the second side frame is the side frame closest to the second interface on the electronic equipment; the second direction is a direction in which the target virtual key is far away from the second side frame.
For example, when the first distance is greater than the distance from the target virtual control to the boundary near the first interface, which indicates that the external electronic device has a large influence on the holding posture of the user, the display position of the target virtual control is adjusted according to the first direction, and the influence of the external electronic device on the holding posture of the user in the first direction cannot be offset, and at this time, the display position of the target virtual control may be adjusted by the electronic device in the second direction.
For example, when the electronic device adjusts the display position of the target virtual control in the second direction, the electronic device needs to refer to the second distance. If the position information indicates that the second interface is close to a frame of the electronic device on a side far away from the target virtual control, the electronic device may adjust a display position of the target virtual control according to a direction far away from the second interface; if the position information indicates that the second interface is close to the frame of the electronic device close to one side of the target virtual key, the electronic device can remind the user to turn over the screen in a pop-up window mode, so that the position of the second interface is far away from the holding position of the user.
For example, referring to fig. 2, as shown in fig. 3, which is a schematic diagram of an external earphone of an electronic device, since a distance L3 (i.e., the third distance) from an outermost side of an earphone interface to the electronic device is much greater than a distance L2 from the 4 virtual keys to a side close to the earphone interface, and the earphone interface is closer to a top right of a holding position of a user, the electronic device may move the 4 virtual keys in a direction away from the earphone interface. At this point, the user only needs to move the right hand a small distance down.
Therefore, when the external electronic device is large in size or the outermost side of the interface of the external electronic device is far away from the electronic device, the electronic device can move the target virtual key in the direction far away from the interface of the external electronic device.
Optionally, in this embodiment of the application, after the user pulls out the external electronic device, the external electronic device does not have any influence on the holding posture of the user any more, and the electronic device may restore the display position of the target virtual control to the initial position in order to facilitate the user to hold the electronic device.
For example, after step 203, the display method provided in the embodiment of the present application may further include the following step 204:
and 204, under the condition that the first interface of the external electronic equipment is not connected with the second interface of the electronic equipment, adjusting the display position of the target virtual key to the initial display position of the target virtual key by the display device.
For example, the first interface and the second interface are not connected, and it is understood that the first interface is disconnected from the second interface, that is, the first interface is pulled out from the second interface.
Illustratively, after the external electronic device is disconnected from the electronic device, a message event of the electronic device is triggered, and after the electronic device acquires the message event, the display position of the target virtual key is adjusted to an initial display position of the target virtual key, where the initial display position is a display position of the target virtual key in a first display interface before the first interface is inserted into a second interface.
Therefore, when the external electronic equipment is disconnected from the electronic equipment, the electronic equipment can restore the display position of the target virtual key to the initial state, so that the user can operate the electronic equipment in the most proper holding posture.
According to the display method provided by the embodiment of the application, under the condition that a first interface externally connected with the electronic equipment is electrically connected with a second interface of the electronic equipment, a first parameter including a first distance between an outermost side frame of the first interface far away from the second interface and a first side frame of the electronic equipment is obtained, and under the condition that the distance between a target virtual key and a first interface boundary of a first display interface is larger than or equal to the first distance, the direction of the target virtual key close to the first interface boundary is taken as the moving direction of the target virtual key, and the moving distance is determined according to the first distance; and under the condition that the distance between the target virtual key and the first interface boundary of the first display interface is greater than the first distance, if the second interface is close to the second side frame of the electronic equipment, taking the direction of the target virtual key far away from the second side frame as the moving direction of the target virtual key, and determining the moving distance according to the position information of the second interface. And then, according to the second parameter, adjusting the display position of the target virtual key in the first display interface, so that under the condition that the electronic equipment is externally connected with other electronic equipment, the response of the change of the holding gesture of the user to the user caused by the external electronic equipment is reduced by adjusting the display position of the target virtual key.
In the display method provided in the embodiment of the present application, the execution main body may be a display device, or a control module for executing the display method in the display device. In the embodiment of the present application, a display device executing a display method is taken as an example, and the display device provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The display method is exemplified by combining with a drawing in the embodiment of the present application. In specific implementation, the display methods shown in the above method drawings may also be implemented by combining any other drawings that may be combined, which are illustrated in the above embodiments, and are not described herein again.
Fig. 4 is a schematic structural diagram of a display device according to an embodiment of the present disclosure, and as shown in fig. 4, the display device 600 includes: an obtaining module 601, a determining module 602, and an adjusting module 603, wherein:
the obtaining module 601 is configured to obtain a first parameter when a first interface of an external electronic device is electrically connected to a second interface of the electronic device, where the first parameter includes a first distance; the determining module 602 is configured to determine a second parameter according to the first parameter acquired by the acquiring module 601 under the condition that the electronic device displays the first display interface in a full screen; an adjusting module 603, configured to adjust a display position of the target virtual key in the first display interface according to the second parameter determined by the determining module 602; the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
Optionally, the determining module 602 is specifically configured to, when the second distance is greater than or equal to the first distance, take the first direction as a moving direction, and determine the moving distance according to the third distance; wherein the second distance is: and the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface, and the first direction is the direction in which the target virtual key is close to the first interface boundary.
Optionally, the first parameter further includes: position information of the second interface on the first side frame; the determining module 602 is specifically configured to, when the second distance is smaller than the first distance, if it is determined that the second interface is close to the second side frame of the electronic device according to the location information, use the second direction as the moving direction, and determine the moving distance according to the location information; wherein the second distance is: the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface; the second side frame is the side frame closest to the second interface on the electronic equipment; the second direction is the direction in which the target virtual key is far away from the second side frame.
Optionally, the position information includes a third distance, where the third distance is a distance between the second interface and the second side frame; the moving distance is less than or equal to the third distance.
Optionally, the adjusting module 603 is further configured to adjust the display position of the target virtual key to the initial display position of the target virtual key when the first interface of the external electronic device is not connected to the second interface of the electronic device.
The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
In the display device provided by the embodiment of the application, under the condition that a first interface externally connected with an electronic device is electrically connected with a second interface of the electronic device, a first parameter including a first distance between an outermost side frame of the first interface far away from the second interface and a first side frame of the electronic device is obtained, and under the condition that the distance between a target virtual key and a first interface boundary of a first display interface is greater than or equal to the first distance, a direction in which the target virtual key is close to the first interface boundary is taken as a moving direction of the target virtual key, and a moving distance is determined according to the first distance; and under the condition that the distance between the target virtual key and the first interface boundary of the first display interface is greater than the first distance, if the second interface is close to the second side frame of the electronic equipment, taking the direction of the target virtual key far away from the second side frame as the moving direction of the target virtual key, and determining the moving distance according to the position information of the second interface. And then, according to the second parameter, adjusting the display position of the target virtual key in the first display interface, so that under the condition that the electronic equipment is externally connected with other electronic equipment, the response of the change of the holding gesture of the user to the user caused by the external electronic equipment is reduced by adjusting the display position of the target virtual key.
Optionally, as shown in fig. 5, an electronic device M00 is further provided in this embodiment of the present application, and includes a processor M01, a memory M02, and a program or an instruction stored in the memory M02 and executable on the processor M01, where the program or the instruction when executed by the processor M01 implements the processes in the foregoing display method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to obtain a first parameter when a first interface of the external electronic device is electrically connected to a second interface of the electronic device, where the first parameter includes a first distance; the processor 110 is configured to determine a second parameter according to the first parameter acquired by the processor 110 under the condition that the electronic device displays the first display interface in a full screen; the display unit 106 is configured to adjust a display position of the target virtual key in the first display interface according to the second parameter determined by the determination module; the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
Therefore, under the condition that the first interface of the external electronic equipment is electrically connected with the second interface of the electronic equipment, the response of the change of the holding gesture of the user caused by the external electronic equipment to the user is reduced by obtaining the first parameter of the distance between the first side frame of the electronic equipment and the outermost side frame including the first interface far away from the second interface, and the first parameter of the distance between the first side frame of the electronic equipment and the outermost side frame including the first interface, determining the second parameter including the moving direction and the moving distance of the target virtual key according to the first parameter, and then adjusting the display position of the target virtual key in the first display interface according to the second parameter.
Optionally, the processor 110 is specifically configured to, when the second distance is greater than or equal to the first distance, take the first direction as a moving direction, and determine the moving distance according to the third distance; wherein the second distance is: and the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface, and the first direction is the direction in which the target virtual key is close to the first interface boundary.
Therefore, when the second distance is smaller than or equal to the first distance, the electronic device may adjust the display position of the target virtual key according to the direction of the target virtual key approaching the second interface and the distance smaller than or equal to the second distance.
Optionally, the first parameter further includes: position information of the second interface on the first side frame; the processor 110 is specifically configured to, when the second distance is smaller than the first distance, if it is determined that the second interface is close to the second side frame of the electronic device according to the position information, use the second direction as the moving direction, and determine the moving distance according to the position information; wherein the second distance is: the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface; the second side frame is the side frame closest to the second interface on the electronic equipment; the second direction is the direction in which the target virtual key is far away from the second side frame.
Therefore, when the external electronic device is large in size or the outermost side of the interface of the external electronic device is far away from the electronic device, the electronic device can move the target virtual key in the direction far away from the interface of the external electronic device.
Optionally, the display unit 106 is further configured to adjust the display position of the target virtual key to the initial display position of the target virtual key when the first interface of the external electronic device is not connected to the second interface of the electronic device.
Therefore, when the external electronic equipment is disconnected from the electronic equipment, the electronic equipment can restore the display position of the target virtual key to the initial state, so that the user can operate the electronic equipment in the most proper holding posture.
According to the electronic device provided by the embodiment of the application, under the condition that a first interface externally connected with the electronic device is electrically connected with a second interface of the electronic device, a first parameter including a first distance between an outermost side frame of the first interface far away from the second interface and a first side frame of the electronic device is obtained, and under the condition that the distance between a target virtual key and a first interface boundary of a first display interface is greater than or equal to the first distance, the direction of the target virtual key close to the first interface boundary is taken as the moving direction of the target virtual key, and the moving distance is determined according to the first distance; and under the condition that the distance between the target virtual key and the first interface boundary of the first display interface is greater than the first distance, if the second interface is close to the second side frame of the electronic equipment, taking the direction of the target virtual key far away from the second side frame as the moving direction of the target virtual key, and determining the moving distance according to the position information of the second interface. And then, according to the second parameter, adjusting the display position of the target virtual key in the first display interface, so that under the condition that the electronic equipment is externally connected with other electronic equipment, the response of the change of the holding gesture of the user to the user caused by the external electronic equipment is reduced by adjusting the display position of the target virtual key.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method of displaying, the method comprising:
under the condition that a first interface of an external electronic device is electrically connected with a second interface of the electronic device, acquiring a first parameter, wherein the first parameter comprises a first distance;
under the condition that the electronic equipment displays a first display interface in a full screen mode, determining a second parameter according to the first parameter;
adjusting the display position of the target virtual key in the first display interface according to the second parameter;
the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
2. The method of claim 1, wherein determining a second parameter based on the first parameter comprises:
taking a first direction as the moving direction and determining the moving distance according to the first distance when the second distance is greater than or equal to the first distance;
wherein the second distance is: and the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface, and the first direction is the direction in which the target virtual key is close to the first interface boundary.
3. The method of claim 1, wherein the first parameter further comprises: position information of the second interface on the first side frame;
the determining a second parameter according to the first parameter includes:
under the condition that the second distance is smaller than the first distance, if the second interface is determined to be close to a second side frame of the electronic equipment according to the position information, taking the second direction as the moving direction, and determining the moving distance according to the position information;
wherein the second distance is: the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface; the second side frame is the side frame closest to the second interface on the electronic equipment; the second direction is a direction in which the target virtual key is far away from the second side frame.
4. The method of claim 3, wherein the location information comprises a third distance, the third distance being a distance between the second interface and the second side frame; the movement distance is less than or equal to the third distance.
5. The method according to claim 1, wherein after the adjusting the display position of the target virtual key in the first display interface according to the second parameter, the method further comprises:
and under the condition that the first interface of the external electronic equipment is not connected with the second interface of the electronic equipment, adjusting the display position of the target virtual key to the initial display position of the target virtual key.
6. A display device, characterized in that the device comprises: the device comprises an acquisition module, a determination module and an adjustment module;
the acquisition module is used for acquiring a first parameter under the condition that a first interface of the external electronic equipment is electrically connected with a second interface of the electronic equipment, wherein the first parameter comprises a first distance;
the determining module is used for determining a second parameter according to the first parameter acquired by the acquiring module under the condition that the electronic equipment displays a first display interface in a full screen mode;
the adjusting module is used for adjusting the display position of the target virtual key in the first display interface according to the second parameter determined by the determining module;
the second parameter comprises the moving direction and the moving distance of the target virtual key; the first distance is: the distance between the outermost side frame of the first interface, which is far away from the second interface, and the first side frame of the electronic equipment; the first side frame is the side frame where the second interface is located.
7. The apparatus of claim 6,
the determining module is specifically configured to, when the second distance is greater than or equal to the first distance, take the first direction as the moving direction, and determine the moving distance according to the first distance;
wherein the second distance is: and the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface, and the first direction is the direction in which the target virtual key is close to the first interface boundary.
8. The apparatus of claim 6, wherein the first parameter further comprises: position information of the second interface on the first side frame;
the determining module is specifically configured to, when the second distance is smaller than the first distance, if it is determined that the second interface is close to the second side frame of the electronic device according to the location information, use the second direction as the moving direction, and determine the moving distance according to the location information;
wherein the second distance is: the distance between the target virtual key and a first interface boundary of the first display interface is the boundary, close to the second interface, in the first display interface; the second side frame is the side frame closest to the second interface on the electronic equipment; the second direction is a direction in which the target virtual key is far away from the second side frame.
9. The apparatus of claim 8, wherein the location information comprises a third distance, the third distance being a distance between the second interface and the second side frame; the movement distance is less than or equal to the third distance.
10. The apparatus of claim 6,
the adjusting module is further configured to adjust the display position of the target virtual key to an initial display position of the target virtual key when the first interface of the external electronic device is not connected with the second interface of the electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010777793.3A CN111991801A (en) | 2020-08-05 | 2020-08-05 | Display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010777793.3A CN111991801A (en) | 2020-08-05 | 2020-08-05 | Display method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111991801A true CN111991801A (en) | 2020-11-27 |
Family
ID=73463483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010777793.3A Pending CN111991801A (en) | 2020-08-05 | 2020-08-05 | Display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111991801A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113426105A (en) * | 2021-05-20 | 2021-09-24 | 北京中清龙图网络技术有限公司 | Interface display method, device, equipment and storage medium |
CN114625462A (en) * | 2022-03-04 | 2022-06-14 | 维沃移动通信有限公司 | Virtual key management method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105373334A (en) * | 2015-11-25 | 2016-03-02 | 小米科技有限责任公司 | Interactive screen control method and device |
CN109976628A (en) * | 2019-02-27 | 2019-07-05 | Oppo广东移动通信有限公司 | Adjust method, electronic equipment and the storage medium of virtual key display position |
CN110874147A (en) * | 2019-10-23 | 2020-03-10 | 维沃移动通信有限公司 | Display method and electronic equipment |
WO2020135042A1 (en) * | 2018-12-27 | 2020-07-02 | 维沃移动通信有限公司 | Virtual key display method and terminal |
-
2020
- 2020-08-05 CN CN202010777793.3A patent/CN111991801A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105373334A (en) * | 2015-11-25 | 2016-03-02 | 小米科技有限责任公司 | Interactive screen control method and device |
WO2020135042A1 (en) * | 2018-12-27 | 2020-07-02 | 维沃移动通信有限公司 | Virtual key display method and terminal |
CN109976628A (en) * | 2019-02-27 | 2019-07-05 | Oppo广东移动通信有限公司 | Adjust method, electronic equipment and the storage medium of virtual key display position |
CN110874147A (en) * | 2019-10-23 | 2020-03-10 | 维沃移动通信有限公司 | Display method and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113426105A (en) * | 2021-05-20 | 2021-09-24 | 北京中清龙图网络技术有限公司 | Interface display method, device, equipment and storage medium |
CN114625462A (en) * | 2022-03-04 | 2022-06-14 | 维沃移动通信有限公司 | Virtual key management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4047940A1 (en) | Screencast control method and electronic device | |
CN109002243B (en) | Image parameter adjusting method and terminal equipment | |
CN107728886B (en) | A kind of one-handed performance method and apparatus | |
CN110174993B (en) | Display control method, terminal equipment and computer readable storage medium | |
CN108135033B (en) | Bluetooth connection method and mobile terminal | |
CN110531915B (en) | Screen operation method and terminal equipment | |
CN108900695B (en) | Display processing method, terminal equipment and computer readable storage medium | |
CN109407948B (en) | Interface display method and mobile terminal | |
CN108469940B (en) | Screenshot method and terminal | |
US20210181935A1 (en) | Processing method of display interface and mobile terminal | |
CN111050109B (en) | Electronic equipment control method and electronic equipment | |
CN108132749B (en) | Image editing method and mobile terminal | |
CN111562896A (en) | Screen projection method and electronic equipment | |
CN108833791B (en) | Shooting method and device | |
US11669237B2 (en) | Operation method and terminal device | |
CN110865764A (en) | Interface application display method and device | |
CN110866465A (en) | Control method of electronic equipment and electronic equipment | |
CN107729100B (en) | Interface display control method and mobile terminal | |
CN111991801A (en) | Display method and device and electronic equipment | |
CN110221741B (en) | Icon management method and terminal equipment | |
CN107967086B (en) | Icon arrangement method and device for mobile terminal and mobile terminal | |
CN110740265B (en) | Image processing method and terminal equipment | |
CN109922256B (en) | Shooting method and terminal equipment | |
CN109739430B (en) | Display method and mobile terminal | |
CN110213437B (en) | Editing method and mobile terminal |
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 |