IP Library Granted Patent US 12,073,070
Granted Patent B2
US 12,073,070 · App. 17/908,406 · Granted Aug 27, 2024

Dynamic element control method, electronic device, and computer readable storage medium

Inventor: Lang Song (Shenzhen, CN)
Assignee: HONOR DEVICE CO., LTD.
G06F3/0486G06F3/0481
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,073,070
App. No.
17/908,406
Granted
Aug 27, 2024
Kind
B2
Abstract

Disclosed are a dynamic element ( 25 ) control method, an electronic device ( 900 ), and a computer readable storage medium. ( 102 ) A moving operation of a floating window ( 24 ) moving toward the dynamic element ( 25 ) is detected, and adjustment information of the dynamic element ( 25 ) is determined. ( 108 ) A location and/or size of the dynamic element ( 25 ) is adjusted based on the adjustment information, so that the dynamic element ( 25 ) avoids the floating window ( 24 ). A visible area of the dynamic element ( 25 ) can be increased, and operability of the dynamic element ( 25 ) can be improved.

Claims (62)

1. A dynamic element control method, comprising:

detecting a moving operation of a floating window moving toward a dynamic element;

determining adjustment information of the dynamic element, wherein determining the adjustment information comprises:

acquiring first location information of the floating window and second location information of the dynamic element, and

generating adjustment location information of the adjustment information by using a first specified function, and based on a specified first boundary value, a specified second boundary value, a specified first parameter, a specified second parameter, the first location information, and the second location information; and

adjusting at least one of a location or size of the dynamic element based on the adjustment information, so that the dynamic element avoids the floating window.

2. The method according to claim 1 , wherein the first specified function comprises a linear function, a sine curve, a Bessel curve, a power function curve, or an exponential function.

3. The method according to claim 1 , wherein the adjustment information further comprises adjustment size information; and

the determining adjustment information of the dynamic element further comprises:

acquiring current size information of the dynamic element; and

generating the adjustment size information by using a second specified function and based on a specified boundary size, a specified third parameter, a specified fourth parameter, the first location information, the second location information, and the current size information.

4. The method according to claim 3 , wherein the second specified function comprises a linear function, a sine curve, a Bessel curve, a power function curve, or an exponential function.

5. The method according to claim 1 , wherein the specified first boundary value is less than the specified second boundary value; and

before the adjusting at least one of the location or size of the dynamic element based on the adjustment information, the method further comprises:

determining whether the adjustment location information is greater than or equal to the specified first boundary value and less than or equal to the specified second boundary value; and

if it is determined that the adjustment location information is greater than or equal to the specified first boundary value and less than or equal to the specified second boundary value, continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

6. The method according to claim 5 , further comprising:

if it is determined that the adjustment location information is less than the specified first boundary value, determining the specified first boundary value as the adjustment location information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

7. The method according to claim 5 , further comprising:

if it is determined that the adjustment location information is greater than the specified second boundary value, determining the specified second boundary value as the adjustment location information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

8. The method according to claim 3 , wherein

before the adjusting at least one of the location or size of the dynamic element based on the adjustment information, the method further comprises:

determining whether the adjustment size information is greater than or equal to the specified boundary size; and

if it is determined that the adjustment size information is greater than or equal to the specified boundary size, continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

9. The method according to claim 8 , further comprising:

if it is determined that the adjustment size information is less than the specified boundary size, determining the specified boundary size as the adjustment size information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

10. An electronic device, comprising:

a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprise instructions, and when the instructions are executed by the device, the device performs following steps:

detecting a moving operation of a floating window moving toward a dynamic element;

determining adjustment information of the dynamic element, wherein determining the adjustment information comprises:

acquiring first location information of the floating window, second location information of the dynamic element, and current size information of the dynamic element, and

generating adjustment size information of the adjustment information by using a first specified function and based on a specified boundary size, a specified first parameter, a specified second parameter, the first location information, the second location information, and the current size information; and

adjusting at least one of a location or size of the dynamic element based on the adjustment information, so that the dynamic element avoids the floating window.

11. The device according to claim 10 , wherein the adjustment information further comprises adjustment location information; and

when the instructions are executed by the device, the device performs following steps:

generating the adjustment location information by using a second specified function and based on a specified first boundary value, a specified second boundary value, a specified third parameter, a specified fourth parameter, the first location information, and the second location information.

12. The device according to claim 11 , wherein the specified first boundary value is less than the specified second boundary value; and

when the instructions are executed by the device, the device performs following steps:

determining whether the adjustment location information is greater than or equal to the specified first boundary value and less than or equal to the specified second boundary value; and

if it is determined that the adjustment location information is greater than or equal to the specified first boundary value and less than or equal to the specified second boundary value, continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

13. The device according to claim 12 , wherein when the instructions are executed by the device, the device performs following step:

if it is determined that the adjustment location information is less than the specified first boundary value, determining the specified first boundary value as the adjustment location information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

14. The device according to claim 12 , wherein when the instructions are executed by the device, the device performs following step:

if it is determined that the adjustment location information is greater than the specified second boundary value, determining the specified second boundary value as the adjustment location information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

15. The device according to claim 10 , wherein when the instructions are executed by the device, the device performs following steps:

determining whether the adjustment size information is greater than or equal to the specified boundary size; and

if it is determined that the adjustment size information is greater than or equal to the specified boundary size, continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

16. The device according to claim 15 , wherein when the instructions are executed by the device, the device performs following step:

if it is determined that the adjustment size information is less than the specified boundary size, determining the specified boundary size as the adjustment size information, and continuing to perform the adjusting of the at least one of the location or size of the dynamic element based on the adjustment information.

17. The device according to claim 10 , wherein when the instructions are executed by the device, the device performs following step:

adjusting at least one of the location or size of a neighboring dynamic element of the dynamic element based on a specified proportion of the adjustment information.

18. A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium comprises a stored program, and when the stored program is running, a device in which the non-transitory computer readable storage medium is located is controlled to execute following steps:

detecting a moving operation of a floating window moving toward a dynamic element;

determining adjustment information of the dynamic element, wherein determining the adjustment information comprises:

acquiring first location information of the floating window and second location information of the dynamic element, and

generating adjustment location information of the adjustment information using a first specified function, and based on a specified first boundary value, a specified second boundary value, a specified first parameter, a specified second parameter, the first location information, and the second location information; and

adjusting at least one of a location or size of the dynamic element based on the adjustment information, so that the dynamic element avoids the floating window.

19. The non-transitory computer readable storage medium according to claim 18 , wherein the adjustment information further comprises adjustment size information; and

the determining adjustment information of the dynamic element further comprises:

acquiring current size information of the dynamic element; and

generating the adjustment size information by using a second specified function and based on a specified boundary size, a specified third parameter, a specified fourth parameter, the first location information, the second location information, and the current size information.

20. The non-transitory computer readable storage medium according to claim 19 , wherein the second specified function comprises a linear function, a sine curve, a Bessel curve, a power function curve, or an exponential function.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 10, 2023
From: SONG, LANG
To: HONOR DEVICE CO., LTD.
Reel/Frame 065527/0518 →
Priority Claims (1)
CN 202011017632.0 · Sep 24, 2020 · national
Continuity (1)
Related Publication 20230342018A1 · Oct 26, 2023