WO-2026091558-A1 - METHOD AND APPARATUS FOR MANAGING APPLICATION INTERFACE, DEVICE, MEDIUM AND PROGRAM PRODUCT
Abstract
Embodiments of the present disclosure provide a method and apparatus for managing an application interface, a device, a medium and a program product. The method comprises: presenting a floating control at a first position of an application interface; in response to reception of an interaction request for the floating control, on the basis of an interaction position of the interaction request in the application interface, determining, in a candidate area in the application interface, a second position for presenting the floating control; and presenting the floating control at the second position of the application interface.
Inventors
- ZHONG, Jiaxin
- JIN, Xiaoshu
- LI, Ziwei
- GUO, Yao
Assignees
- 北京字跳网络技术有限公司
Dates
- Publication Date
- 20260507
- Application Date
- 20250618
- Priority Date
- 20241028
Claims (16)
- A method for managing an application interface, comprising: A floating control is displayed at the first location on the application interface; In response to receiving an interaction request for the floating control, based on the interaction position of the interaction request in the application interface, a second position for presenting the floating control is determined within a candidate area in the application interface; and The floating control is displayed at the second location in the application interface.
- According to the method of claim 1, the candidate region is determined based on the position of at least one fixed control in the application interface.
- The method according to claim 2 further comprises at least one of the following: An interactive layer is overlaid in the candidate area to indicate that the floating control is in a moving state; or A prompt message is displayed in the candidate area to indicate that the floating control is in a moving state.
- The method of claim 2, wherein determining the second location in the candidate region comprises: Based on the position of the at least one fixed control, determine the position corresponding to the first dimension of the application interface; and Based on the interaction location, determine the position corresponding to the second dimension of the application interface; and The second position is determined based on the position corresponding to the first dimension and the position corresponding to the second dimension.
- According to the method of claim 1, wherein the interaction request is a drag request for the floating control, the method further includes: In response to determining that the interaction request has stopped, the floating control is presented at the second location on the application interface.
- According to the method of claim 2, the size of the candidate region is smaller than the size of the application interface, and at least one fixed control is located outside the candidate region.
- According to the method of claim 2, the distance between the second position and the position of the at least one fixed control satisfies a threshold condition.
- According to the method of claim 1, presenting the floating control at the first location on the application interface includes: The floating control is presented in the first style; and Presenting the floating control at the second location in the application interface includes presenting the target control in a second style, which is different from the first style.
- The method according to claim 1, wherein the method is implemented in a terminal device, and the method further comprises: The method is executed in response to determining that the resolution of the terminal device meets a predetermined condition.
- The method according to claim 1 further comprises: Store the second location; and In response to determining that the application interface has been restarted, the floating control is presented at the second position in the restarted application interface.
- The method according to claim 1 further comprises: In response to determining that the interaction request meets a predetermined type, the second position is determined based on the interaction position.
- According to the method of claim 1, wherein the floating control includes a view switching control, the application interface is presented in a first view mode, and the method further includes: In response to determining that the interaction request does not meet a predetermined type, the application interface is presented in a second view mode, which is different from the first view mode.
- An apparatus for managing an application interface, comprising: The first presentation module is configured to present a floating control at a first location on the application interface; A position determination module is configured to, in response to receiving an interaction request for the floating control, determine a second position for presenting the floating control within a candidate area of the application interface based on the interaction position of the interaction request in the application interface; and The second presentation module is configured to present the floating control at the second location on the application interface.
- An electronic device, comprising: At least one processor; and At least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions causing the electronic device to perform the method according to any one of claims 1 to 12 when executed by the at least one processor.
- A computer-readable storage medium having stored thereon computer-executable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 12.
- A computer program product includes computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 12.
Description
Methods, apparatus, devices, media, and program products for managing application interfaces. This application claims priority to Chinese Patent Application No. 202411516989.1, filed on October 28, 2024, entitled “Method, Apparatus, Device, Media and Program Product for Managing Application Interfaces”, the entire contents of which are incorporated herein by reference. Technical Field The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatus, electronic devices, computer-readable storage media, and computer program products for managing application interfaces. Background Technology More and more applications are now designed to provide users with a variety of services. For example, users can publish, browse, and view various types of content within an application, including multimedia content such as videos, images, image sets, and audio. Users can also interact with other users within the application, such as liking, saving, and commenting on content posted by other users, or following other users and visiting their profiles. Summary of the Invention In a first aspect of this disclosure, a method for managing an application interface is provided. The method includes: presenting a floating control at a first location on the application interface; in response to receiving an interaction request for the floating control, determining a second location for presenting the floating control within a candidate area on the application interface based on the interaction location of the interaction request; and presenting the floating control at the second location on the application interface. In a second aspect of this disclosure, an apparatus for managing an application interface is provided. The apparatus includes: a first presentation module configured to present a floating control at a first location on the application interface; a location determination module configured to, in response to receiving an interaction request for the floating control, determine a second location for presenting the floating control within a candidate area on the application interface based on the interaction location of the interaction request in the application interface; and a second presentation module configured to present the floating control at the second location on the application interface. In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. When executed by the at least one processor, the instructions cause the electronic device to perform the method of the first aspect. In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, implement the method of the first aspect. In a fifth aspect of this disclosure, a computer program product is provided. The computer program product includes computer-executable instructions, wherein when executed by a processor, the computer-executable instructions implement the method according to a first aspect of this disclosure. It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented; Figures 2A to 2G illustrate example interfaces according to some embodiments of the present disclosure; Figure 3 shows a flowchart of a method for managing an application interface according to some embodiments of the present disclosure; Figure 4 shows an example structural block diagram of an apparatus for managing an application interface according to some embodiments of the present disclosure; and Figure 5 shows a block diagram of an electronic device that can implement one or more embodiments of the present disclosure. Detailed Implementation Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provid