CN110020299B - Display position adjusting method and device - Google Patents

Display position adjusting method and device Download PDF

Info

Publication number
CN110020299B
CN110020299B CN201711077849.9A CN201711077849A CN110020299B CN 110020299 B CN110020299 B CN 110020299B CN 201711077849 A CN201711077849 A CN 201711077849A CN 110020299 B CN110020299 B CN 110020299B
Authority
CN
China
Prior art keywords
content
screen
adjusting
telescopic
scaling
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
CN201711077849.9A
Other languages
Chinese (zh)
Other versions
CN110020299A (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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201711077849.9A priority Critical patent/CN110020299B/en
Publication of CN110020299A publication Critical patent/CN110020299A/en
Application granted granted Critical
Publication of CN110020299B publication Critical patent/CN110020299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method and a device for adjusting a display position, which relate to the technical field of computers, wherein a specific implementation mode of the method comprises the following steps: the upper layer of the appointed content on the screen is used for adjusting the display area of the additional content in a telescopic way; acquiring telescopic parameters of the telescopic adjustment; and adjusting the display position of the specified content on the screen according to the expansion parameters. This embodiment keeps the content corresponding to the center point of the designated content on the screen unchanged before and after the above-described scaling adjustment. Because the important elements of the designated content are more likely to be distributed near the central position, the condition that the important elements of the designated content are shielded can be reduced through adjusting the display position of the designated content on the screen, convenience is brought to a user, and meanwhile, the efficiency of effective content output is improved.

Description

Display position adjusting method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a display position.
Background
Generally, a telescopic display area may be provided on an interface for displaying a map or some graphic representation, and the display area may be extended and retracted. The retractable display area may be used to display some additional content, and when the display area is in the retracted state, no additional content or less additional content is displayed, and when the display area is in the extended state, more additional content may be displayed. When a user stretches the display area as required, the upper stretched display area may shield the content (e.g., a map or a graphic) of the lower layer, or even shield important elements of the content of the lower layer, which brings inconvenience to the user and reduces the efficiency of effective content output.
Disclosure of Invention
In order to solve the technical problem, the application provides a method and a device for adjusting a display position.
According to a first aspect of the embodiments of the present application, there is provided a method for adjusting a display position, including:
the upper layer of the appointed content on the screen is used for adjusting the display area of the additional content in a telescopic way;
acquiring telescopic parameters of the telescopic adjustment;
and adjusting the display position of the specified content on the screen according to the expansion parameters.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for adjusting a display position, including:
a scaling unit configured to scale a display area of additional content in an upper layer of a designated content on a screen;
an acquisition unit configured to acquire the scaling parameters of the scaling adjustment;
an adjusting unit configured to adjust a display position of the designated content on a screen according to the scaling parameter.
According to a third aspect of embodiments herein, there is provided a computer storage medium having program instructions stored therein, the instructions comprising:
the upper layer of the appointed content on the screen is used for adjusting the display area of the additional content in a telescopic way;
acquiring telescopic parameters of the telescopic adjustment;
and adjusting the display position of the specified content on the screen according to the expansion parameters.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the method and the device for adjusting the display position, the display area of the additional content is adjusted in a telescopic mode through the upper layer of the appointed content on the screen, the telescopic parameter of the telescopic adjustment is obtained, and the display position of the appointed content on the screen is adjusted according to the telescopic parameter. Therefore, the content corresponding to the center point of the designated content on the screen is kept unchanged before and after the telescopic adjustment. Because the important elements of the designated content are more likely to be distributed near the central position, the occurrence of the situation that the important elements of the designated content are shielded can be reduced through adjusting the display position of the designated content on the screen, convenience is brought to a user, and meanwhile, the efficiency of effective content output is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart illustrating a method for adjusting a display position according to an exemplary embodiment of the present application;
FIG. 2 is a diagram illustrating a display position adjustment scenario according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of another display position adjustment scenario illustrated in the present application according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating another method of adjusting a display position according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of an apparatus for adjusting a display position according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As shown in fig. 1, fig. 1 is a flowchart illustrating a method for adjusting a display position according to an exemplary embodiment, which may be applied to a terminal. In the present embodiment, for ease of understanding, the description is given in conjunction with a terminal device having a display screen. Those skilled in the art will appreciate that the terminal device may include, but is not limited to, a mobile terminal device such as a smart phone, a smart wearable device, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and the like. The method comprises the following steps:
in step 101, an upper layer of the designated content on the screen resizes the display area of the additional content.
In this embodiment, the designated content may include a map, for example, the designated content may include a map and one or more navigation paths, a departure place, a destination, a geographic location of the designated mobile terminal, and the like. The designated content can also comprise schematic diagrams, and it can be understood that the designated content can also comprise any other reasonable content, and the specific form and the specific content aspect of the designated content are not limited in the application.
In this embodiment, the designated content may include a large amount of content information, and it may not be possible to display all the information included in the designated content on the interface of the terminal at once. Therefore, information specifying a partial area of the content can be displayed on the interface of the terminal.
Generally, on an upper layer of a display interface of content such as a map or a schematic diagram, a display area having a telescopic function is sometimes provided, and the display area may be used to display some additional content. For example, for an application program calling a vehicle service, a map is displayed on the application interface, and the displayed map content includes map information of a trip route area. On the upper layer of the map, a display area with a telescopic function can be further provided, for example, the display area can be a control button, a card, a control, a picture, a drawer bar, and the like, and the components can be unfolded or folded, so that the display area can be changed in a telescopic way. When the display area is in the retracted state, only basic information of a target vehicle providing a service, such as a license plate number or a driver account number, may be displayed. When the display area is in the expanded state, detailed information of a target vehicle providing a service, such as a vehicle model, a vehicle color, a license plate number, a driver's contact, and the like, may be further displayed.
In step 102, the scaling parameters for the scaling adjustment are obtained.
In this embodiment, the expansion and contraction parameters for expansion and contraction adjustment may include an expansion and contraction direction and an expansion and contraction length of the display area of the additional content, where the expansion and contraction direction is a direction in which the display area of the additional content is expanded and contracted, and the expansion and contraction length is a length in which the display area of the additional content is expanded and contracted. As shown in fig. 2, a region 201 is a display region of the designated content, a region 202 is a display region of the additional content, and the display region of the additional content is on the upper layer of the designated content. The boundary 203 is a boundary of the display area of the additional content, and the user may trigger the zoom in and out of the display area 202 of the additional content by pulling the boundary 203. The direction in which the boundary 203 is pulled is a stretching direction, and the distance length in which the boundary 203 is pulled is a stretching length.
In step 103, the display position of the designated content on the screen is adjusted according to the above-mentioned scaling parameters.
In this embodiment, the display position of the designated content on the screen may be adjusted according to the above-mentioned scaling parameter, for example, if the scaling parameter includes a scaling direction and a scaling length of the display area of the additional content (for example, the scaling length may be in units of the number of pixels), the target direction may be determined according to the scaling direction first, and the target length may be determined according to the scaling length. Specifically, the expansion/contraction direction may be determined as the target direction, and one-half of the expansion/contraction length may be determined as the target length. Then, the display position of the designated content on the screen is adjusted in accordance with the target direction and the target length.
In the present embodiment, the display position of the specified content on the screen can be adjusted in the target direction and the target length as follows: first, the center position of the designated content on the screen is determined as a reference point, and then, the reference point is moved by a distance of a target length in the target direction.
As shown in fig. 3, an area 301 is a display area of the map, an area 302 is a display area of the additional content, and the display area of the additional content is on the upper layer of the map. The boundary 303 is a boundary of the display area of the additional content, and the user triggers the zoom-in adjustment of the display area 302 of the additional content by pulling the boundary 303. Before the above-described telescopic adjustment, the point 304 having geographic coordinates (a, b) is the center position of the map on the screen. After the above-mentioned scaling adjustment is performed, the target direction is determined and the target length is determined, the point 304 having the geographic coordinates (a, b) may be moved by the distance of the target length in the target direction.
For the embodiment, a specific application scenario may be that a user requests a vehicle service using an application program for calling the vehicle service, a map is displayed on an application interface, and the displayed map content includes map information of a travel route area. On the upper layer of the map, a display area with a telescopic function is arranged, and when the display area is in a retraction state, basic information of a vehicle driven by a driver, such as a license plate number or a driver account number, can be displayed. When the display area is in the unfolded state, detailed information of the vehicle driven by the driver, such as the vehicle model, the vehicle color, the license plate number, the driver's contact information, and the like, can be further displayed. The display area can be switched between a retracted state and an expanded state, and during switching, the central position of the map on the screen can be correspondingly moved along with the expansion and retraction of the display area, so that the geographic coordinate corresponding to the central position of the map on the screen is kept unchanged before and after switching.
The present embodiment is not limited to the above application scenario, and may be applied to other scenarios. In the method for adjusting a display position provided in the above embodiment of the present application, the display area of the additional content is adjusted by scaling the upper layer of the designated content on the screen, so as to obtain the scaling parameter of the scaling adjustment, and the display position of the designated content on the screen is adjusted according to the scaling parameter. Therefore, the content corresponding to the center point of the designated content on the screen is kept unchanged before and after the telescopic adjustment. Because the important elements of the designated content are more likely to be distributed near the center, the condition that the important elements of the designated content are shielded can be reduced through adjusting the display position of the designated content on the screen, convenience is brought to a user, and meanwhile, the efficiency of effective content output is improved.
Fig. 4 is a flowchart illustrating another display position adjustment method according to an exemplary embodiment, which details a process of adjusting a display position of a designated content on a screen according to a scaling parameter, and the method may be applied to a terminal. The method may comprise the steps of:
in step 401, an upper layer of the designated content on the screen resizes the display area of the additional content.
In step 402, the scaling direction and the scaling length of the display area of the additional content are acquired.
In this embodiment, the direction in which the display area of the additional content is adjusted to expand and contract is the expansion and contraction direction, and the length in which the display area of the additional content is adjusted to expand and contract is the expansion and contraction length.
In step 403, a target direction is determined according to the stretching direction.
In this embodiment, the expansion and contraction direction may be determined as the target direction.
In step 404, a target length is determined based on the telescopic length.
In this embodiment, one-half of the telescopic length may be determined as the target length.
In step 405, the display position of the designated content on the screen is adjusted according to the target direction and the target length.
In the present embodiment, the center position of the specified content on the screen may be first determined as the reference point, and then the display position of the reference point on the screen is moved by the distance of the target length in the target direction.
In step 406, if the designated element in the designated content is occluded, the designated content is zoomed by taking the above-mentioned reference point as a zoom center, so that the designated element is displayed on the screen.
In this embodiment, if the specified element in the specified content is occluded, the specified content may be further zoomed by taking the above-mentioned reference point as a zoom center. Specifically, first, a specific position of the occluded specified element in the specified content may be determined, and then, the target scaling is determined according to the position so that the occluded specified element can be displayed in the screen with the target scaling as small as possible. And finally, zooming the specified content according to the target zooming proportion by taking the reference point as a zooming center.
It should be noted that, for the same steps as in the embodiment of fig. 1, details are not repeated in the embodiment of fig. 4, and related contents may refer to the embodiment of fig. 1.
In the method for adjusting a display position provided in the above embodiment of the present application, a display area of additional content is adjusted by stretching an upper layer of specified content on a screen, a stretching direction and a stretching length of the display area of the additional content are obtained, a target direction is determined according to the stretching direction, a target length is determined according to the stretching length, and a display position of the specified content on the screen is adjusted according to the target direction and the target length. Therefore, the content corresponding to the center point of the designated content on the screen is kept unchanged before and after the telescopic adjustment. Therefore, through the adjustment of the display position of the designated content on the screen, the condition that important elements of the designated content are shielded is avoided, convenience is brought to a user, and meanwhile, the efficiency of effective content output is improved.
It should be noted that while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Corresponding to the foregoing embodiment of the method for adjusting a display position, the present application also provides an embodiment of an apparatus for adjusting a display position.
As shown in fig. 5, fig. 5 is a block diagram of an apparatus for adjusting a display position according to an exemplary embodiment of the present application, the apparatus including: stretching unit 501, acquiring unit 502 and adjusting unit 503.
Wherein the scaling unit 501 is configured to scale the display area of the additional content in an upper layer of the designated content on the screen.
In this embodiment, the designated content may include a map, for example, the designated content may include a map and one or more navigation paths, a departure place, a destination, a geographic location of the designated mobile terminal, and the like. The designated content can also comprise schematic diagrams, and it can be understood that the designated content can also comprise any other reasonable content, and the specific form and the specific content aspect of the designated content are not limited in the application.
In this embodiment, the designated content may include a large amount of content information, and it may not be possible to display all the information included in the designated content on the interface of the terminal at once. Therefore, the information of the partial area of the designated content can be displayed on the interface of the terminal, and the partial area corresponding to the information displayed on the interface of the terminal is the visible area of the designated content. The visible region is a region to be displayed, and a portion covered by the display region of the additional content does not belong to the visible region.
Generally, on an upper layer of a display interface of content such as a map or a schematic diagram, a display area having a telescopic function is sometimes provided, and the display area may be used to display some additional content. For example, for an application program calling a vehicle service, a map is displayed on the application interface, and the displayed map content includes map information of a trip route area. On the upper layer of the map, a display area with a telescopic function can be further provided, for example, the display area can be a control button, a card, a control, a picture, a drawer bar, and the like, and the components can be unfolded or folded, so that the display area can be changed in a telescopic way. When the display area is in the retracted state, only basic information of a target vehicle providing a service, such as a license plate number or a driver account number, may be displayed. When the display area is in the expanded state, detailed information of a target vehicle providing a service, such as a vehicle model, a vehicle color, a license plate number, a driver's contact, and the like, may be further displayed.
An obtaining unit 502 configured to obtain the scaling parameters of the scaling adjustment.
In this embodiment, the scaling parameters for scaling adjustment performed by the scaling unit 501 may include a scaling direction and a scaling length of the display area of the additional content, where the scaling direction is a direction for scaling adjustment of the display area of the additional content, and the scaling length is a length for scaling adjustment of the display area of the additional content. The expansion and contraction direction and the expansion and contraction length of the display area of the additional content can be acquired by the acquisition unit 502.
An adjusting unit 503 configured to adjust a display position of the specified content on the screen according to the scaling parameter.
In this embodiment, the adjusting unit 503 may adjust the display position of the designated content on the screen according to the above-mentioned scaling parameter, for example, if the scaling parameter includes a scaling direction and a scaling length of the display area of the additional content (for example, the scaling length may be in units of the number of pixels), the target direction may be determined first according to the scaling direction, and the target length may be determined according to the scaling length. Specifically, the expansion/contraction direction may be determined as the target direction, and one-half of the expansion/contraction length may be determined as the target length. Then, the display position of the designated content on the screen is adjusted in accordance with the target direction and the target length.
In the present embodiment, the display position of the specified content on the screen can be adjusted in the target direction and the target length as follows: first, the center position of the designated content on the screen is determined as a reference point, and then, the reference point is moved by a distance of a target length in the target direction.
The display position adjusting apparatus provided in the above embodiment of the present application, which adjusts the display area of the additional content by scaling the upper layer of the designated content on the screen, obtains the scaling parameter of the scaling adjustment, and adjusts the display position of the designated content on the screen according to the scaling parameter. Therefore, the content corresponding to the center point of the designated content on the screen is kept unchanged before and after the telescopic adjustment. Because the important elements of the designated content are more likely to be distributed near the central position, the condition that the important elements of the designated content are shielded can be reduced through adjusting the display position of the designated content on the screen, convenience is brought to a user, and meanwhile, the efficiency of effective content output is improved.
In some alternative embodiments, the expansion parameter includes an expansion direction and an expansion length of the display area of the additional content.
In further alternative embodiments, the adjusting unit may include: a first determining subunit, a second determining subunit and an adjusting subunit (not shown).
Wherein the first determining subunit is configured to determine the target direction according to the telescopic direction.
In this embodiment, the first determining subunit may determine the telescopic direction as the target direction.
And a second determining subunit configured to determine the target length according to the telescopic length.
In this embodiment, the second determining subunit may determine one-half of the above-described telescopic length as the target length.
And an adjusting subunit configured to adjust a display position of the specified content on the screen in accordance with the target direction and the target length.
In the present embodiment, the adjustment subunit may first determine the center position of the specified content on the screen as the reference point, and then move the display position of the reference point on the screen by the distance of the target length in the target direction.
In further alternative embodiments, the first determining subunit is configured to: and determining the stretching direction as a target direction.
In further alternative embodiments, the second determining subunit is configured to: and determining one half of the telescopic length as a target length.
In further alternative embodiments, the adjustment subunit is configured to: the center position of the specified content on the screen is determined as a reference point, and the display position of the reference point on the screen is moved by a target length in a target direction.
In further alternative embodiments, the apparatus may further comprise: a scaling unit (not shown).
And the zooming unit is configured to zoom the specified content by taking the reference point as a zooming center when the specified element in the specified content is shielded, so that the specified element is displayed on the screen.
In this embodiment, if the specified element in the specified content is occluded, the specified content may be further zoomed by taking the above-mentioned reference point as a zoom center. Specifically, first, a specific position of the occluded specified element in the specified content may be determined, and then, the target scaling is determined according to the position so that the occluded specified element can be displayed in the screen with the target scaling as small as possible. And finally, zooming the specified content according to the target zooming proportion by taking the reference point as a zooming center.
In other alternative embodiments, the specified content comprises a map.
It should be understood that the above-mentioned apparatus may be preset in the terminal device, and may also be loaded into the terminal device by downloading or the like. The corresponding units in the above-mentioned device can be matched with the unit in the terminal equipment to display the position adjustment scheme.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Embodiments of the present application may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, in which program code is embodied.
Accordingly, an embodiment of the present application further provides a computer storage medium, where program instructions are stored in the storage medium, and the instructions include:
the upper layer of the appointed content on the screen is used for adjusting the display area of the additional content in a telescopic way;
acquiring telescopic parameters of the telescopic adjustment;
and adjusting the display position of the specified content on the screen according to the expansion parameters.
The unit modules described in the embodiments of the present application may be implemented by software or hardware. The described unit modules may also be provided in a processor, and may be described as: a processor includes a scaling unit, an acquisition unit, and an adjustment unit. Here, the names of these unit modules do not constitute a limitation to the unit modules themselves in some cases, and for example, the acquiring unit may also be described as a "unit for acquiring the telescopic parameters of the above-described telescopic adjustment".
As another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiments; or it may be a computer-readable storage medium that exists separately and is not assembled into a terminal or server. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the display position adjustment method described in the present application.
Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (15)

1. A method for adjusting a display position, the method comprising:
the upper layer of the appointed content in the on-screen application program interface is used for adjusting the display area of the additional content in a telescopic manner;
acquiring telescopic parameters of the telescopic adjustment;
adjusting the display position of the specified content in the application program interface on the screen according to the telescopic parameters so as to keep the content corresponding to the central point of the visible area of the specified content in the application program interface on the screen unchanged before and after the telescopic adjustment;
wherein the specified content comprises a map or a graphic.
2. The method of claim 1, wherein the scaling parameters comprise a scaling direction and a scaling length of a display area of the additional content.
3. The method of claim 2, wherein the adjusting the display position of the designated content on the screen according to the scaling parameter comprises:
determining a target direction according to the stretching direction;
determining a target length according to the telescopic length;
and adjusting the display position of the designated content on the screen according to the target direction and the target length.
4. The method of claim 3, wherein determining a target direction from the scaling direction comprises:
and determining the expansion direction as the target direction.
5. The method of claim 3, wherein determining a target length from the telescoping length comprises:
determining one-half of the telescopic length as the target length.
6. The method of claim 3, wherein the adjusting the display position of the designated content on the screen according to the target direction and the target length comprises:
determining a central position of the designated content on the screen as a reference point;
and moving the display position of the reference point on the screen along the target direction by the target length.
7. The method of claim 6, further comprising:
if the designated element in the designated content is blocked, zooming the designated content by taking the reference point as a zooming center, and displaying the designated element on a screen.
8. An apparatus for adjusting a display position, the apparatus comprising:
a scaling unit configured to scale a display area of additional content in an upper layer of specified content in an on-screen application display interface; wherein the specified content comprises a map or a graphic;
an acquisition unit configured to acquire the scaling parameters of the scaling adjustment;
and the adjusting unit is configured to adjust the display position of the specified content in the application program display interface on the screen according to the scaling parameter, so that the content corresponding to the central point of the visible area of the specified content in the application program interface on the screen is kept unchanged before and after the scaling adjustment.
9. The apparatus of claim 8, wherein the scaling parameters comprise a scaling direction and a scaling length of a display area of the additional content.
10. The apparatus of claim 9, wherein the adjusting unit comprises:
a first determining subunit configured to determine a target direction according to the telescopic direction;
a second determining subunit configured to determine a target length from the telescopic length;
and the adjusting subunit is configured to adjust the display position of the specified content on the screen according to the target direction and the target length.
11. The apparatus of claim 10, wherein the first determining subunit is configured to:
and determining the expansion direction as the target direction.
12. The apparatus of claim 10, wherein the second determining subunit is configured to:
determining one-half of the telescopic length as the target length.
13. The apparatus of claim 10, wherein the adjusting subunit is configured to:
determining a central position of the designated content on the screen as a reference point;
and moving the display position of the reference point on the screen along the target direction by the target length.
14. The apparatus of claim 13, further comprising:
and the zooming unit is configured to zoom the specified content by taking the reference point as a zooming center when a specified element in the specified content is shielded, so that the specified element is displayed on a screen.
15. A computer storage medium having program instructions stored therein, the instructions comprising:
the upper layer of the appointed content in the on-screen application program interface is used for adjusting the display area of the additional content in a telescopic manner;
acquiring telescopic parameters of the telescopic adjustment;
adjusting the display position of the specified content in the application program interface on the screen according to the telescopic parameters so as to keep the content corresponding to the central point of the visible area of the specified content in the application program interface on the screen unchanged before and after the telescopic adjustment;
wherein the specified content comprises a map or a graphic.
CN201711077849.9A 2017-11-06 2017-11-06 Display position adjusting method and device Active CN110020299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711077849.9A CN110020299B (en) 2017-11-06 2017-11-06 Display position adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711077849.9A CN110020299B (en) 2017-11-06 2017-11-06 Display position adjusting method and device

Publications (2)

Publication Number Publication Date
CN110020299A CN110020299A (en) 2019-07-16
CN110020299B true CN110020299B (en) 2021-09-14

Family

ID=67186755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711077849.9A Active CN110020299B (en) 2017-11-06 2017-11-06 Display position adjusting method and device

Country Status (1)

Country Link
CN (1) CN110020299B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519518A (en) * 2019-08-30 2019-11-29 联想(北京)有限公司 A kind of image processing method, device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104981681A (en) * 2012-06-05 2015-10-14 苹果公司 Displaying location preview
CN106775216A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of terminal and input frame adaptive approach
CN107273428A (en) * 2017-05-16 2017-10-20 上海蔚来汽车有限公司 Map scaling methods, memory, control device and system based on resource distribution

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249930B2 (en) * 2008-02-01 2012-08-21 Google Inc. Online map advertising
US20130111391A1 (en) * 2011-11-01 2013-05-02 Microsoft Corporation Adjusting content to avoid occlusion by a virtual input panel
CN102722280B (en) * 2012-05-21 2016-03-23 北京智谷技术服务有限公司 Control the method for screen movement, device and terminal
CN105739843B (en) * 2014-12-08 2019-03-19 阿里巴巴集团控股有限公司 Information displaying method and device, electronic equipment
CN104461255B (en) * 2014-12-29 2018-02-02 小米科技有限责任公司 Page display method and device, electronic equipment
CN106776656A (en) * 2015-11-25 2017-05-31 中兴通讯股份有限公司 Adjust the display methods and device of picture character
CN106909393B (en) * 2017-03-01 2020-06-05 腾讯科技(深圳)有限公司 Display adjustment method of input method panel and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104981681A (en) * 2012-06-05 2015-10-14 苹果公司 Displaying location preview
CN106775216A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of terminal and input frame adaptive approach
CN107273428A (en) * 2017-05-16 2017-10-20 上海蔚来汽车有限公司 Map scaling methods, memory, control device and system based on resource distribution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"航迹显示控件的设计与开发";何维 等;《数字通信》;20111025;第38卷(第5期);第41-44页 *

Also Published As

Publication number Publication date
CN110020299A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US10445914B2 (en) Method and apparatus for contextually varying imagery on a map
US9110573B2 (en) Personalized viewports for interactive digital maps
CN107123084B (en) Optimizing image cropping
US9026938B2 (en) Dynamic detail-in-context user interface for application access and content access on electronic displays
US9811879B2 (en) Keeping map labels consistent across multiple zoom levels
JP2010181637A5 (en)
CN110019590B (en) Method and device for displaying map in page, electronic equipment and storage medium
US9684947B2 (en) Indicating availability of indoor content on a digital map
CN107977137B (en) Object display method, device and equipment of application page
CN107656961B (en) Information display method and device
US20140375648A1 (en) Image display system, image display method, image display program, and computer-readable recording medium storing said program
DE202014010894U1 (en) System for disambiguation of the object selection
US20150187098A1 (en) Method and apparatus for unobtrusively changing imagery supplementing a map display
CN115237522A (en) Page self-adaptive display method and device
US20240125613A1 (en) Map generation method and map generation apparatus
CN110020299B (en) Display position adjusting method and device
JP2005327314A (en) Image display method and device
CN110968385A (en) Proportion display method and device
Parker et al. Data visualisation trends in mobile augmented reality applications
CN111414104B (en) Electronic map local display method and device
JP7086180B2 (en) Dynamic styling of digital maps
CN109104627B (en) Focus background generation method, storage medium, device and system of android television
US20150154784A1 (en) Use of Photo Animation Transitions to Mask Latency
US20150235390A1 (en) Viewport-based contrast adjustment for map features
US20190156465A1 (en) Converting Imagery and Charts to Polar Projection

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