Adjusting method, device and equipment for transparency of floating window and program product
By generating adjustment icons when the floating window pops up and adjusting transparency in real time, the problem of the floating window transparency adjustment function hidden in the deep settings menu is solved, and the user's ability to easily adjust transparency is realized, improving usage efficiency and user experience.
Patent Information
- Application Number
- CN202510057441.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the transparency adjustment function of floating windows is usually hidden deep in the setting menu, making it difficult for users to quickly find and adjust in actual use, affecting the user experience.
When the floating window pops up on the screen, an adjustment icon is generated to adjust the transparency of the floating window, and the transparency settings are obtained through the user's triggering operation to adjust the transparency of the floating window in real time.
It enables users to easily adjust the transparency of suspended windows without in-depth settings, improves the efficiency of functions, reduces the user's troubles caused by suspended windows, and ensures the smoothness and personalization of the user experience.
Smart Images

Figure CN119960882A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of floating window transparency adjustment, and in particular to a floating window transparency adjustment method, device, equipment and program product. Background Art
[0002] In smartphones, the floating window function has been widely used in multitasking, allowing users to view or operate another application while using a certain application. However, the appearance of floating windows often blocks important information and operation interfaces, causing trouble for users. At present, although some mobile phone systems provide the option to adjust the transparency of floating windows, this function is usually hidden deep in the settings menu, making it difficult for users to quickly find and adjust it in actual use, affecting the user experience. Summary of the invention
[0003] The purpose of the present invention is to at least provide a method, device, equipment and program product for adjusting the transparency of a floating window, which can at least solve the problem that the floating window transparency adjustment function in the prior art is usually hidden deep in the setting menu, making it difficult for users to quickly find and adjust it in actual use, affecting the user experience, and enables users to easily adjust the transparency of the floating window without in-depth settings. This not only improves the efficiency of the function, but also reduces the trouble caused by the occlusion of the floating window in daily operations.
[0004] To solve the above technical problems, this application proposes four aspects.
[0005] In a first aspect, the present application provides a method for adjusting the transparency of a floating window, comprising: when a floating window pops up on the screen, generating an adjustment icon for adjusting the transparency of the floating window at a preset position of the screen; obtaining the transparency set by the user by triggering the adjustment icon; and adjusting the transparency of the floating window to the transparency set by the user.
[0006] In some embodiments, when a floating window pops up on the screen, an adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen, including: obtaining the initial position of the floating window on the screen when it pops up; obtaining a preset relative position relationship between the adjustment icon and the floating window; determining a target position of the adjustment icon on the screen based on the initial position and the relative position relationship; and generating the adjustment icon at the target position.
[0007] In some embodiments, after the adjustment icon is generated at the target position, the method further includes: binding the adjustment icon to the floating window in position, so that the adjustment icon can move synchronously with the movement of the floating window.
[0008] In some embodiments, obtaining the transparency set by the user by triggering the adjustment icon includes: when a first trigger operation of the user on the adjustment icon is monitored, popping up a slider near the adjustment icon; identifying the effective slider length formed after the user slides the slider, and determining the transparency set by the user based on the effective slider length; the effective slider length of the slider is proportional to the set transparency.
[0009] In some embodiments, obtaining the transparency set by the user by triggering the adjustment icon includes: when it is detected that the user performs a second trigger operation on the adjustment icon, popping up a plurality of shortcut icons with preset transparency near the adjustment icon; in response to the user's selection trigger operation on any of the shortcut icons, determining the transparency corresponding to the shortcut icon selected and triggered by the user as the transparency set by the user.
[0010] In some embodiments, the method further includes: before the floating window pops up on the screen, when a pop-up request for the floating window is detected, obtaining a preset default transparency; and popping up the floating window on the screen with the default transparency;
[0011] When it is detected that the floating window is closed or expanded, the adjustment icon is closed, and the transparency of the floating window before closing or expanding is determined as the new default transparency.
[0012] In some embodiments, the method also includes: when the user sets the transparency of the floating window through the adjustment icon for the first time, after the floating window pops up on the screen and before the adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen, a novice guidance process for adjusting the transparency of the floating window is provided.
[0013] In the second aspect, the present application proposes a device for adjusting the transparency of a floating window, comprising: a first execution module, used to generate an adjustment icon for adjusting the transparency of the floating window at a preset position of the screen when the floating window pops up on the screen; a first acquisition module, used to obtain the transparency set by the user by triggering the adjustment icon; a first adjustment module, used to adjust the transparency of the floating window to the transparency set by the user.
[0014] In a third aspect, the present application proposes a computer electronic production device, characterized in that it includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.
[0015] In a fourth aspect, the present application proposes a computer program product, comprising a computer program, which implements the steps of any one of the methods described in the first aspect when executed by a processor.
[0016] This application solves the problem that the floating window transparency adjustment function in the prior art is usually hidden deep in the settings menu, making it difficult for users to quickly find and adjust it in actual use, affecting the user experience. It enables users to easily adjust the transparency of the floating window without in-depth settings. This not only improves the efficiency of the function, but also reduces the trouble caused by the occlusion of the floating window in daily operations. The real-time feedback mechanism and memory function of transparency adjustment ensure the smoothness and personalization of the user experience, and is suitable for various types of smartphones and their operating systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0018] Figure 1 A main flow chart of a method for adjusting the transparency of a floating window provided in an embodiment of the present application;
[0019] Figure 2 This is a main structural block diagram of a floating window transparency adjustment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0021] In smartphones, the floating window function has been widely used in multitasking, allowing users to view or operate another application while using a certain application. However, the appearance of floating windows often blocks important information and operation interfaces, causing trouble for users. At present, although some mobile phone systems provide the option to adjust the transparency of floating windows, this function is usually hidden deep in the settings menu, making it difficult for users to quickly find and adjust it in actual use, affecting the user experience.
[0022] In order to solve the above technical problems, the present invention proposes a method for adjusting the transparency of a floating window. The implementation details of the method for determining the bandwidth of this embodiment are specifically described below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.
[0023] Embodiment 1:
[0024] like Figure 1 As shown, the present application provides a method for adjusting the transparency of a floating window, and the method system is applied to electronic production equipment, and the electronic production equipment can be a server, a mobile terminal, a computer, a cloud platform, etc. The function implemented by the production equipment data processing provided in the embodiment of the present application can be implemented by calling a program code by a processor of the electronic production equipment, wherein the program code can be stored in a computer storage medium. A method for adjusting the transparency of a floating window includes:
[0025] Step S1: when a floating window pops up on the screen, an adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen.
[0026] In order to solve the problem that in the prior art, the function of adjusting the transparency of the floating window is hidden deep in the setting function, which makes it difficult for users to find the floating window transparency adjustment function, and if users are not satisfied with the transparency of the current floating window, they need to find the corresponding function again and then adjust it. However, during the adjustment process, users cannot obtain timely feedback on the transparency of the floating window, which makes the user experience of the floating window extremely poor. In order to solve this problem, the present application will synchronously generate an adjustment icon for the transparency of the floating window on the screen when a floating window pop-up request is detected.
[0027] In some embodiments, step S1 “generating an adjustment icon for adjusting the transparency of the floating window at a preset position on the screen when the floating window pops up on the screen” includes:
[0028] Step S11: Obtain the initial position of the floating window on the screen when it pops up.
[0029] Step S12: Obtaining a preset relative position relationship between the adjustment icon and the floating window.
[0030] Step S13: determining the target position of the adjustment icon on the screen according to the initial position and the relative position relationship.
[0031] Step S14: generating the adjustment icon at the target position.
[0032] In some embodiments, after generating the adjustment icon, the method further includes:
[0033] Step S15: Binding the position of the adjustment icon to the floating window so that the adjustment icon can move synchronously with the movement of the floating window.
[0034] Since the position of the floating window is generally set to be movable, and the user will also move the position of the floating window on the screen according to the needs, and there is so much space on the screen, if the adjustment icon is fixedly generated at a certain position, it will make it difficult for the user to find the adjustment icon in time, and the adjustment icon may also be blocked due to the movement of the floating window. Therefore, it is necessary to bind the adjustment icon to the floating window in a positional relationship, so that when the floating window moves, the adjustment icon can also move with the floating window to ensure that the user can easily find the adjustment icon of the transparency of the floating window. In the process of implementing the binding, if the position of the floating window is monitored at all times, and the adjustment icon is generated according to the bound positional relationship, the calculation amount of the entire device will increase, and a lot of useless calculations will be added. In general, the position of the floating window when it just appears can be determined, so the application refers to the position of the floating window just popped up on the screen as the initial position. Of course, the initial position can be the final position before the last floating window was closed or unfolded, or it can be a preset fixed position. After determining the initial position, the target position of the adjustment icon on the screen can be determined according to the preset positional relationship between the adjustment icon and the floating window, and then the adjustment icon is generated at the target position. After the adjustment icon is generated, in order for the user to be able to find the adjustment icon in time after the floating window moves, the adjustment icon needs to be bound to the floating window in a positional relationship, that is, when the floating window is moved, the adjustment icon will be regarded as moving as a whole with the floating window.
[0035] Step S2: Obtain the transparency set by the user by triggering the adjustment icon.
[0036] In some embodiments, step S2 of “obtaining the transparency set by the user by triggering the adjustment icon” includes:
[0037] Step S21: when a first triggering operation of the user on the adjustment icon is detected, a sliding bar pops up near the adjustment icon.
[0038] Step S22: identifying the effective slide bar length formed after the user slides the slide bar, and determining the transparency set by the user according to the effective slide bar length; the effective slide bar length of the slide bar is proportional to the set transparency.
[0039] In some embodiments, step S2 of “obtaining the transparency set by the user by triggering the adjustment icon” further includes:
[0040] Step S23: when it is detected that the user performs a second trigger operation on the adjustment icon, a plurality of shortcut icons of preset transparency are popped up near the adjustment icon.
[0041] Step S24: In response to the user's selection triggering operation on any of the shortcut icons, the transparency corresponding to the shortcut icon selected and triggered by the user is determined as the transparency set by the user.
[0042] In this application, when the transparency is not adjusted, the transparency adjustment function will be folded into an adjustment icon, and when the user triggers the adjustment icon, the floating window adjustment function can be expanded to a certain extent, wherein the adjustment icon can be expanded into a slider with an effective length of the slider, or it can be expanded into multiple shortcut icons with preset transparency. The transparency adjustment makes the triggering operation mainly a click operation and a sliding operation, wherein the transparency adjustment function can be expanded by clicking on the adjustment icon, or the target icon can be determined by clicking on the shortcut icon, and then the target transparency, that is, the transparency set by the user, can also be determined by sliding the effective slider length in the slider, changing the proportion of the effective slider length in the slider, and then changing the transparency of the floating window. In order to distinguish the click operation when the transparency adjustment function is expanded and the click operation during the transparency adjustment process, the two click behaviors are respectively referred to as the first trigger operation and the second trigger operation.
[0043] Step S3: adjusting the transparency of the floating window to the transparency set by the user.
[0044] In terms of transparency setting, this application provides two setting methods. One is to determine the target transparency by adjusting the position of the effective length of the slider in the slider, and then adjust the transparency of the floating window according to the target transparency. The other is to determine the target transparency by selecting a shortcut icon with preset transparency, and then adjust the transparency of the floating window. The preset transparency of the shortcut icon can be actively preset by the user or set by the system default.
[0045] In order to avoid the user having to adjust the transparency of the floating window every time the floating window is opened, the transparency of the floating window before it was closed or expanded can be recorded, and the transparency can be determined as the default transparency. When a floating window pop-up request is detected, a floating window with a transparency that meets the user's habits can be generated based on the default transparency. Therefore, in this application, when a floating window pop-up request is detected, the default transparency of the floating window will be obtained first to pop up a floating window with a transparency that meets the user's habits.
[0046] The results of the user's handling of the floating window are generally closing the floating window or expanding the floating window. However, no matter which method is used, the floating window on the screen will disappear. At this time, in order to prevent the adjustment icon from affecting the user's use of the device, it is necessary to close the adjustment icon. In addition, in order to make the floating window that pops up next time meet the user's usage habits as much as possible, it is also necessary to determine the transparency of the floating window before closing or expanding as the default transparency, so that the floating window can pop up with the default transparency next time. Therefore, in some embodiments, the method further includes:
[0047] Step S4: before the floating window pops up on the screen, when a pop-up request of the floating window is detected, a preset default transparency is obtained.
[0048] Step S5: pop-up display of the floating window on the screen with the default transparency;
[0049] Step S6: when it is detected that the floating window is closed or expanded, the adjustment icon is closed, and the transparency of the floating window before closing or expanding is determined as the new default transparency.
[0050] Taking into account the numerous functions of existing devices, and the fact that users do not have the opportunity or will not take the initiative to study the various functions of the devices, this application will provide a novice guidance process for the transparency of the floating window when the user opens the floating window on the device for the first time, so that the user can better understand the process of adjusting the transparency of the floating window on the device.
[0051] Therefore, in some implementations, the method further comprises:
[0052] Step S7: When the user sets the transparency of the floating window through the adjustment icon for the first time, after the floating window pops up on the screen and before the adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen, a novice guidance process for adjusting the transparency of the floating window is provided.
[0053] The present application provides a method for adjusting the transparency of a floating window, including: when a floating window pops up on the screen, generating an adjustment icon for adjusting the transparency of the floating window at a preset position on the screen; obtaining the transparency set by the user by triggering the adjustment icon; and adjusting the transparency of the floating window to the transparency set by the user. This solves the problem in the prior art that the transparency adjustment function of the floating window is usually hidden deep in the settings menu, making it difficult for users to quickly find and adjust it in actual use, affecting the user experience, and enables users to easily adjust the transparency of the floating window without in-depth settings. This not only improves the efficiency of function use, but also reduces the trouble caused by the occlusion of the floating window in daily operations. The real-time feedback mechanism and memory function of transparency adjustment ensure the smoothness and personalization of the user experience, and is suitable for various types of smartphones and their operating systems.
[0054] Embodiment 2:
[0055] Based on the foregoing embodiments, the embodiments of the present application provide a floating window transparency adjustment device, and the modules included in the device, as well as the units included in the modules, can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0056] like Figure 2 As shown, a floating window transparency adjustment device includes: a first execution module 1, a first acquisition module 2 and a first adjustment module 3.
[0057] The first execution module 1 is used to generate an adjustment icon for adjusting the transparency of the floating window at a preset position of the screen when the floating window pops up on the screen. The first acquisition module 2 is used to obtain the transparency set by the user by triggering the adjustment icon. The first adjustment module 3 is used to adjust the transparency of the floating window to the transparency set by the user.
[0058] In some embodiments, the first execution module 1 includes: a second acquisition module, a third acquisition module, a first determination module and a second execution module.
[0059] The second acquisition module is used to obtain the initial position of the floating window when it pops up on the screen. The third acquisition module is used to obtain the preset position relationship between the adjustment icon and the floating window. The first determination module is used to determine the target position of the adjustment icon on the screen according to the initial position and the position relationship. The second execution module is used to generate the adjustment icon at the target position.
[0060] In some embodiments, the device further includes: a third execution module.
[0061] The third execution module is used to bind the position of the adjustment icon to the floating window, so that the adjustment icon can move synchronously with the movement of the floating window.
[0062] In some embodiments, the first adjusting module 3 includes: a fourth execution module and a second determination module.
[0063] The fourth execution module is used to pop up a sliding bar near the adjustment icon when the user's first trigger operation on the adjustment icon is detected. The second determination module is used to identify the effective sliding bar length formed after the user slides the sliding bar, and determine the transparency set by the user according to the effective sliding bar length; the effective sliding bar length of the sliding bar is proportional to the set transparency.
[0064] In some embodiments, the first adjustment module 3 further includes: a fifth execution module and a sixth execution module.
[0065] The fifth execution module is used to pop up a plurality of shortcut icons with preset transparency near the adjustment icon when it is detected that the user performs a second trigger operation on the adjustment icon. The sixth execution module is used to respond to the user's selection trigger operation on any of the shortcut icons and determine the transparency corresponding to the shortcut icon selected and triggered by the user as the transparency set by the user.
[0066] In some embodiments, the device further includes: a fourth acquisition module, a seventh execution module and an eighth execution module.
[0067] The fourth acquisition module is used to acquire the preset default transparency when a pop-up request of the floating window is detected before the floating window pops up on the screen. The seventh execution module is used to pop up the floating window on the screen with the default transparency. The eighth execution module is used to close the adjustment icon when it is detected that the floating window is closed or expanded, and determine the transparency of the floating window before closing or expanding as the new default transparency.
[0068] In some embodiments, the device further includes: a ninth execution module.
[0069] The ninth execution module is used to provide a novice guidance process for adjusting the transparency of the floating window when the user sets the transparency of the floating window through the adjustment icon for the first time, after the floating window pops up on the screen and before the adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen.
[0070] Each module in the above-mentioned floating window transparency adjustment device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the device in the form of hardware, or can be stored in the memory in the processing device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0071] Embodiment 3:
[0072] In a third aspect, the present application provides a computer electronic production device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.
[0073] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0074] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0075] Embodiment 4:
[0076] In a fourth aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0077] Embodiment 5:
[0078] In a fifth aspect, the present application proposes a computer program product, comprising a computer program / instructions, characterized in that when the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0079] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0080] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A method for adjusting the transparency of a floating window, characterized in that: include: When a floating window pops up on the screen, an adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen; Obtaining the transparency set by the user by triggering the adjustment icon; The transparency of the floating window is adjusted to the transparency set by the user.
2. The method according to claim 1, characterized in that When a floating window pops up on the screen, generating an adjustment icon for adjusting the transparency of the floating window at a preset position on the screen includes: Get the initial position of the floating window on the screen when it pops up; Obtaining a preset relative position relationship between the adjustment icon and the floating window; Determining a target position of the adjustment icon on the screen according to the initial position and the relative position relationship; The adjustment icon is generated at the target position.
3. The method according to claim 2, characterized in that After generating the adjustment icon at the target position, the method further includes: The adjustment icon is positionally bound to the floating window so that the adjustment icon can move synchronously with the movement of the floating window.
4. The method according to claim 1, characterized in that: The obtaining the transparency set by the user by triggering the adjustment icon includes: When a first trigger operation of the user on the adjustment icon is detected, a sliding bar pops up near the adjustment icon; An effective sliding bar length formed after the user slides the sliding bar is identified, and the transparency set by the user is determined according to the effective sliding bar length; the effective sliding bar length of the sliding bar is proportional to the set transparency.
5. The method according to claim 4, characterized in that The obtaining the transparency set by the user by triggering the adjustment icon includes: When it is detected that the user performs a second trigger operation on the adjustment icon, a plurality of shortcut icons of preset transparency are popped up near the adjustment icon; In response to a user's selection triggering operation on any of the shortcut icons, the transparency corresponding to the shortcut icon selected and triggered by the user is determined as the transparency set by the user.
6. The method according to claim 1, characterized in that The method further comprises: Before a floating window pops up on the screen, when a pop-up request for the floating window is detected, a preset default transparency is obtained; Pop-up display of the floating window on the screen with the default transparency; When it is detected that the floating window is closed or expanded, the adjustment icon is closed, and the transparency of the floating window before closing or expanding is determined as the new default transparency.
7. The method according to claim 1, characterized in that The method further comprises: When a user sets the transparency of a floating window through the adjustment icon for the first time, after the floating window pops up on the screen and before an adjustment icon for adjusting the transparency of the floating window is generated at a preset position on the screen, a novice guidance process for adjusting the transparency of the floating window is provided.
8. A floating window transparency adjustment device, characterized in that: include: A first execution module, configured to generate an adjustment icon for adjusting the transparency of the floating window at a preset position on the screen when the floating window pops up on the screen; A first acquisition module, used to acquire the transparency set by the user by triggering the adjustment icon; The first adjustment module is used to adjust the transparency of the floating window to the transparency set by the user.
9. A computer electronic production equipment, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 7 when being executed by a processor.