[go: up one dir, main page]

CN117032851B - Method for displaying objects in chessboard layout, electronic device and readable storage medium - Google Patents

Method for displaying objects in chessboard layout, electronic device and readable storage medium Download PDF

Info

Publication number
CN117032851B
CN117032851B CN202310798469.3A CN202310798469A CN117032851B CN 117032851 B CN117032851 B CN 117032851B CN 202310798469 A CN202310798469 A CN 202310798469A CN 117032851 B CN117032851 B CN 117032851B
Authority
CN
China
Prior art keywords
distance
sliding
electronic device
screen
objects
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
CN202310798469.3A
Other languages
Chinese (zh)
Other versions
CN117032851A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310798469.3A priority Critical patent/CN117032851B/en
Publication of CN117032851A publication Critical patent/CN117032851A/en
Application granted granted Critical
Publication of CN117032851B publication Critical patent/CN117032851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a display method of an object in a chessboard layout, electronic equipment and a readable storage medium, wherein in the method, the electronic equipment can control the object in the chessboard layout to continue to slide by a certain distance after a finger of a user leaves a screen besides sliding the object based on sliding operation of the user, so that the user is prevented from causing sliding but stopping feeling, the user has better operation feeling, and the user experience is improved. In addition, when the object stops sliding, the center position of the object closest to the center position of the screen can be overlapped with the center position of the screen, so that the problem that the user feels that the position of the object deviates is avoided, and the user experience can be improved.

Description

棋盘布局的对象的显示方法、电子设备及可读存储介质Method for displaying objects in chessboard layout, electronic device and readable storage medium

技术领域Technical Field

本申请实施例涉及终端技术领域,尤其涉及一种棋盘布局的对象的显示方法、电子设备及可读存储介质。The embodiments of the present application relate to the field of terminal technology, and in particular to a method for displaying objects in a chessboard layout, an electronic device, and a readable storage medium.

背景技术Background Art

随着电子设备的发展,电子设备显示的对象的布局也逐渐多样化。示例性的,以对象为桌面显示的应用图标为例,目前手表、手环等电子设备的应用图标的布局可以为列表样式或者棋盘样式,多样的布局可以满足不同用户的需求。With the development of electronic devices, the layout of objects displayed by electronic devices has gradually diversified. For example, taking the application icons displayed on the desktop as an example, the layout of application icons of electronic devices such as watches and bracelets can be in list style or chessboard style. Various layouts can meet the needs of different users.

在用户操作棋盘布局的对象时,棋盘布局的对象会基于用户的操作滑动,显示方式单一。When a user operates an object in a chessboard layout, the object in the chessboard layout will slide based on the user's operation, and the display method is single.

发明内容Summary of the invention

本申请实施例提供一种棋盘布局的对象的显示方法、电子设备及可读存储介质,应用于终端技术领域,可以丰富棋盘布局的对象的显示,提高用户体验。The embodiments of the present application provide a method for displaying objects in a chessboard layout, an electronic device, and a readable storage medium, which are applied to the field of terminal technology and can enrich the display of objects in a chessboard layout and improve user experience.

第一方面,本申请实施例提出一种棋盘布局的对象的显示方法。该方法包括:电子设备显示第一界面,所述第一界面包括棋盘布局的多个对象,所述多个对象中的第一对象的中心位置与所述电子设备的屏幕的中心位置重叠。响应于滑动对象的操作,电子设备控制所述多个对象朝向第一方向滑动第一距离。本申请实施例中,以棋盘布局的多个对象,可以基于用户的滑动操作来滑动。In a first aspect, an embodiment of the present application proposes a method for displaying objects in a chessboard layout. The method includes: an electronic device displays a first interface, the first interface includes multiple objects in a chessboard layout, and the center position of a first object among the multiple objects overlaps with the center position of a screen of the electronic device. In response to an operation of sliding an object, the electronic device controls the multiple objects to slide a first distance in a first direction. In an embodiment of the present application, multiple objects in a chessboard layout can slide based on a user's sliding operation.

本申请实施例中,当滑动操作结束时,电子设备可以控制所述多个对象朝向第二方向滑动第二距离。在滑动结束时,电子设备可以显示第二界面,所述第二界面包括棋盘布局的多个对象,所述多个对象中的第二对象的中心位置与所述屏幕的中心位置重叠。In the embodiment of the present application, when the sliding operation ends, the electronic device can control the multiple objects to slide a second distance in a second direction. When the sliding ends, the electronic device can display a second interface, wherein the second interface includes multiple objects in a chessboard layout, and the center position of a second object in the multiple objects overlaps with the center position of the screen.

本申请实施例中,当滑动操作结束时,电子设备还可以控制棋盘布局的对象继续惯性滑动一段距离,避免给用户造成滑动戛然而止的感受,让用户具有更好的操作感受,提高用户体验。另外,在对象停止滑动时,还可以使能距离屏幕的中心位置最近的对象的中心位置与屏幕的中心位置重叠,避免造成用户感受对象位置偏离的问题,也能够提高用户体验。In the embodiment of the present application, when the sliding operation ends, the electronic device can also control the objects in the chessboard layout to continue to slide inertially for a certain distance, so as to avoid the user's feeling of a sudden stop in sliding, so that the user has a better operating experience and improves the user experience. In addition, when the object stops sliding, the center position of the object closest to the center position of the screen can be overlapped with the center position of the screen, so as to avoid the problem of the user feeling that the object position is deviated, which can also improve the user experience.

在一种可能的实现方式中,当所述第一方向包括一个方向时,所述第二方向与所述第一方向相同;当所述第一方向包括至少一个方向时,所述第二方向为滑动操作结束时的滑动方向。In a possible implementation, when the first direction includes one direction, the second direction is the same as the first direction; when the first direction includes at least one direction, the second direction is the sliding direction when the sliding operation ends.

在该实现方式中,电子设备可以确定控制对象继续惯性滑动的第二方向。In this implementation, the electronic device may determine a second direction in which the control object continues to slide by inertia.

在一种可能的实现方式中,当滑动操作结束时,电子设备控制所述多个对象朝向第二方向滑动第二距离之前,还可以获取第二距离。其中,电子设备可以获取滑动操作结束时的滑动速度,其中,当所述滑动速度大于或等于速度阈值时,电子设备可以根据所述滑动操作结束时的滑动速度,获取所述第二距离。其中,当所述滑动速度小于速度阈值时,电子设备可以不获取所述第二距离,而是直接确定滑动操作结束距离屏幕的中心位置最近的第三对象,显示第三界面,第三界面中第三对象的中心位置和屏幕的中心位置重叠。In a possible implementation, when the sliding operation ends, the electronic device can also obtain the second distance before controlling the multiple objects to slide the second distance in the second direction. The electronic device can obtain the sliding speed when the sliding operation ends, and when the sliding speed is greater than or equal to the speed threshold, the electronic device can obtain the second distance based on the sliding speed when the sliding operation ends. When the sliding speed is less than the speed threshold, the electronic device may not obtain the second distance, but directly determine the third object closest to the center position of the screen when the sliding operation ends, and display the third interface, in which the center position of the third object in the third interface overlaps with the center position of the screen.

在一种可能的实现方式中,所述滑动操作结束时的滑动速度包括X轴的速度,以及Y轴的速度,所述第二距离包括所述X轴的距离,以及所述Y轴的距离。其中,电子设备可以根据所述X轴的速度,获取所述X轴的距离;根据所述Y轴的速度,获取所述Y轴的距离。In a possible implementation, the sliding speed at the end of the sliding operation includes the speed of the X axis and the speed of the Y axis, and the second distance includes the distance of the X axis and the distance of the Y axis. The electronic device can obtain the distance of the X axis according to the speed of the X axis, and obtain the distance of the Y axis according to the speed of the Y axis.

在该实现方式中,电子设备可以基于结束滑动操作时的滑动速度,确定是否控制对象继续惯性滑动第二距离,其中,当结束滑动操作时的滑动速度较大时,电子设备可以基于该速度控制对象继续惯性滑动第二距离,避免给用户造成滑动戛然而止的感受,让用户具有更好的操作感受,提高用户体验。其中,当结束滑动操作时的滑动速度较小时,用户几乎不感知对象继续惯性滑动,因此电子设备可以不控制对象继续惯性滑动,而是直接显示第二界面,使能第二对象的中心位置与屏幕的中心位置重叠,这样可以减少电子设备的工作量。In this implementation, the electronic device can determine whether to control the object to continue to slide inertially for a second distance based on the sliding speed when the sliding operation ends, wherein when the sliding speed when the sliding operation ends is large, the electronic device can control the object to continue to slide inertially for a second distance based on the speed, so as to avoid giving the user the feeling of an abrupt stop of the sliding, so that the user has a better operating experience and improves the user experience. Among them, when the sliding speed when the sliding operation ends is small, the user hardly perceives the object continuing to slide inertially, so the electronic device may not control the object to continue to slide inertially, but directly display the second interface, so that the center position of the second object overlaps with the center position of the screen, which can reduce the workload of the electronic device.

在一种可能的实现方式中,当滑动操作结束时,电子设备可以确定距离所述屏幕的中心位置最近的第三对象,且根据所述第三对象的中心位置和网格,朝向所述第二方向的反方向,计算限制距离,所述限制距离为所述多个对象朝向所述第二方向滑动的最大距离。示例性的,电子设备可以以第三对象的中心位置为起点,朝向滑动操作结束时滑动方向的反方向划线,线条与网格选在交点,电子设备可以将第三对象的中心位置与该交点之间的距离作为限制距离。In a possible implementation, when the sliding operation ends, the electronic device can determine the third object closest to the center position of the screen, and calculate the limit distance in the opposite direction of the second direction based on the center position of the third object and the grid, and the limit distance is the maximum distance that the multiple objects slide in the second direction. Exemplarily, the electronic device can use the center position of the third object as the starting point, draw a line in the opposite direction of the sliding direction when the sliding operation ends, and the line and the grid are selected at the intersection. The electronic device can use the distance between the center position of the third object and the intersection as the limit distance.

电子设备在获取第二距离和限制距离之后,还可以根据所述限制距离,以及所述第二距离,确定第三距离。其中,当所述第二距离小于或等于所述限制距离时,将所述第二距离作为所述第三距离;当所述第二距离大于所述限制距离时,将所述限制距离作为所述第三距离。After obtaining the second distance and the limit distance, the electronic device may also determine a third distance according to the limit distance and the second distance. When the second distance is less than or equal to the limit distance, the second distance is used as the third distance; when the second distance is greater than the limit distance, the limit distance is used as the third distance.

在一种可能的实现方式中,电子设备确定第三距离后,可以控制所述多个对象朝向所述第二方向滑动所述第三距离。In a possible implementation, after determining the third distance, the electronic device may control the multiple objects to slide the third distance toward the second direction.

在该实现方式中,电子设备可以根据滑动操作结束时距离屏幕的中心位置最近的第三对象、滑动操作结束时的滑动方向,以及网格,计算对象继续惯性滑动限制距离。电子设备可以基于第二距离和限制距离,确定对象继续滑动的第三距离,本申请实施例可以避免棋盘布局的对象的惯性滑动超出屏幕显示的范围,在屏幕上产生大量的空白区域,可以提高用户的观看体验。In this implementation, the electronic device can calculate the object's continued inertial sliding limit distance based on the third object closest to the center of the screen when the sliding operation ends, the sliding direction when the sliding operation ends, and the grid. The electronic device can determine the third distance for the object to continue sliding based on the second distance and the limit distance. The embodiment of the present application can prevent the inertial sliding of objects in the chessboard layout from exceeding the range displayed on the screen, resulting in a large amount of blank area on the screen, which can improve the user's viewing experience.

在一种可能的实现方式中,当用户的手指离开屏幕时,电子设备控制多个对象继续惯性滑动第三距离后,电子设备可以显示第二界面。其中,在惯性滑动结束后,电子设备使能距离屏幕中心位置的对象与屏幕中心位置重叠,用户会感知对象位置跳变,用户体验差。In a possible implementation, when the user's finger leaves the screen, the electronic device controls multiple objects to continue to slide inertially for a third distance, and then the electronic device can display the second interface. After the inertially sliding ends, the electronic device enables the objects at a distance from the center of the screen to overlap with the center of the screen, and the user will feel that the position of the object has jumped, resulting in a poor user experience.

因此本申请实施例中,电子设备确定第三距离后,可以确定距离目标位置最近的第四对象,所述目标位置为距离所述屏幕的中心位置为所述第三距离的位置。电子设备可以获取所述第四对象的中心位置与所述屏幕的中心位置的第四距离。电子设备可以根据所述第四距离,生成惯性滑动动效,且播放所述惯性滑动动效。Therefore, in the embodiment of the present application, after the electronic device determines the third distance, it can determine the fourth object closest to the target position, where the target position is the position that is the third distance away from the center position of the screen. The electronic device can obtain a fourth distance between the center position of the fourth object and the center position of the screen. The electronic device can generate an inertial sliding animation based on the fourth distance and play the inertial sliding animation.

应理解的是,在该实现方式中,当结束滑动操作时的滑动速度小于速度阈值时,电子设备可以不获取第二距离、限制距离,以及确定第三距离,而是直接确定滑动操作结束距离屏幕的中心位置最近的第三对象,显示第三界面,第三界面中第三对象的中心位置和屏幕的中心位置重叠。It should be understood that in this implementation, when the sliding speed when the sliding operation ends is less than the speed threshold, the electronic device may not obtain the second distance, the limit distance, and determine the third distance, but directly determine the third object closest to the center position of the screen when the sliding operation ends, and display the third interface, in which the center position of the third object in the third interface overlaps with the center position of the screen.

在一些实施例中,电子设备可以根据所述第四距离,获取所述惯性滑动动效的时长,以及根据所述屏幕的刷新率,以及所述时长,确定所述惯性滑动动效包括的图像帧数。电子设备可以根据滑动操作结束时每个对象的位置、所述第四距离,以及所述图像帧数,生成所述惯性滑动动效。In some embodiments, the electronic device may obtain the duration of the inertial sliding animation according to the fourth distance, and determine the number of image frames included in the inertial sliding animation according to the refresh rate of the screen and the duration. The electronic device may generate the inertial sliding animation according to the position of each object at the end of the sliding operation, the fourth distance, and the number of image frames.

本申请实施例中,电子设备控制多个对象朝向第一方向滑动第一距离后,可以播放惯性滑动动效,惯性滑动动效中多个对象的位置可以连续变化,不会发生位置突变的问题。In the embodiment of the present application, after the electronic device controls multiple objects to slide a first distance in a first direction, an inertial sliding animation effect can be played, and the positions of the multiple objects in the inertial sliding animation effect can change continuously without the problem of sudden position change.

第二方面,本申请实施例提出一种棋盘布局的对象的显示方法。该方法包括:电子设备显示第一界面,所述第一界面包括棋盘布局的多个对象,所述多个对象中的第一对象的中心位置与所述电子设备的屏幕的中心位置重叠。电子设备响应于滑动对象的操作,控制所述多个对象朝向第一方向滑动第一距离。本申请实施例中,以棋盘布局的多个对象,可以基于用户的滑动操作来滑动。In the second aspect, an embodiment of the present application proposes a method for displaying objects in a chessboard layout. The method includes: an electronic device displays a first interface, the first interface includes multiple objects in a chessboard layout, and the center position of a first object among the multiple objects overlaps with the center position of a screen of the electronic device. In response to an operation of sliding the object, the electronic device controls the multiple objects to slide a first distance in a first direction. In an embodiment of the present application, multiple objects in a chessboard layout can slide based on a user's sliding operation.

当滑动操作结束时,电子设备可以确定距离目标位置最近的第四对象,所述目标位置为距离所述屏幕的中心位置为第三距离的位置,所述第三距离为所述多个对象在滑动操作结束时原应继续滑动的距离。电子设备可以获取所述第四对象的中心位置与所述屏幕的中心位置的第四距离,根据所述第四距离,生成惯性滑动动效,以及播放所述惯性滑动动效。When the sliding operation ends, the electronic device may determine a fourth object that is closest to the target position, where the target position is a position that is a third distance away from the center position of the screen, and the third distance is the distance that the multiple objects should continue to slide when the sliding operation ends. The electronic device may obtain a fourth distance between the center position of the fourth object and the center position of the screen, generate an inertial sliding animation according to the fourth distance, and play the inertial sliding animation.

本申请实施例中,电子设备不仅可以基于用户的滑动操作,控制所述多个对象朝向第一方向滑动第一距离,且在所述多个对象朝向第一方向滑动第一距离后,电子设备可以播放惯性滑动动效,惯性滑动动效中多个对象的位置可以连续变化,不会发生位置突变的问题。In the embodiment of the present application, the electronic device can not only control the multiple objects to slide a first distance toward a first direction based on the user's sliding operation, but also after the multiple objects slide the first distance toward the first direction, the electronic device can play an inertial sliding animation effect, and the positions of the multiple objects in the inertial sliding animation effect can change continuously without the problem of sudden position changes.

在一种可能的实现方式中,当滑动操作结束时,电子设备可以获取滑动操作结束时的滑动速度,其中,电子设备可以根据所述滑动操作结束时的滑动速度,获取所述第二距离,且确定距离所述屏幕的中心位置最近的第三对象,以及根据所述第三对象的中心位置和网格,朝向所述第二方向的反方向,计算限制距离,所述限制距离为所述多个对象在滑动操作结束时原应继续滑动的最大距离。电子设备可以根据所述限制距离,以及所述第二距离,确定第三距离。应理解,第二方向可以理解为滑动操作结束时的滑动方向。In a possible implementation, when the sliding operation ends, the electronic device can obtain the sliding speed at the end of the sliding operation, wherein the electronic device can obtain the second distance according to the sliding speed at the end of the sliding operation, and determine the third object closest to the center position of the screen, and calculate the limit distance in the opposite direction of the second direction according to the center position and grid of the third object, wherein the limit distance is the maximum distance that the multiple objects should continue to slide at the end of the sliding operation. The electronic device can determine the third distance according to the limit distance and the second distance. It should be understood that the second direction can be understood as the sliding direction at the end of the sliding operation.

在一种可能的实现方式中,当所述滑动速度大于或等于速度阈值时,电子设备可以根据所述滑动操作结束时的滑动速度,获取所述第二距离,且确定距离所述屏幕的中心位置最近的第三对象,以及根据所述第三对象的中心位置和网格,朝向所述第二方向的反方向,计算限制距离,所述限制距离为所述多个对象在滑动操作结束时原应继续滑动的最大距离。电子设备可以根据所述限制距离,以及所述第二距离,确定第三距离。应理解,第二方向可以理解为滑动操作结束时的滑动方向。In a possible implementation, when the sliding speed is greater than or equal to the speed threshold, the electronic device can obtain the second distance according to the sliding speed at the end of the sliding operation, and determine the third object closest to the center position of the screen, and calculate the limit distance in the opposite direction of the second direction according to the center position and grid of the third object, and the limit distance is the maximum distance that the multiple objects should continue to slide at the end of the sliding operation. The electronic device can determine the third distance based on the limit distance and the second distance. It should be understood that the second direction can be understood as the sliding direction at the end of the sliding operation.

其中,当所述滑动速度小于速度阈值时,电子设备可以确定距离所述屏幕的中心位置最近的第三对象,且显示第三界面,所述第三界面中所述第三对象的中心位置与所述屏幕的中心位置重叠。Among them, when the sliding speed is less than the speed threshold, the electronic device can determine the third object closest to the center position of the screen and display a third interface, in which the center position of the third object in the third interface overlaps with the center position of the screen.

在该实现方式中,电子设备可以基于结束滑动操作时的滑动速度,确定是生成惯性滑动动效还是直接显示第三界面。其中,当结束滑动操作时的滑动速度较大时,电子设备可以生成惯性滑动动效,惯性滑动动效中对象的位置是逐渐连续变化的,不会发生突变,让用户具有更好的操作感受。其中,当结束滑动操作时的滑动速度较小时,用户几乎不感知对象继续惯性滑动,因此电子设备可以不生成惯性滑动动效,而是直接显示第三界面,使能第三对象的中心位置与屏幕的中心位置重叠,这样可以减少电子设备的工作量。In this implementation, the electronic device can determine whether to generate an inertial sliding effect or directly display the third interface based on the sliding speed when the sliding operation ends. Among them, when the sliding speed when the sliding operation ends is large, the electronic device can generate an inertial sliding effect. The position of the object in the inertial sliding effect changes gradually and continuously without sudden changes, allowing users to have a better operating experience. Among them, when the sliding speed when the sliding operation ends is small, the user hardly perceives that the object continues to slide inertially. Therefore, the electronic device may not generate an inertial sliding effect, but directly display the third interface, so that the center position of the third object overlaps with the center position of the screen, which can reduce the workload of the electronic device.

在一种可能的实现方式中,所述滑动速度包括X轴的速度,以及Y轴的速度,所述第二距离包括所述X轴的距离,以及所述Y轴的距离;所述根据所述滑动操作结束时的滑动速度,获取所述第二距离,包括:根据所述X轴的速度,获取所述X轴的距离;根据所述Y轴的速度,获取所述Y轴的距离。In a possible implementation, the sliding speed includes an X-axis speed and a Y-axis speed, and the second distance includes an X-axis distance and a Y-axis distance; obtaining the second distance according to the sliding speed at the end of the sliding operation includes: obtaining the X-axis distance according to the X-axis speed; and obtaining the Y-axis distance according to the Y-axis speed.

在一种可能的实现方式中,所述根据所述限制距离,以及所述第二距离,确定第三距离,包括:当所述第二距离小于或等于所述限制距离时,将所述第二距离作为所述第三距离;当所述第二距离大于所述限制距离时,将所述限制距离作为所述第三距离。In a possible implementation, determining the third distance based on the limiting distance and the second distance includes: when the second distance is less than or equal to the limiting distance, using the second distance as the third distance; when the second distance is greater than the limiting distance, using the limiting distance as the third distance.

第三方面,本申请实施例提出一种棋盘布局的对象的显示方法。该方法包括:电子设备显示第一界面,所述第一界面包括棋盘布局的多个对象,所述多个对象中的第一对象的中心位置与所述电子设备的屏幕的中心位置重叠;响应于滑动对象的操作,控制所述多个对象朝向第一方向滑动第一距离;当滑动操作结束时,控制所述多个对象朝向第二方向滑动第二距离;显示第二界面,所述第二界面包括棋盘布局的多个对象,所述多个对象中的第二对象的中心位置与所述屏幕的中心位置重叠。In the third aspect, an embodiment of the present application proposes a method for displaying objects in a chessboard layout. The method includes: an electronic device displays a first interface, the first interface includes multiple objects in a chessboard layout, and the center position of a first object among the multiple objects overlaps with the center position of the screen of the electronic device; in response to an operation of sliding an object, the multiple objects are controlled to slide a first distance in a first direction; when the sliding operation ends, the multiple objects are controlled to slide a second distance in a second direction; and a second interface is displayed, the second interface includes multiple objects in a chessboard layout, and the center position of a second object among the multiple objects overlaps with the center position of the screen.

在一种可能的实现方式中,当所述第一方向包括一个方向时,所述第二方向与所述第一方向相同;当所述第一方向包括至少一个方向时,所述第二方向为滑动操作结束时的滑动方向。In a possible implementation, when the first direction includes one direction, the second direction is the same as the first direction; when the first direction includes at least one direction, the second direction is the sliding direction when the sliding operation ends.

在一种可能的实现方式中,所述控制所述多个对象朝向第二方向滑动第二距离之前,还包括:获取滑动操作结束时的滑动速度;当所述滑动速度大于或等于速度阈值时,根据所述滑动操作结束时的滑动速度,获取所述第二距离。In a possible implementation, before controlling the multiple objects to slide a second distance in a second direction, it also includes: obtaining a sliding speed when the sliding operation ends; when the sliding speed is greater than or equal to a speed threshold, obtaining the second distance based on the sliding speed when the sliding operation ends.

在一种可能的实现方式中,所述滑动速度包括X轴的速度,以及Y轴的速度,所述第二距离包括所述X轴的距离,以及所述Y轴的距离;所述根据所述滑动操作结束时的滑动速度,获取所述第二距离,包括:根据所述X轴的速度,获取所述X轴的距离;根据所述Y轴的速度,获取所述Y轴的距离。In a possible implementation, the sliding speed includes an X-axis speed and a Y-axis speed, and the second distance includes an X-axis distance and a Y-axis distance; obtaining the second distance according to the sliding speed at the end of the sliding operation includes: obtaining the X-axis distance according to the X-axis speed; and obtaining the Y-axis distance according to the Y-axis speed.

在一种可能的实现方式中,当滑动操作结束时,所述方法还包括:确定距离所述屏幕的中心位置最近的第三对象;根据所述第三对象的中心位置和网格,朝向所述第二方向的反方向,计算限制距离,所述限制距离为所述多个对象朝向所述第二方向滑动的最大距离。In one possible implementation, when the sliding operation ends, the method also includes: determining a third object that is closest to the center position of the screen; calculating a limiting distance in the opposite direction of the second direction based on the center position and grid of the third object, wherein the limiting distance is the maximum distance that the multiple objects slide toward the second direction.

所述获取所述第二距离之后,还包括:根据所述限制距离,以及所述第二距离,确定第三距离。After acquiring the second distance, the method further includes: determining a third distance according to the limit distance and the second distance.

在一种可能的实现方式中,所述根据所述限制距离,以及所述第二距离,确定第三距离,包括:当所述第二距离小于或等于所述限制距离时,将所述第二距离作为所述第三距离;当所述第二距离大于所述限制距离时,将所述限制距离作为所述第三距离。In a possible implementation, determining the third distance based on the limiting distance and the second distance includes: when the second distance is less than or equal to the limiting distance, using the second distance as the third distance; when the second distance is greater than the limiting distance, using the limiting distance as the third distance.

在一种可能的实现方式中,所述控制所述多个对象朝向第二方向滑动第二距离,包括:控制所述多个对象朝向所述第二方向滑动所述第三距离。In a possible implementation manner, controlling the plurality of objects to slide in a second direction by a second distance includes: controlling the plurality of objects to slide in the second direction by a third distance.

第四方面,本申请实施例提供一种电子设备,电子设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。电子设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。In a fourth aspect, an embodiment of the present application provides an electronic device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

该电子设备包括:包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得电子设备执行如第一方面、第二方面,以及第三方面的方法。The electronic device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the methods of the first aspect, the second aspect, and the third aspect.

第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序。计算机程序被处理器执行时实现如第一方面、第二方面,以及第三方面的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect, the second aspect, and the third aspect is implemented.

第六方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面、第二方面,以及第三方面的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, the computer executes the methods of the first aspect, the second aspect, and the third aspect.

第七方面,本申请实施例提供了一种芯片,芯片包括处理器,处理器用于调用存储器中的计算机程序,以执行如第一方面、第二方面,以及第三方面所述的方法。In a seventh aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the methods described in the first aspect, the second aspect, and the third aspect.

应当理解的是,本申请的第二方面至第七方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1A为电子设备的桌面显示的应用图标的一种布局示意图;FIG1A is a schematic diagram of a layout of application icons displayed on a desktop of an electronic device;

图1B为电子设备的桌面显示的应用图标的另一种布局示意图;FIG. 1B is a schematic diagram of another layout of application icons displayed on the desktop of an electronic device;

图2为电子设备显示棋盘布局的应用图标的一种示意图;FIG. 2 is a schematic diagram of an electronic device displaying application icons in a chessboard layout;

图3为本申请实施例提供的电子设备显示棋盘布局的图片的缩略图的一种示意图;FIG3 is a schematic diagram of a thumbnail of a picture of a chessboard layout displayed by an electronic device according to an embodiment of the present application;

图4为本申请实施例提供的棋盘布局的对象的显示方法的一种实施例的流程示意图;FIG4 is a schematic diagram of a flow chart of an embodiment of a method for displaying objects in a chessboard layout provided in an embodiment of the present application;

图5为本申请实施例提供的电子设备显示棋盘布局的对象的一种示意图;FIG5 is a schematic diagram of an electronic device displaying objects in a chessboard layout according to an embodiment of the present application;

图6为本申请实施例提供的棋盘布局的对象的显示方法的另一种实施例的流程示意图;FIG6 is a schematic flow chart of another embodiment of a method for displaying objects in a chessboard layout provided in an embodiment of the present application;

图7为本申请实施例提供的棋盘布局的对象的显示方法的另一种实施例的流程示意图;FIG7 is a schematic diagram of a flow chart of another embodiment of a method for displaying objects in a chessboard layout provided in an embodiment of the present application;

图8A为本申请实施例提供的获取对象继续滑动的限制距离的一种示意图;FIG8A is a schematic diagram of obtaining a limit distance for continued sliding of an object provided in an embodiment of the present application;

图8B为本申请实施例提供的获取对象继续滑动的限制距离的另一种示意图;FIG8B is another schematic diagram of obtaining a limit distance for continued sliding of an object provided in an embodiment of the present application;

图9为本申请实施例提供的棋盘布局的对象的显示方法的另一种实施例的流程示意图;FIG9 is a schematic flow chart of another embodiment of a method for displaying objects in a chessboard layout provided in an embodiment of the present application;

图10为本申请实施例提供的电子设备显示棋盘布局的对象的一种示意图;FIG10 is a schematic diagram of an electronic device displaying objects in a chessboard layout according to an embodiment of the present application;

图11为本申请实施例提供的电子设备的一种结构示意图;FIG11 is a schematic diagram of a structure of an electronic device provided in an embodiment of the present application;

图12为本申请实施例提供的棋盘布局的对象的显示方法的另一种实施例的流程示意图;FIG12 is a schematic diagram of a flow chart of another embodiment of a method for displaying objects in a chessboard layout provided in an embodiment of the present application;

图13为本申请实施例提供的电子设备的另一种结构示意图。FIG. 13 is another schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了便于清楚描述本申请实施例的技术方案,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.

需要说明的是,本申请实施例中的“在……时”、“当……时”,可以为在某种情况发生的瞬时,也可以为在某种情况发生后的一段时间内,本申请实施例对此不作具体限定。此外,本申请实施例提供的显示界面仅作为示例,显示界面还可以包括更多或更少的内容。It should be noted that the "at..." and "when..." in the embodiments of the present application can be the instant when a certain situation occurs, or can be a period of time after a certain situation occurs, and the embodiments of the present application do not specifically limit this. In addition, the display interface provided in the embodiments of the present application is only an example, and the display interface can also include more or less content.

本申请实施例中的电子设备可以称为用户设备(user equipment,UE)、终端(terminal)等。例如,电子设备可以为具有屏幕的手机、平板电脑(portable androiddevice,PAD)、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备、车载设备或可穿戴设备,虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、智慧家庭(smart home)中的无线终端等。本申请实施例中对电子设备的形态不做具体限定,下述实施例中以电子设备为手表为例进行说明。The electronic device in the embodiments of the present application may be referred to as user equipment (UE), terminal, etc. For example, the electronic device may be a mobile phone with a screen, a portable android device (PAD), a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. In the embodiments of the present application, the form of the electronic device is not specifically limited, and the following embodiments are described by taking the electronic device as a watch as an example.

图1A为电子设备的桌面显示的应用图标的一种布局示意图。应用图标可以包括但不限于系统应用的图标,以及第三方应用的图标。参照图1A,应用图标可以以列表样式排布。用户上下滑动列表,可以触发应用图标滑动,如此用户可以选择对应的应用图标。应理解,图1A以及图1B中以桌面显示应用1的图标、应用2的图标,…,以及应用N的图标为例进行说明。N可以为大于或等于2的整数。FIG1A is a schematic diagram of a layout of application icons displayed on the desktop of an electronic device. Application icons may include, but are not limited to, icons of system applications and icons of third-party applications. Referring to FIG1A , application icons may be arranged in a list style. When a user slides the list up and down, the application icon may be triggered to slide, so that the user may select the corresponding application icon. It should be understood that FIG1A and FIG1B illustrate the example of the desktop displaying the icon of application 1, the icon of application 2, ..., and the icon of application N. N may be an integer greater than or equal to 2.

图1B为电子设备的桌面显示的应用图标的另一种布局示意图。参照图1B中的a和b,应用图标可以以棋盘样式排布。用户可以朝向任意方向滑动应用图标,应用图标可以向相应的方向滑动。参照图1B中的a,棋盘中每行的应用图标可以对齐排布。参照图1B中的b,棋盘中的奇数行的应用图标可以对齐排布,偶数行的桌面图标可以对齐排布。其中,对齐排布可以理解为:每行应用图标中各列应用图标在桌面的纵坐标相同。FIG. 1B is another schematic diagram of the layout of application icons displayed on the desktop of an electronic device. Referring to a and b in FIG. 1B , the application icons can be arranged in a checkerboard style. The user can slide the application icon in any direction, and the application icon can slide in the corresponding direction. Referring to a in FIG. 1B , the application icons in each row of the chessboard can be aligned. Referring to b in FIG. 1B , the application icons in odd-numbered rows of the chessboard can be aligned, and the desktop icons in even-numbered rows can be aligned. Among them, the aligned arrangement can be understood as: the vertical coordinates of the application icons in each column of each row of application icons on the desktop are the same.

本申请实施例不限制棋盘中应用图标的排布方式。示例性的,棋盘中每行的应用图标可以不对齐,或者前m行的应用图标可以对齐排布,后n行的应用图标均对齐排布,m、n均为大于或等于1的整数。The embodiment of the present application does not limit the arrangement of application icons on the chessboard. For example, the application icons in each row on the chessboard may not be aligned, or the application icons in the first m rows may be aligned, and the application icons in the last n rows may be aligned, where m and n are both integers greater than or equal to 1.

同理的,示例性的,例如棋盘中前m列的应用图标可以对齐排布,后n列的应用图标可以对齐排布。在该示例中,对齐排布可以理解为:每列应用图标中各行应用图标在桌面的横坐标相同。Similarly, for example, the first m columns of application icons in the chessboard can be aligned, and the last n columns of application icons can be aligned. In this example, the aligned arrangement can be understood as: the horizontal coordinates of the application icons in each row of each column of application icons on the desktop are the same.

在一些实施例中,棋盘样式还可以称为平铺样式。在一些实施例中,应用图标以棋盘样式排布还可以理解为:应用图标平铺显示在桌面上。In some embodiments, the checkerboard pattern may also be referred to as a tiled pattern. In some embodiments, the arrangement of application icons in a checkerboard pattern may also be understood as: the application icons are tiled and displayed on the desktop.

在一些实施例中,电子设备的桌面以棋盘样式显示应用图标,可以将电子设备的桌面称为棋盘桌面。In some embodiments, the desktop of the electronic device displays application icons in a chessboard style, and the desktop of the electronic device can be called a chessboard desktop.

目前,在用户滑动桌面上棋盘布局的对象时,对象可以朝向用户的滑动方向滑动。参照图2中的a,桌面上显示有棋盘布局的多个应用图标,其中应用图标1可以处于屏幕的中心位置。参照图2中的b,当用户向左滑动应用图标时,该多个应用图标可以向左滑动。当用户的手指离开桌面时,该多个应用图标可以停止滑动。Currently, when a user slides an object arranged in a chessboard on the desktop, the object can slide in the direction of the user's sliding. Referring to a in FIG2 , a plurality of application icons arranged in a chessboard are displayed on the desktop, wherein application icon 1 can be located at the center of the screen. Referring to b in FIG2 , when a user slides an application icon to the left, the plurality of application icons can slide to the left. When the user's finger leaves the desktop, the plurality of application icons can stop sliding.

目前棋盘布局的应用图标可以基于用户的滑动操作而滑动,在用户的手指离开屏幕时,多个应用图标可以停止滑动,目前多个应用图标的显示方式单一,用户体验差。Currently, the application icons in the chessboard layout can slide based on the sliding operation of the user. When the user's finger leaves the screen, the multiple application icons can stop sliding. Currently, the display mode of the multiple application icons is single, and the user experience is poor.

为了丰富棋盘布局的对象的显示方式,提高用户体验,本申请实施例提供一种棋盘布局的对象的显示方法,在该方法中,基于用户滑动棋盘布局的对象的操作,对象除了可以跟随用户的滑动操作滑动之外,还可以在用户手指离开后惯性滑动一段距离,让用户更具有更好的操作感受。另外,在对象停止滑动时,还可以使能距离屏幕的中心位置最近的对象的中心位置与屏幕的中心位置重叠,可以使得对象的布局具有中心对称性,避免造成用户感受对象位置偏离的问题,提高用户体验。In order to enrich the display mode of objects in chessboard layout and improve user experience, the embodiment of the present application provides a method for displaying objects in chessboard layout. In this method, based on the operation of the user sliding the objects in chessboard layout, the objects can not only slide following the user's sliding operation, but also slide a certain distance by inertia after the user's finger leaves, so that the user has a better operation experience. In addition, when the object stops sliding, the center position of the object closest to the center position of the screen can be overlapped with the center position of the screen, so that the layout of the objects can have central symmetry, avoid the problem of the user feeling that the position of the objects is deviated, and improve the user experience.

应理解的是,本申请实施例中,棋盘布局的对象可以包括但不限于桌面显示的应用图标,例如对象还可以为图库应用中棋盘布局的图片的缩略图,社交类应用中棋盘布局的消息等。示例性的,以对象为图库应用中棋盘布局的图片的缩略图为例,图3所示的为图库应用中显示图片的缩略图的界面,在该界面中,图片的缩略图可以以棋盘样式布局。应理解,图3中以电子设备为手机为例,图3中以方框表征图片的缩略图。It should be understood that in the embodiments of the present application, the objects in chessboard layout may include but are not limited to application icons displayed on the desktop, for example, the objects may also be thumbnails of pictures in chessboard layout in a gallery application, messages in chessboard layout in a social application, etc. Exemplarily, taking the thumbnails of pictures in chessboard layout in a gallery application as an example, FIG3 shows an interface for displaying thumbnails of pictures in a gallery application, in which the thumbnails of pictures may be arranged in a chessboard style. It should be understood that FIG3 takes the electronic device as a mobile phone as an example, and the thumbnails of pictures are represented by boxes in FIG3.

下述实施例中的示例性地以棋盘布局的对象为桌面显示的应用图标为例,其他棋盘布局的对象的显示方式可以参照下述实施例中的描述。In the following embodiments, objects in a chessboard layout are exemplified as application icons displayed on the desktop. The display methods of other objects in a chessboard layout may refer to the description in the following embodiments.

下面结合具体的实施例对本申请实施例提供的棋盘布局的对象的显示方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The following is a description of the method for displaying objects in a chessboard layout provided by the embodiments of the present application in conjunction with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

图4为本申请实施例提供的棋盘布局的对象的显示方法的一种实施例的流程示意图。参照图4,本申请实施例提供的棋盘布局的对象的显示方法可以包括:FIG4 is a flow chart of an embodiment of a method for displaying objects in a chessboard layout provided by an embodiment of the present application. Referring to FIG4 , the method for displaying objects in a chessboard layout provided by an embodiment of the present application may include:

S401,显示第一界面,第一界面包括棋盘布局的多个对象,该多个对象中的第一对象的中心位置与屏幕的中心位置重叠。S401, displaying a first interface, the first interface including a plurality of objects arranged in a chessboard, wherein a center position of a first object among the plurality of objects overlaps with a center position of a screen.

示例性的,参照图5中的a,以第一界面为桌面为例,桌面包括棋盘布局的多个应用图标,每个应用图标可以作为一个对象。其中,该多个应用图标可以包括应用1的图标、应用2的图标,…,以及应用N的图标。图5中的a分别以数字1、2,…,以及N分别表征应用图标。其中,该多个应用图标中的应用1的图标的中心位置与屏幕的中心位置重叠,应用1的图标处于屏幕的中心位置。其中,应用1的图标可以作为第一对象。Exemplarily, referring to a in FIG. 5 , taking the first interface as the desktop as an example, the desktop includes multiple application icons in a chessboard layout, and each application icon can be used as an object. Among them, the multiple application icons can include an icon for application 1, an icon for application 2, ..., and an icon for application N. a in FIG. 5 represents the application icons with numbers 1, 2, ..., and N, respectively. Among them, the center position of the icon of application 1 among the multiple application icons overlaps with the center position of the screen, and the icon of application 1 is at the center position of the screen. Among them, the icon of application 1 can be used as the first object.

图5的a中以应用图标为圆形为例说明,应用图标的中心位置可以为圆形的圆心。本申请实施例中不限制对象(如应用图标)的形状,如对象的形状还可以为矩形、正方形、三角形等。In a of Fig. 5, the application icon is a circle as an example, and the center position of the application icon can be the center of the circle. In the embodiment of the present application, the shape of the object (such as the application icon) is not limited, and the shape of the object can also be a rectangle, a square, a triangle, etc.

应理解,桌面上还可以包括其他对象,如壁纸、时间、电量标识等,本申请实施例对此不作限制。It should be understood that the desktop may also include other objects, such as wallpaper, time, power indicator, etc., and the embodiments of the present application do not limit this.

S402,响应于滑动对象的操作,控制多个对象朝向第一方向滑动第一距离。S402: In response to an operation of sliding an object, control a plurality of objects to slide a first distance in a first direction.

因为多个对象以棋盘样式布局,用户可以朝向任意方向滑动对象。Because multiple objects are laid out in a checkerboard pattern, users can slide the objects in any direction.

在一些实施例中,第一方向可以包括至少一个方向,第一距离可以包括每个方向上的距离。示例性的,用户使用手指触摸电子设备的桌面且不松手,先向左滑动对象,再向下滑动对象,其中,第一方向可以包括左边,以及下边。第一距离可以包括向左滑动的距离,以及向下滑动的距离。In some embodiments, the first direction may include at least one direction, and the first distance may include the distance in each direction. For example, the user touches the desktop of the electronic device with a finger and does not release the finger, first slides the object to the left, and then slides the object downward, wherein the first direction may include the left side and the bottom side. The first distance may include the distance of sliding to the left and the distance of sliding downward.

示例性的,参照图5中的b,以用户向左滑动对象为例,电子设备可以根据用户的滑动操作,控制多个应用图标可以向左滑动第一距离。其中,多个应用图标向左滑动第一距离后,应用1的图标偏离屏幕的中心位置。应理解,图5中并未示出第一距离。For example, referring to b in FIG5 , taking the case where a user slides an object to the left as an example, the electronic device can control multiple application icons to slide to the left by a first distance according to the user's sliding operation. After the multiple application icons slide to the left by the first distance, the icon of application 1 deviates from the center position of the screen. It should be understood that the first distance is not shown in FIG5 .

其中,第一距离可以与用户在屏幕上的滑动距离相等。或者,电子设备可以根据用户在屏幕上的滑动距离,以及预设比例,计算得到第一距离。或者,电子设备可以根据用户在屏幕上的滑动距离,以及预设计算方法,计算得到第一距离,本申请实施例对此不作限制。The first distance may be equal to the sliding distance of the user on the screen. Alternatively, the electronic device may calculate the first distance according to the sliding distance of the user on the screen and a preset ratio. Alternatively, the electronic device may calculate the first distance according to the sliding distance of the user on the screen and a preset calculation method, which is not limited in the embodiments of the present application.

S403,当滑动操作结束时,控制多个对象朝向第二方向滑动第二距离。S403: When the sliding operation ends, control the multiple objects to slide a second distance in a second direction.

现有技术中,当用户滑动对象的操作结束时,多个对象可以停止滑动,会给用户造成滑动戛然而止的感受,用户体验差。本申请实施例中,当用户滑动对象的操作结束时,如用户的手指离开屏幕时,电子设备还可以控制多个对象继续朝向第二方向惯性滑动一段距离。In the prior art, when the user finishes sliding the object, the multiple objects can stop sliding, which will give the user a feeling of a sudden stop of sliding, resulting in a poor user experience. In the embodiment of the present application, when the user finishes sliding the object, such as when the user's finger leaves the screen, the electronic device can also control the multiple objects to continue to slide inertially for a distance in the second direction.

在一些实施例中,当第一方向包括一个方向时,第二方向与第一方向相同。示例性的,如图5中的b所示,用户向左滑动对象后,用户的手指离开屏幕,滑动操作结束,第二方向可以为左边。In some embodiments, when the first direction includes one direction, the second direction is the same as the first direction. For example, as shown in b in FIG5 , after the user slides the object to the left, the user's finger leaves the screen, the sliding operation ends, and the second direction may be the left.

在一些实施例中,当第一方向包括至少两个方向时,第二方向可以为第一方向中的最后一个方向。示例性的,用户先向左滑动对象,再向下滑动对象后,用户的手指离开屏幕,第二方向可以为下边。In some embodiments, when the first direction includes at least two directions, the second direction may be the last direction in the first direction. For example, after the user slides the object to the left and then slides the object downward, the user's finger leaves the screen, and the second direction may be downward.

在一些实施例中,第二方向可以看作滑动操作结束时的滑动方向,或者用户的手指离开屏幕时的滑动方向。In some embodiments, the second direction may be regarded as the sliding direction when the sliding operation ends, or the sliding direction when the user's finger leaves the screen.

在一些实施例中,第二距离可以为预设距离。这样,在用户的手指离开屏幕时,电子设备可以控制多个对象继续朝向第二方向滑动预设距离,多个对象有个滑动缓冲,而不是突然停止滑动,能够提高用户体验。In some embodiments, the second distance may be a preset distance. Thus, when the user's finger leaves the screen, the electronic device may control the multiple objects to continue sliding in the second direction by the preset distance, and the multiple objects have a sliding buffer instead of suddenly stopping the sliding, which can improve the user experience.

在一些实施例中,第二距离可以与滑动操作结束时的滑动速度相关,也可以说,第二距离与用户的离手速度相关,离手速度可以理解为用户的手指离开屏幕时的滑动速度。In some embodiments, the second distance may be related to the sliding speed when the sliding operation ends. In other words, the second distance is related to the user's hand-off speed, which may be understood as the sliding speed when the user's finger leaves the screen.

示例性的,以离手速度为例,例如离手速度为V,第二距离可以为nV,n可以为经验值。Exemplarily, taking the hand-off speed as an example, for example, if the hand-off speed is V, the second distance may be nV, and n may be an empirical value.

示例性的,以离手速度为例,电子设备可以获取屏幕坐标系中X轴的离手速度VX,以及Y轴的离手速度VY。相应的,电子设备可以获取X轴的惯性滑动距离DX1,以及Y轴的惯性滑动距离DY1。其中,第二距离可以包括X轴的惯性滑动距离DX1,以及Y轴的惯性滑动距离DY1For example, taking the hand-off speed as an example, the electronic device may obtain the hand-off speed V X of the X axis and the hand-off speed V Y of the Y axis in the screen coordinate system. Accordingly, the electronic device may obtain the inertial sliding distance D X1 of the X axis and the inertial sliding distance D Y1 of the Y axis. The second distance may include the inertial sliding distance D X1 of the X axis and the inertial sliding distance D Y1 of the Y axis.

在一些实施例中,电子设备可以基于如下公式1计算DX1,以及基于如下公式2计算DY1In some embodiments, the electronic device may calculate D X1 based on the following formula 1, and calculate D Y1 based on the following formula 2:

DX1=VX×T×m 公式1D X1 = V X × T × m Formula 1

DY1=VY×T×m 公式2D Y1 = V Y × T × m Formula 2

在一些实施例中,T为电子设备采集触控数据的周期,触控数据可以包括触摸位置、触摸时长等。电子设备可以基于触控数据获取屏幕坐标系中X轴的离手速度VX,以及Y轴的离手速度VY,此处对该计算过程不做赘述,可以参照图11中的相关描述。示例性的,T为0.0167s。In some embodiments, T is a period for the electronic device to collect touch data, and the touch data may include a touch position, a touch duration, etc. The electronic device may obtain the hand-off velocity V X of the X axis and the hand-off velocity V Y of the Y axis in the screen coordinate system based on the touch data. The calculation process is not described in detail here, and the relevant description in FIG. 11 may be referred to. For example, T is 0.0167s.

其中,m可以为惯性因子,是经验值,如m可以为9。Here, m may be an inertia factor, which is an empirical value, such as m may be 9.

示例性的,参照图5中的c,电子设备可以控制多个应用图标向左滑动第一距离后,还可以控制多个应用图标继续向左滑动第二距离。应理解,图5中并未示出第二距离。For example, referring to c in FIG5 , the electronic device can control multiple application icons to slide to the left by a first distance, and can also control multiple application icons to continue to slide to the left by a second distance. It should be understood that the second distance is not shown in FIG5 .

在该实施例中,第二距离可以与滑动操作结束时的滑动速度相关,这样用户滑动对象的速度越快,则多个应用图标惯性滑动的第二距离也越长,这样更为符合用户的操作感受,可以进一步提高用户体验。In this embodiment, the second distance may be related to the sliding speed at the end of the sliding operation, so that the faster the user slides the object, the longer the second distance of the inertial sliding of the multiple application icons will be. This is more in line with the user's operating experience and can further improve the user experience.

S404,显示第二界面,第二界面包括棋盘布局的多个对象,该多个对象中的第二对象的中心位置与屏幕的中心位置重叠。S404, displaying a second interface, where the second interface includes a plurality of objects arranged in a chessboard layout, wherein a center position of a second object among the plurality of objects overlaps with a center position of the screen.

本申请实施例中,电子设备控制多个对象朝向第二方向滑动第二距离后,可以确定距离屏幕的中心位置最近的第二对象,且将第二对象的中心位置与屏幕的中心位置重叠。其中,电子设备可以获取每个对象的中心位置,且计算每个对象的中心位置与屏幕的中心位置的距离,以确定距离屏幕的中心位置最近的第二对象。In the embodiment of the present application, after the electronic device controls multiple objects to slide in a second direction by a second distance, the second object closest to the center position of the screen can be determined, and the center position of the second object overlaps with the center position of the screen. The electronic device can obtain the center position of each object and calculate the distance between the center position of each object and the center position of the screen to determine the second object closest to the center position of the screen.

在一些实施例中,第一对象与第二对象可以相同或不同。In some embodiments, the first object and the second object may be the same or different.

电子设备在确定第二对象后,可以显示第二界面,第二界面包括棋盘布局的多个对象,且该多个对象中的第二对象的中心位置与屏幕的中心位置重叠。示例性的,参照图5中的c,多个应用图标继续向左滑动第二距离后,应用15的图标距离屏幕的中心位置最近,可以将应用15的图标作为第二对象,电子设备可以显示第二界面。参照图5中的d,第二界面中应用15的图标的中心位置与屏幕的中心位置重叠。After determining the second object, the electronic device can display a second interface, which includes multiple objects in a chessboard layout, and the center position of the second object among the multiple objects overlaps with the center position of the screen. Exemplarily, referring to c in FIG5 , after the multiple application icons continue to slide to the left for a second distance, the icon of application 15 is closest to the center position of the screen, and the icon of application 15 can be used as the second object, and the electronic device can display the second interface. Referring to d in FIG5 , the center position of the icon of application 15 in the second interface overlaps with the center position of the screen.

本申请实施例中,电子设备除了基于用户的滑动操作来滑动对象外,电子设备还可以在用户手指离开屏幕后,控制棋盘布局的对象继续惯性滑动一段距离,避免给用户造成滑动戛然而止的感受,让用户具有更好的操作感受,提高用户体验。另外,在对象停止滑动时,还可以使能距离屏幕的中心位置最近的对象的中心位置与屏幕的中心位置重叠,避免造成用户感受对象位置偏离的问题,也能够提高用户体验。In the embodiment of the present application, in addition to sliding objects based on the user's sliding operation, the electronic device can also control the objects in the chessboard layout to continue to slide inertially for a certain distance after the user's finger leaves the screen, so as to avoid the user's feeling of a sudden stop in sliding, so that the user has a better operating experience and improves the user experience. In addition, when the object stops sliding, the center position of the object closest to the center position of the screen can be overlapped with the center position of the screen, so as to avoid the problem of the user feeling that the object position is deviated, which can also improve the user experience.

用户结束滑动操作时的滑动速度有快有慢,上述实施例中介绍了电子设备可以基于结束滑动操作时的滑动速度,确定对象继续惯性滑动的第二距离。在一些实施例中,用户结束滑动操作时的滑动速度较小时,基于该速度确定对象继续惯性滑动的第二距离也较小,即使对象继续惯性滑动第二距离,用户也不能直观感受到对象的继续滑动,因此在一些实施例中,在带给用户更好的操作感受的基础上,为了减少电子设备的工作量,电子设备可以基于结束滑动操作时的滑动速度,确定是否控制对象继续惯性滑动第二距离。The sliding speed when the user ends the sliding operation can be fast or slow. The above embodiments describe that the electronic device can determine the second distance for the object to continue to slide inertially based on the sliding speed when the sliding operation is ended. In some embodiments, when the sliding speed when the user ends the sliding operation is small, the second distance for the object to continue to slide inertially based on the speed is also small. Even if the object continues to slide inertially for the second distance, the user cannot intuitively feel the continued sliding of the object. Therefore, in some embodiments, on the basis of giving the user a better operating experience, in order to reduce the workload of the electronic device, the electronic device can determine whether to control the object to continue to slide inertially for the second distance based on the sliding speed when the sliding operation is ended.

参照图6,本申请实施例提供的棋盘布局的对象的显示方法可以包括:6 , the method for displaying objects in a chessboard layout provided in an embodiment of the present application may include:

S601,显示第一界面,第一界面包括棋盘布局的多个对象,该多个对象中的第一对象的中心位置与屏幕的中心位置重叠。S601, displaying a first interface, the first interface including a plurality of objects arranged in a chessboard, wherein a center position of a first object among the plurality of objects overlaps with a center position of a screen.

S602,响应于滑动对象的操作,控制多个对象朝向第一方向滑动第一距离。S602: In response to an operation of sliding an object, control a plurality of objects to slide a first distance in a first direction.

S601-S602可以参照S401-S402中的描述。S601-S602 may refer to the description in S401-S402.

S603,当滑动操作结束时,基于滑动操作结束时的滑动速度,确定是否控制多个对象继续滑动。若是,执行S604-S605,若否,直接执行S605。S603, when the sliding operation ends, based on the sliding speed at the end of the sliding operation, determine whether to control the multiple objects to continue sliding. If yes, execute S604-S605, if not, directly execute S605.

在一些实施例中,电子设备可以基于滑动操作结束时的滑动速度,比较滑动操作结束时的滑动速度与速度阈值,当滑动操作结束时的滑动速度大于或等于速度阈值时,确定控制多个对象继续滑动,当滑动操作结束时的滑动速度小于速度阈值时,确定不控制多个对象继续滑动。In some embodiments, the electronic device may compare the sliding speed at the end of the sliding operation with a speed threshold based on the sliding speed at the end of the sliding operation, and determine to control multiple objects to continue sliding when the sliding speed at the end of the sliding operation is greater than or equal to the speed threshold, and determine not to control multiple objects to continue sliding when the sliding speed at the end of the sliding operation is less than the speed threshold.

在一些实施例中,速度阈值可以包括X轴的第一速度阈值,以及Y轴的第二速度阈值,滑动操作结束时的滑动速度包括X轴的速度以及Y轴的速度。其中,当X轴的速度大于或等于第一速度阈值,且Y轴的速度大于或等于第二速度阈值时,电子设备可以确定控制多个对象继续滑动。当X轴的速度小于第一速度阈值,或者,Y轴的速度小于第二速度阈值时,电子设备可以确定不控制多个对象继续滑动。In some embodiments, the speed threshold may include a first speed threshold of the X-axis and a second speed threshold of the Y-axis, and the sliding speed at the end of the sliding operation includes the speed of the X-axis and the speed of the Y-axis. When the speed of the X-axis is greater than or equal to the first speed threshold, and the speed of the Y-axis is greater than or equal to the second speed threshold, the electronic device may determine to control the multiple objects to continue sliding. When the speed of the X-axis is less than the first speed threshold, or the speed of the Y-axis is less than the second speed threshold, the electronic device may determine not to control the multiple objects to continue sliding.

在一些实施例中,第一速度阈值和第二速度阈值可以相等或不等。示例性的,第一速度阈值和第二速度阈值可以相等,如第一速度阈值和第二速度阈值均为350px/s。In some embodiments, the first speed threshold and the second speed threshold may be equal or different. For example, the first speed threshold and the second speed threshold may be equal, such as the first speed threshold and the second speed threshold are both 350 px/s.

S604,控制多个对象朝向第二方向滑动第二距离。S604: Control the multiple objects to slide a second distance in a second direction.

S605,显示第二界面,第二界面包括棋盘布局的多个对象,该多个对象中的第二对象的中心位置与屏幕的中心位置重叠。S605, displaying a second interface, where the second interface includes a plurality of objects arranged in a chessboard layout, wherein a center position of a second object among the plurality of objects overlaps with a center position of the screen.

S604-S605可以参照S403-S404中的描述。S604-S605 may refer to the description in S403-S404.

本申请实施例中,电子设备可以基于结束滑动操作时的滑动速度,确定是否控制对象继续惯性滑动第二距离,其中,当结束滑动操作时的滑动速度较大时,电子设备可以基于该速度控制对象继续惯性滑动第二距离,避免给用户造成滑动戛然而止的感受,让用户具有更好的操作感受,提高用户体验。其中,当结束滑动操作时的滑动速度较小时,用户几乎不感知对象继续惯性滑动,因此电子设备可以不控制对象继续惯性滑动,而是直接显示第二界面,使能第二对象的中心位置与屏幕的中心位置重叠,这样可以减少电子设备的工作量。In an embodiment of the present application, the electronic device may determine whether to control the object to continue to slide inertially for a second distance based on the sliding speed when the sliding operation ends, wherein when the sliding speed when the sliding operation ends is large, the electronic device may control the object to continue to slide inertially for a second distance based on the speed, so as to avoid causing the user to feel that the sliding stops abruptly, so that the user has a better operating experience and improves the user experience. Among them, when the sliding speed when the sliding operation ends is small, the user hardly perceives that the object continues to slide inertially, so the electronic device may not control the object to continue to slide inertially, but directly display the second interface, so that the center position of the second object overlaps with the center position of the screen, which can reduce the workload of the electronic device.

上述实施例中介绍了电子设备可以基于结束滑动操作时的滑动速度,确定第二距离,在一些实施例中,为了避免棋盘布局的对象超出屏幕显示的范围,电子设备还可以基于网格,确定对象继续滑动的限制距离,电子设备可以基于第二距离和限制距离,确定对象继续滑动的第三距离。The above embodiments introduce that the electronic device can determine the second distance based on the sliding speed when the sliding operation ends. In some embodiments, in order to prevent the objects in the checkerboard layout from exceeding the range of the screen display, the electronic device can also determine the limit distance for the object to continue sliding based on the grid. The electronic device can determine the third distance for the object to continue sliding based on the second distance and the limit distance.

参照图7,本申请实施例提供的棋盘布局的对象的显示方法可以包括:7 , the method for displaying objects in a chessboard layout provided in an embodiment of the present application may include:

S701,显示第一界面,第一界面包括棋盘布局的多个对象,该多个对象中的第一对象的中心位置与屏幕的中心位置重叠。S701, displaying a first interface, the first interface including a plurality of objects arranged in a chessboard layout, wherein a center position of a first object among the plurality of objects overlaps with a center position of a screen.

S702,响应于滑动对象的操作,控制多个对象朝向第一方向滑动第一距离。S702: In response to an operation of sliding an object, control a plurality of objects to slide a first distance in a first direction.

S703,当滑动操作结束时,基于滑动操作结束时的滑动速度,确定是否控制多个对象继续滑动。若是,执行S704-S708,若否,直接执行S708。S703, when the sliding operation ends, based on the sliding speed at the end of the sliding operation, determine whether to control the multiple objects to continue sliding. If yes, execute S704-S708, if not, directly execute S708.

S704,基于滑动操作结束时的滑动速度,获取第二距离。S704: Acquire a second distance based on the sliding speed when the sliding operation ends.

S701-S703可以参照S601-S603中的描述,S704可以参照S403中的描述。S701-S703 may refer to the description in S601-S603, and S704 may refer to the description in S403.

S705,基于滑动操作结束时的滑动方向,获取对象继续滑动的限制距离。S705: Based on the sliding direction when the sliding operation ends, obtain a limit distance for the object to continue sliding.

在一些实施例中,可以预先在屏幕上设置网格,网格的大小可以小于或者等于屏幕的大小。本申请实施例中,设置网格的目的在于:确定棋盘布局的对象显示的边界,避免对象滑动超出网格的边界。本申请实施例中不限制网格的形状,示例性的,网格可以为圆形或者矩形等。In some embodiments, a grid may be pre-set on the screen, and the size of the grid may be less than or equal to the size of the screen. In the embodiment of the present application, the purpose of setting the grid is to determine the boundary of the object display in the chessboard layout to prevent the object from sliding beyond the boundary of the grid. In the embodiment of the present application, the shape of the grid is not limited. For example, the grid may be circular or rectangular.

本申请实施例中,当滑动操作结束时,电子设备可以确定距离屏幕的中心位置最近的第三对象,即电子设备可以确定用户离手时距离屏幕的中心位置最近的第三对象。其中,电子设备确定距离屏幕的中心位置最近的第三对象的方法,可以参照电子设备确定距离屏幕的中心位置最近的第二对象的相关描述。电子设备确定距离屏幕的中心位置最近的第三对象后,可以基于该第三对象和网格,获取对象继续滑动的限制距离。In an embodiment of the present application, when the sliding operation ends, the electronic device can determine the third object closest to the center of the screen, that is, the electronic device can determine the third object closest to the center of the screen when the user leaves the hand. Among them, the method for the electronic device to determine the third object closest to the center of the screen can refer to the relevant description of the electronic device determining the second object closest to the center of the screen. After the electronic device determines the third object closest to the center of the screen, it can obtain the limit distance for the object to continue sliding based on the third object and the grid.

在一些实施例中,电子设备可以计算第三对象的中心位置与网格的边界的至少一个距离,且将其中最大距离作为对象继续滑动的限制距离。示例性的,以网格为矩形为例,电子设备可以计算第三对象的中心位置与网格的左边界的距离、与网格的右边界的距离、与网格的上边界的距离,以及与网格的下边界的距离,且将其中最大距离作为对象继续滑动的限制距离。In some embodiments, the electronic device may calculate at least one distance between the center position of the third object and the border of the grid, and use the maximum distance as the limit distance for the object to continue sliding. Exemplarily, taking the grid as a rectangle as an example, the electronic device may calculate the distance between the center position of the third object and the left border of the grid, the distance to the right border of the grid, the distance to the upper border of the grid, and the distance to the lower border of the grid, and use the maximum distance as the limit distance for the object to continue sliding.

在一些实施例中,电子设备可以根据第三对象的中心位置,网格,以及滑动操作结束时的滑动方向,获取对象继续滑动的限制距离。示例性的,用户向左滑动对象,对象会向左滑动,当对象继续向左惯性滑动较多距离时,网格的右边会产生大量的空白区域,即对象超出屏幕显示的范围,影响用户的观看体验。本申请实施例中,电子设备可以根据第三对象的中心位置,以及网格,计算朝向滑动操作结束时滑动方向的反方向的限制距离。其中,可以理解为:电子设备可以以第三对象的中心位置为起点,朝向滑动操作结束时滑动方向的反方向划线,线条与网格选在交点,电子设备可以将第三对象的中心位置与该交点之间的距离作为限制距离。在一些实施例中,滑动操作结束时滑动方向可以理解为第二方向,滑动操作结束时滑动方向的反方向可以理解为第二方向的反方向。In some embodiments, the electronic device can obtain the limit distance for the object to continue sliding according to the center position of the third object, the grid, and the sliding direction at the end of the sliding operation. Exemplarily, when the user slides the object to the left, the object will slide to the left. When the object continues to slide to the left by inertia for a long distance, a large amount of blank area will be generated on the right side of the grid, that is, the object exceeds the range of the screen display, affecting the user's viewing experience. In the embodiment of the present application, the electronic device can calculate the limit distance in the opposite direction of the sliding direction at the end of the sliding operation according to the center position of the third object and the grid. Among them, it can be understood that: the electronic device can use the center position of the third object as the starting point, draw a line in the opposite direction of the sliding direction at the end of the sliding operation, and the line and the grid are selected at the intersection. The electronic device can use the distance between the center position of the third object and the intersection as the limit distance. In some embodiments, the sliding direction at the end of the sliding operation can be understood as the second direction, and the opposite direction of the sliding direction at the end of the sliding operation can be understood as the opposite direction of the second direction.

示例性的,图8A中以网格为矩形为例,参照图8A中的a-b,用户向左滑动对象,电子设备可以根据用户的滑动操作,控制多个应用图标可以向左滑动第一距离。当用户的手指离开屏幕时,即电子设备控制多个应用图标继续向左滑动第二距离之前,电子设备可以确定距离屏幕的中心最近的第三对象,例如应用4的图标。参照图8A中的b,电子设备可以根据应用4的图标,计算应用4的图标的中心位置距离网格的右边界的距离d,该距离d可以作为对象继续滑动的限制距离。Exemplarily, in FIG8A, the grid is a rectangle as an example, referring to a-b in FIG8A, when the user slides the object to the left, the electronic device can control multiple application icons to slide to the left by a first distance according to the user's sliding operation. When the user's finger leaves the screen, that is, before the electronic device controls multiple application icons to continue to slide to the left by a second distance, the electronic device can determine the third object closest to the center of the screen, such as the icon of application 4. Referring to b in FIG8A, the electronic device can calculate the distance d from the center position of the icon of application 4 to the right boundary of the grid according to the icon of application 4, and the distance d can be used as the limit distance for the object to continue sliding.

其中,距离d可以看作:基于第三对象的中心位置,以及网格,朝向滑动操作结束时滑动方向的反方向计算的限制距离。其中,滑动操作结束时滑动方向为向左,该反方向为向右,因此电子设备可以将第三对象的中心位置距离网格的右边界的距离d,作为对象继续滑动的限制距离。The distance d can be regarded as: a limit distance calculated based on the center position of the third object and the grid in the opposite direction of the sliding direction when the sliding operation ends. When the sliding operation ends, the sliding direction is to the left and the opposite direction is to the right, so the electronic device can use the distance d between the center position of the third object and the right boundary of the grid as the limit distance for the object to continue sliding.

在一些实施例中,对象继续滑动的限制距离可以包括X轴的限制距离DX2,以及Y轴的限制距离DY2。示例性的,参照图8A中的b,对象继续滑动的限制距离可以包括DX2=d,DY2=0。In some embodiments, the limit distance for the object to continue sliding may include a limit distance D X2 on the X axis and a limit distance D Y2 on the Y axis. For example, referring to b in FIG. 8A , the limit distance for the object to continue sliding may include D X2 =d, D Y2 =0.

示例性的,当用户的手指离开屏幕时滑动方向为左下时,电子设备可以获取第三对象的中心位置距离网格的右边界的距离d1,以及第三对象的中心位置距离网格的上边界的距离d2。其中,对象继续滑动的限制距离可以包括DX2=d1,DY2=d2。For example, when the user's finger leaves the screen and the sliding direction is to the lower left, the electronic device can obtain the distance d1 between the center position of the third object and the right boundary of the grid, and the distance d2 between the center position of the third object and the upper boundary of the grid. The limit distance for the object to continue sliding can include D X2 = d1, D Y2 = d2.

示例性的,图8B中以网格为圆形为例,参照图8B中的a-b,用户向左滑动对象,电子设备可以根据用户的滑动操作,控制多个应用图标可以向左滑动第一距离。当用户的手指离开屏幕时,即电子设备控制多个应用图标继续向左滑动第二距离之前,电子设备可以确定距离屏幕的中心最近的第三对象,例如应用4的图标。参照图8B中的b,电子设备可以根据应用4的图标,计算应用4的图标的中心位置距离网格的右边界的距离d,该距离d可以作为对象继续滑动的限制距离。Exemplarily, in FIG8B , the grid is a circle as an example, referring to a-b in FIG8B , when the user slides the object to the left, the electronic device can control the multiple application icons to slide to the left by a first distance according to the user's sliding operation. When the user's finger leaves the screen, that is, before the electronic device controls the multiple application icons to continue to slide to the left by a second distance, the electronic device can determine the third object closest to the center of the screen, such as the icon of application 4. Referring to b in FIG8B , the electronic device can calculate the distance d from the center position of the icon of application 4 to the right boundary of the grid according to the icon of application 4, and the distance d can be used as the limit distance for the object to continue sliding.

S706,根据第二距离和限制距离,确定对象继续滑动的第三距离。S706: Determine a third distance for the object to continue sliding according to the second distance and the limit distance.

对象继续滑动的限制距离可以看作对象继续惯性滑动的最大距离。电子设备可以根据第二距离和限制距离,确定对象继续滑动的第三距离。其中,当第二距离小于或等于限制距离时,电子设备可以将该第二距离作为第三距离。当第二距离大于限制距离时,电子设备可以将该限制距离作为第三距离。The limit distance for the object to continue sliding can be regarded as the maximum distance for the object to continue sliding by inertia. The electronic device can determine the third distance for the object to continue sliding based on the second distance and the limit distance. When the second distance is less than or equal to the limit distance, the electronic device can use the second distance as the third distance. When the second distance is greater than the limit distance, the electronic device can use the limit distance as the third distance.

在一些实施例中,第三距离可以包括X轴的距离DX3,以及Y轴的距离DY3。例如,DX3=min(DX1,DX2),DY3=min(DY1,DY2)。In some embodiments, the third distance may include an X-axis distance DX3 and a Y-axis distance DX3 . For example, DX3 =min( DX1 , DX2 ), DX3 =min( DY1 , DX2 ).

S707,控制多个对象朝向第二方向滑动第三距离。S707, controlling the multiple objects to slide a third distance in the second direction.

S707可以参照S403中的描述。S707 may refer to the description in S403.

S708,显示第二界面,第二界面包括棋盘布局的多个对象,该多个对象中的第二对象的中心位置与屏幕的中心位置重叠。S708, displaying a second interface, where the second interface includes a plurality of objects arranged in a chessboard layout, wherein a center position of a second object among the plurality of objects overlaps with a center position of the screen.

S708可以参照S404中的描述。S708 may refer to the description in S404.

本申请实施例中,电子设备可以根据滑动操作结束时距离屏幕的中心位置最近的第三对象、滑动操作结束时的滑动方向,以及网格,计算对象继续惯性滑动限制距离。电子设备可以基于第二距离和限制距离,确定对象继续滑动的第三距离,本申请实施例可以避免棋盘布局的对象的惯性滑动超出屏幕显示的范围,在屏幕上产生大量的空白区域,可以提高用户的观看体验。In the embodiment of the present application, the electronic device can calculate the object's continued inertial sliding limit distance based on the third object closest to the center of the screen when the sliding operation ends, the sliding direction when the sliding operation ends, and the grid. The electronic device can determine the third distance for the object to continue sliding based on the second distance and the limit distance. The embodiment of the present application can prevent the inertial sliding of objects in the chessboard layout from exceeding the range displayed on the screen, resulting in a large number of blank areas on the screen, which can improve the user's viewing experience.

上述实施例中,当用户的手指离开屏幕时,电子设备控制多个对象继续惯性滑动第三距离后,电子设备可以显示第二界面。其中,在惯性滑动结束后,电子设备使能距离屏幕中心位置的对象与屏幕中心位置重叠,用户会感知对象位置跳变,用户体验差。示例性的,参照图5中的c和d所示,电子设备显示第二界面后,应用15的图标的中心位置会与屏幕的中心位置重叠,应用15的图标,以及第二界面上的其他应用图标的位置会发生跳变(变化较大)。In the above embodiment, when the user's finger leaves the screen, the electronic device controls multiple objects to continue to slide inertially for a third distance, and then the electronic device can display the second interface. After the inertially sliding ends, the electronic device enables the object at a distance from the center of the screen to overlap with the center of the screen, and the user will perceive the object position jump, resulting in a poor user experience. For example, with reference to c and d in Figure 5, after the electronic device displays the second interface, the center position of the icon of application 15 will overlap with the center position of the screen, and the position of the icon of application 15 and other application icons on the second interface will jump (with large changes).

在一些实施例中,电子设备可以将对象的惯性滑动,以及使能距离屏幕中心位置的对象与屏幕中心位置重叠两个步骤,合并为一个动效过程,让用户感受到对象的位置是连续变化的,不会产生跳变,以提高用户体验。In some embodiments, the electronic device can combine the two steps of inertial sliding of the object and enabling the object at a distance from the center of the screen to overlap with the center of the screen into one animation process, allowing the user to feel that the position of the object changes continuously without jumps, thereby improving the user experience.

参照图9,本申请实施例提供的棋盘布局的对象的显示方法可以包括:9 , the method for displaying objects in a chessboard layout provided in an embodiment of the present application may include:

S901,显示第一界面,第一界面包括棋盘布局的多个对象,该多个对象中的第一对象的中心位置与屏幕的中心位置重叠。S901, displaying a first interface, where the first interface includes a plurality of objects arranged in a chessboard layout, wherein a center position of a first object among the plurality of objects overlaps with a center position of a screen.

S902,响应于滑动对象的操作,控制多个对象朝向第一方向滑动第一距离。S902: In response to an operation of sliding an object, control a plurality of objects to slide a first distance in a first direction.

S903,当滑动操作结束时,基于滑动操作结束时的滑动速度,确定是否控制多个对象继续滑动。若是,执行S904-S910,若否,执行S911。S903, when the sliding operation ends, based on the sliding speed at the end of the sliding operation, determine whether to control the multiple objects to continue sliding. If yes, execute S904-S910, if not, execute S911.

S904,基于滑动操作结束时的滑动速度,获取第二距离。S904: Acquire a second distance based on the sliding speed when the sliding operation ends.

S905,基于滑动操作结束时的滑动方向,获取对象继续滑动的限制距离。S905: Based on the sliding direction when the sliding operation ends, obtain a limit distance for the object to continue sliding.

S906,根据第二距离和限制距离,确定对象继续滑动的第三距离。S906: Determine a third distance for the object to continue sliding according to the second distance and the limit distance.

S901-S906可以参照S701-S706中的描述。S901 - S906 may refer to the description in S701 - S706 .

S907,确定距离目标位置最近的第四对象,目标位置为距离屏幕的中心位置为第三距离的位置。S907 , determining a fourth object closest to the target position, where the target position is a position that is a third distance away from the center position of the screen.

本申请实施例中,电子设备在确定对象继续滑动的第三距离后,并非直接控制多个对象朝向第二方向继续滑动的第三距离,而是基于该第三距离,确定最终与屏幕的中心位置重叠的对象。其中,目标位置为距离屏幕的中心位置为第三距离的位置。示例性的,例如屏幕的中心位置的坐标为(X0,Y0),则距离屏幕的中心位置为第三距离的位置的坐标可以为(X0-DX3,Y0-DY3),目标位置的坐标为(X0-DX3,Y0-DY3)。In an embodiment of the present application, after determining the third distance for the object to continue to slide, the electronic device does not directly control the multiple objects to continue to slide the third distance toward the second direction, but determines the object that eventually overlaps with the center position of the screen based on the third distance. The target position is a position that is a third distance away from the center position of the screen. Exemplarily, for example, if the coordinates of the center position of the screen are (X 0 , Y 0 ), the coordinates of the position that is a third distance away from the center position of the screen may be (X 0 -D X3 , Y 0 -D Y3 ), and the coordinates of the target position are (X 0 -D X3 , Y 0 -D Y3 ).

当滑动操作结束时,电子设备可以确定距离目标位置最近的第四对象。示例性的,电子设备可以获取每个对象的中心位置与目标位置的距离,且将距离最小的对象作为第四对象。电子设备可以将该第四对象作为最终与屏幕的中心重叠的对象。When the sliding operation ends, the electronic device can determine the fourth object closest to the target position. Exemplarily, the electronic device can obtain the distance between the center position of each object and the target position, and use the object with the smallest distance as the fourth object. The electronic device can use the fourth object as the object that finally overlaps with the center of the screen.

S908,获取第四对象与屏幕的中心位置的第四距离。S908: Obtain a fourth distance between the fourth object and the center position of the screen.

在一些实施例中,例如第四对象的坐标为(X1,Y1),电子设备可以根据屏幕的中心位置的坐标为(X0,Y0),以及第四对象的坐标为(X1,Y1),获取第四对象与屏幕的中心位置的第四距离。In some embodiments, for example, the coordinates of the fourth object are ( X1 , Y1 ), and the electronic device may obtain a fourth distance between the fourth object and the center of the screen based on the coordinates of the center of the screen being ( X0 , Y0 ) and the coordinates of the fourth object being ( X1 , Y1 ).

在一些实施例中,第四对象与屏幕的中心位置的第四距离可以包括X轴的距离DX4,以及X轴的距离DY4。例如第四对象的坐标为(X1,Y1),则DX4=X0-X1,DY4=Y0-Y1In some embodiments, the fourth distance between the fourth object and the center of the screen may include an X-axis distance DX4 and an X-axis distance DX4 . For example, if the coordinates of the fourth object are ( X1 , Y1 ), then DX4 = X0 - X1 , DY4 = Y0 - Y1 .

S909,根据第四距离,生成惯性滑动动效。S909, generating an inertial sliding animation effect according to the fourth distance.

在一些实施例中,可以预先设置惯性滑动动效包括的图像帧数,例如惯性滑动动效包括的图像的帧数为预设帧数。其中,电子设备可以根据第四距离,以及预设帧数,生成惯性滑动动效中的每帧图像。In some embodiments, the number of image frames included in the inertial sliding animation effect can be preset, for example, the number of image frames included in the inertial sliding animation effect is a preset number of frames. The electronic device can generate each frame of the inertial sliding animation effect according to the fourth distance and the preset number of frames.

示例性的,预设帧数为n帧,电子设备可以将第四距离平均分成n份,得到相邻两帧图像中相同对象之间的距离,电子设备可以以滑动操作结束时对象的位置为起点,根据相邻两帧图像中相同对象之间的距离,依次绘制n帧图像,得到惯性滑动动效。Exemplarily, the preset number of frames is n frames, and the electronic device can divide the fourth distance into n parts equally to obtain the distance between the same object in two adjacent frames of images. The electronic device can take the position of the object at the end of the sliding operation as the starting point, and draw n frames of images in sequence according to the distance between the same object in two adjacent frames of images to obtain an inertial sliding animation effect.

在一些实施例中,电子设备可以根据第四距离,确定惯性滑动动效的时长。示例性的,惯性滑动动效的时长t=[max(DX4,DY4)]/m。电子设备可以根据电子设备的屏幕刷新率,以及惯性滑动动效的时长t,确定惯性滑动动效包括的图像帧数。示例性的,电子设备的屏幕刷新率为60Hz,即1s可以显示60帧图像,t s可以显示60t帧图像。In some embodiments, the electronic device may determine the duration of the inertial sliding animation according to the fourth distance. Exemplarily, the duration of the inertial sliding animation t=[max(D X4 , D Y4 )]/m. The electronic device may determine the number of image frames included in the inertial sliding animation according to the screen refresh rate of the electronic device and the duration t of the inertial sliding animation. Exemplarily, the screen refresh rate of the electronic device is 60Hz, that is, 1s can display 60 frames of images, and ts can display 60t frames of images.

电子设备可以根据第四距离,以及惯性滑动动效包括的图像帧数,生成惯性滑动动效中的每帧图像。示例性的,惯性滑动动效包括的图像帧数为60t帧,电子设备可以将第四距离平均分成60t份,得到相邻两帧图像中相同对象之间的距离。电子设备可以以滑动操作结束时对象的位置为起点,根据相邻两帧图像中相同对象之间的距离,依次绘制60t帧图像,得到惯性滑动动效。The electronic device can generate each frame of the inertial sliding animation according to the fourth distance and the number of image frames included in the inertial sliding animation. Exemplarily, the number of image frames included in the inertial sliding animation is 60t frames, and the electronic device can divide the fourth distance into 60t parts to obtain the distance between the same object in two adjacent frames. The electronic device can use the position of the object at the end of the sliding operation as the starting point, and draw 60t frames of images in sequence according to the distance between the same object in two adjacent frames to obtain the inertial sliding animation.

在一些实施例中,还可以预先设置惯性滑动动效的最小时长tmin,以避免惯性滑动动效过短的问题。其中,电子设备根据第四距离,确定惯性滑动动效的时长后,当惯性滑动动效的时长t大于或等于tmin时,电子设备可以根据电子设备的屏幕刷新率,以及惯性滑动动效的时长t,确定惯性滑动动效包括的图像帧数,进而电子设备可以根据第四距离,以及惯性滑动动效包括的图像帧数,生成惯性滑动动效中的每帧图像。In some embodiments, the minimum duration tmin of the inertial sliding effect can also be pre-set to avoid the problem of the inertial sliding effect being too short. After the electronic device determines the duration of the inertial sliding effect according to the fourth distance, when the duration t of the inertial sliding effect is greater than or equal to tmin, the electronic device can determine the number of image frames included in the inertial sliding effect according to the screen refresh rate of the electronic device and the duration t of the inertial sliding effect, and then the electronic device can generate each frame of the inertial sliding effect according to the fourth distance and the number of image frames included in the inertial sliding effect.

其中,当惯性滑动动效的时长t小于tmin时,电子设备可以根据电子设备的屏幕刷新率,以及tmin,确定惯性滑动动效包括的图像帧数,进而电子设备可以根据第四距离,以及惯性滑动动效包括的图像帧数,生成惯性滑动动效中的每帧图像。Among them, when the duration t of the inertial sliding animation is less than tmin, the electronic device can determine the number of image frames included in the inertial sliding animation based on the screen refresh rate of the electronic device and tmin, and then the electronic device can generate each frame of the inertial sliding animation based on the fourth distance and the number of image frames included in the inertial sliding animation.

S910,播放惯性滑动动效,其中,惯性滑动动效播放结束后,第四对象的中心位置与屏幕的中心位置重叠。S910, playing the inertial sliding animation effect, wherein after the inertial sliding animation effect is finished playing, the center position of the fourth object overlaps with the center position of the screen.

本申请实施例中,电子设备控制多个对象朝向第一方向滑动第一距离后,可以播放惯性滑动动效,惯性滑动动效中多个对象的位置可以连续变化,不会发生位置突变的问题。其中,因为本申请实施例中,电子设备是基于第四对象以及屏幕的中心位置确定的第四距离,且基于该第四距离生成的惯性滑动动效,因此惯性滑动动效播放结束后,第四对象的中心位置与屏幕的中心位置重叠。In the embodiment of the present application, after the electronic device controls multiple objects to slide a first distance in a first direction, an inertial sliding animation can be played, and the positions of multiple objects in the inertial sliding animation can change continuously without the problem of sudden position changes. In particular, because in the embodiment of the present application, the electronic device determines the fourth distance based on the fourth object and the center position of the screen, and generates the inertial sliding animation based on the fourth distance, after the inertial sliding animation is played, the center position of the fourth object overlaps with the center position of the screen.

示例性的,参照图10中的a和b,用户向左滑动对象,电子设备可以根据用户的滑动操作,控制多个应用图标可以向左滑动第一距离。当用户的手指离开屏幕时,电子设备可以确定距离目标位置最近的对象为应用8的图标,该应用8的图标可以作为第四对象。电子设备可以获取应用8的图标与屏幕的中心位置的第四距离,且基于该第四距离生成惯性滑动动效。应理解,图10中以黑色圆点表征目标位置。Exemplarily, referring to a and b in FIG10 , when a user slides an object to the left, the electronic device can control multiple application icons to slide to the left a first distance according to the user's sliding operation. When the user's finger leaves the screen, the electronic device can determine that the object closest to the target position is the icon of application 8, and the icon of application 8 can be used as the fourth object. The electronic device can obtain the fourth distance between the icon of application 8 and the center position of the screen, and generate an inertial sliding effect based on the fourth distance. It should be understood that the target position is represented by a black dot in FIG10 .

参照图10中的c-e,图10中的c-e展示了惯性滑动动效中包括的三帧图像,因此为例说明电子设备播放惯性滑动动效。参照图10中的f,惯性滑动动效播放结束后,应用8的图标的中心位置与屏幕的中心位置重叠。Referring to Figure 10c-e, Figure 10c-e shows three frames of images included in the inertial sliding animation effect, and thus takes the electronic device as an example to illustrate playing the inertial sliding animation effect. Referring to Figure 10f, after the inertial sliding animation effect is played, the center position of the icon of application 8 overlaps with the center position of the screen.

参照图10所示,当用户执行滑动操作时,棋盘布局的多个对象会随着用户的滑动操作,逐渐朝向滑动方向滑动,且在用户的手指离开屏幕时,电子设备可以播放惯性滑动动效,惯性滑动动效中棋盘布局的多个对象的位置是连续变化的,不会发生位置跳变的问题,可以提高用户体验。As shown in Figure 10, when the user performs a sliding operation, the multiple objects in the checkerboard layout will gradually slide in the sliding direction along with the user's sliding operation, and when the user's finger leaves the screen, the electronic device can play an inertial sliding animation. In the inertial sliding animation, the positions of the multiple objects in the checkerboard layout change continuously, and there will be no problem of position jumps, which can improve the user experience.

S911,显示第三界面,第三界面包括棋盘布局的多个对象,该多个对象中的第三对象的中心位置与屏幕的中心位置重叠。S911, displaying a third interface, where the third interface includes a plurality of objects arranged in a checkerboard pattern, wherein a center position of a third object among the plurality of objects overlaps with a center position of the screen.

本申请实施例中,当滑动操作结束时,当滑动操作结束时的滑动速度小于速度阈值时,可以直接确定距离屏幕的中心位置最近的第三对象,进而使能第三对象的中心位置与屏幕的中心位置重叠。换句话说,当滑动操作结束时,当滑动操作结束时的滑动速度小于速度阈值时,电子设备可以直接进行中心定位,显示第三界面,第三界面包括棋盘布局的多个对象,该多个对象中的第三对象的中心位置与屏幕的中心位置重叠。In the embodiment of the present application, when the sliding operation ends, when the sliding speed at the end of the sliding operation is less than the speed threshold, the third object closest to the center position of the screen can be directly determined, thereby enabling the center position of the third object to overlap with the center position of the screen. In other words, when the sliding operation ends, when the sliding speed at the end of the sliding operation is less than the speed threshold, the electronic device can directly perform center positioning and display a third interface, the third interface including multiple objects in a checkerboard layout, and the center position of the third object among the multiple objects overlaps with the center position of the screen.

本申请实施例中,当用户执行滑动操作时,棋盘布局的多个对象会随着用户的滑动操作,逐渐朝向滑动方向滑动,且在用户的手指离开屏幕时,电子设备可以获取距离目标位置最近的第四对象与屏幕的中心位置的第四距离,且基于该第四距离,生成惯性滑动动效。电子设备可以播放惯性滑动动效,惯性滑动动效中棋盘布局的多个对象的位置是连续变化的,不会发生位置跳变的问题,可以提高用户体验。In the embodiment of the present application, when the user performs a sliding operation, the multiple objects in the chessboard layout will gradually slide in the sliding direction along with the user's sliding operation, and when the user's finger leaves the screen, the electronic device can obtain the fourth distance between the fourth object closest to the target position and the center position of the screen, and generate an inertial sliding animation based on the fourth distance. The electronic device can play the inertial sliding animation, and the positions of the multiple objects in the chessboard layout in the inertial sliding animation are continuously changed, and the problem of position jump will not occur, which can improve the user experience.

在一些实施例中,电子设备的软件系统可以采用分层架构,例如可以为事件驱动架构,微核架构,微服务架构,或云架构。图11为本申请实施例适用的电子设备的一种软件结构框图。分层架构将电子设备的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将电子设备划分为三层,分别为应用程序层(applications)、应用程序框架层(application framework)以及内核层(kernel)。In some embodiments, the software system of the electronic device can adopt a layered architecture, for example, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Figure 11 is a software structure block diagram of an electronic device to which an embodiment of the present application is applicable. The layered architecture divides the software system of the electronic device into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the electronic device can be divided into three layers, namely, the application layer (applications), the application framework layer (application framework) and the kernel layer (kernel).

应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。示例性的,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer may include a series of application packages, and the application layer runs applications by calling the application programming interface (API) provided by the application framework layer. For example, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

在一些实施例中,图11中以应用程序层可以包括应用程序为例进行说明。In some embodiments, FIG. 11 illustrates an example in which the application layer may include an application.

应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides API and programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

在一些实施例中,如图11所示,应用程序框架层可以包括:触控数据处理模块和惯性滑动模块。应理解,图11中展示了本申请实施例涉及到的触控数据处理模块和惯性滑动模块。In some embodiments, as shown in Figure 11, the application framework layer may include: a touch data processing module and an inertial sliding module. It should be understood that Figure 11 shows the touch data processing module and the inertial sliding module involved in the embodiment of the present application.

触控数据处理模块,用于确定用户的滑动操作、用户结束滑动操作,以及基于触控数据确定滑动结束时的滑动速度以及滑动方向。The touch data processing module is used to determine the user's sliding operation, the user's end of the sliding operation, and determine the sliding speed and sliding direction when the sliding ends based on the touch data.

惯性滑动模块,用于基于滑动结束时的滑动速度,获取第二距离,以及获取对象惯性滑动的限制距离,以及第三距离等,具体可以参照图12中的描述。The inertial sliding module is used to obtain the second distance based on the sliding speed at the end of sliding, as well as the limit distance of the inertial sliding of the object and the third distance, etc. For details, please refer to the description in Figure 12.

内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,马达驱动等,本申请实施例对此不做限制。示例性的,本申请实施例中,内核层采用马达驱动以驱动电子设备中的马达(硬件)运动,以产生震动。The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to make the hardware work. The kernel layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, a motor driver, etc., which are not limited in the embodiments of the present application. Exemplarily, in the embodiments of the present application, the kernel layer uses a motor driver to drive the motor (hardware) in the electronic device to move to generate vibration.

在一些实施例中,内核层可以包括触控驱动。触控驱动用于向触控数据处理模块上报触控数据。应理解,图11中展示了本申请实施例涉及到的触控驱动和显示驱动。In some embodiments, the kernel layer may include a touch driver. The touch driver is used to report touch data to the touch data processing module. It should be understood that FIG11 shows the touch driver and display driver involved in the embodiment of the present application.

在一些实施例中,电子设备还可以包括硬件层,硬件层可以包括触控芯片、触摸屏,以及显示屏。In some embodiments, the electronic device may further include a hardware layer, which may include a touch chip, a touch screen, and a display screen.

其中,触控芯片,用于采集触摸屏的触控数据,且上报至触控驱动。Among them, the touch chip is used to collect touch data of the touch screen and report it to the touch driver.

触控数据处理模块,用于周期性地从触控驱动读取触控数据,或者,触控驱动可以周期性地向触控数据处理模块上报触控数据。其中,触控数据处理模块读取触控数据的周期以及触控驱动上报触控数据的周期可以为T。The touch data processing module is used to periodically read touch data from the touch driver, or the touch driver can periodically report touch data to the touch data processing module. The period of the touch data processing module reading touch data and the period of the touch driver reporting touch data can be T.

触控数据处理模块,可以根据每个周期获取的触控驱动,确定用户的触摸操作,例如滑动、双击等。在用户执行滑动对象的操作时,触控数据处理模块可以根据触控数据,获取滑动时长、滑动方向,以及滑动速度等。另外,触控数据处理模块还可以检测到用户开始执行滑动操作,以及结束滑动操作等。本申请实施例对此原理不做赘述,可以参照已有的相关技术。The touch data processing module can determine the user's touch operation, such as sliding, double-clicking, etc., based on the touch drive obtained in each cycle. When the user performs the operation of sliding the object, the touch data processing module can obtain the sliding duration, sliding direction, and sliding speed, etc. according to the touch data. In addition, the touch data processing module can also detect that the user starts to perform a sliding operation, and ends the sliding operation, etc. The embodiment of the present application does not elaborate on this principle, and can refer to the existing related technology.

在图11的基础上,以图9的实施例为例,下面结合图12,说明本申请实施例提供的棋盘布局的对象的显示方法:On the basis of FIG. 11 , taking the embodiment of FIG. 9 as an example, the following describes the method for displaying objects in a chessboard layout provided by the embodiment of the present application in combination with FIG. 12 :

S1201,显示屏显示第一界面,第一界面包括棋盘布局的多个对象,该多个对象中的第一对象的中心位置与屏幕的中心位置重叠。S1201, a display screen displays a first interface, the first interface including a plurality of objects arranged in a chessboard layout, a center position of a first object among the plurality of objects overlaps with a center position of the screen.

S1201可以参照S901中的描述。S1201 may refer to the description in S901.

S1202,根据触控数据,触控数据处理模块确定用户执行滑动对象的操作时,触控数据处理模块向惯性滑动模块发送滑动方向以及滑动距离。S1202: When the touch data processing module determines, based on the touch data, that the user performs a sliding operation on the object, the touch data processing module sends a sliding direction and a sliding distance to the inertial sliding module.

示例性的,如触控数据处理模块可以根据每个周期的触控数据,获取滑动方向以及滑动距离。For example, the touch data processing module may obtain the sliding direction and the sliding distance according to the touch data of each cycle.

S1203,惯性滑动模块根据滑动方向以及滑动距离,控制显示屏显示多个对象朝向第一方向滑动第一距离的画面。S1203: The inertial sliding module controls the display screen to display a picture of multiple objects sliding toward a first direction and a first distance according to the sliding direction and the sliding distance.

示例性的,惯性滑动模块根据滑动方向以及滑动距离,确定多个对象滑动的第一方向和第一距离,惯性滑动模块可以向电子设备中的绘制模块发送多个对象滑动的第一方向和第一距离,以便绘制模块可以绘制多个对象朝向第一方向滑动第一距离的画面,以便显示屏可以显示多个对象朝向第一方向滑动第一距离的画面。Exemplarily, the inertial sliding module determines the first direction and first distance in which the multiple objects slide based on the sliding direction and the sliding distance. The inertial sliding module can send the first direction and first distance in which the multiple objects slide to a drawing module in the electronic device so that the drawing module can draw a picture of the multiple objects sliding the first distance toward the first direction, so that the display screen can display the picture of the multiple objects sliding the first distance toward the first direction.

S1203可以参照S902中的描述。S1203 may refer to the description in S902.

S1204,根据触控数据,触控数据处理模块确定滑动操作结束时,触控数据处理模块根据最后一个周期获取的触控数据,获取滑动操作结束时的滑动方向以及滑动速度。S1204: When the touch data processing module determines that the sliding operation ends according to the touch data, the touch data processing module obtains the sliding direction and sliding speed when the sliding operation ends according to the touch data obtained in the last cycle.

S1205,触控数据处理模块向惯性滑动模块发送滑动操作结束时的滑动方向以及滑动速度。S1205: The touch data processing module sends the sliding direction and sliding speed when the sliding operation ends to the inertial sliding module.

S1206,惯性滑动模块基于滑动操作结束时的滑动速度,确定是否控制多个对象继续滑动。若是,执行S1207-S1213,若否,执行S1214。S1206, the inertial sliding module determines whether to control the multiple objects to continue sliding based on the sliding speed when the sliding operation ends. If yes, execute S1207-S1213, if not, execute S1214.

S1206可以参照S903中的描述。S1206 may refer to the description in S903.

S1207,惯性滑动模块基于滑动操作结束时的滑动速度,获取第二距离。S1207: The inertial sliding module obtains a second distance based on the sliding speed when the sliding operation ends.

S1208,惯性滑动模块基于滑动操作结束时的滑动方向,获取对象继续滑动的限制距离。S1208: The inertial sliding module obtains a limit distance for the object to continue sliding based on the sliding direction when the sliding operation ends.

S1209,惯性滑动模块根据第二距离和限制距离,确定对象继续滑动的第三距离。S1209: The inertial sliding module determines a third distance for the object to continue sliding according to the second distance and the limit distance.

S1210,惯性滑动模块确定距离目标位置最近的第四对象,目标位置为距离屏幕的中心位置为第三距离的位置。S1210: The inertial sliding module determines a fourth object that is closest to a target position, where the target position is a position that is a third distance away from the center position of the screen.

S1211,惯性滑动模块获取第四对象与屏幕的中心位置的第四距离。S1211: The inertial sliding module obtains a fourth distance between a fourth object and the center position of the screen.

S1212,惯性滑动模块根据第四距离,执行动效回调DragThrowAnimatorCallBack,生成惯性滑动动效。S1212: The inertial sliding module executes the animation callback DragThrowAnimatorCallBack according to the fourth distance to generate an inertial sliding animation effect.

S1213,惯性滑动模块控制显示屏播放惯性滑动动效。S1213, the inertial sliding module controls the display screen to play the inertial sliding animation effect.

参照S909中的描述,惯性滑动模块可以获取第四距离,以及惯性滑动动效的时长。在一些实施例中,该第四距离可以作为惯性滑动动效的惯性滚动距离。Referring to the description in S909, the inertial sliding module can obtain the fourth distance and the duration of the inertial sliding animation effect. In some embodiments, the fourth distance can be used as the inertial scrolling distance of the inertial sliding animation effect.

在一些实施例中,惯性滑动模块可以设置惯性滚动距离和惯性滑动动效的时长,注册动效回调函数DragThrowAnimatorCallBack,启动惯性滑动动效。In some embodiments, the inertial sliding module can set the inertial scrolling distance and the duration of the inertial sliding animation, register the animation callback function DragThrowAnimatorCallBack, and start the inertial sliding animation.

在一些实施例中,惯性滑动模块可以每隔T检测一次惯性滑动模块是否达到惯性滑动动效的时长,其中,若已经达到惯性滑动动效的时长,惯性滑动模块控制显示屏停止播放惯性滑动动效。其中,若还未达到惯性滑动动效的时长,惯性滑动模块执行动效回调DragThrowAnimatorCallBack,可以计算下一帧图像中各对象的位置,且移动棋盘布局的多个对象。示例性的,当图像的帧数为n帧时,惯性滑动模块执行动效回调DragThrowAnimatorCallBack,可以确定相邻两帧图像中同一对象之间的距离为第四距离/n,这样可以根据上一帧图像中对象的位置,以及相邻两帧图像中同一对象之间的距离,计算下一帧图像中各对象的位置。In some embodiments, the inertial sliding module can detect whether the inertial sliding module has reached the duration of the inertial sliding animation every T, wherein, if the duration of the inertial sliding animation has been reached, the inertial sliding module controls the display screen to stop playing the inertial sliding animation. Among them, if the duration of the inertial sliding animation has not been reached, the inertial sliding module executes the animation callback DragThrowAnimatorCallBack, which can calculate the position of each object in the next frame image, and move multiple objects in the chessboard layout. Exemplarily, when the number of image frames is n frames, the inertial sliding module executes the animation callback DragThrowAnimatorCallBack, which can determine that the distance between the same object in two adjacent frames of images is the fourth distance/n, so that the position of each object in the next frame of the image can be calculated based on the position of the object in the previous frame of the image and the distance between the same object in two adjacent frames of the image.

S1214,惯性滑动模块控制显示屏显示第三界面,第三界面包括棋盘布局的多个对象,该多个对象中的第三对象的中心位置与屏幕的中心位置重叠。S1214, the inertial sliding module controls the display screen to display a third interface, where the third interface includes a plurality of objects arranged in a chessboard, and a center position of a third object among the plurality of objects overlaps with a center position of the screen.

S1207-S1214可以参照S904-S911中的描述。S1207 - S1214 may refer to the description in S904 - S911 .

应理解,本申请实施例提供的棋盘布局的对象的显示方法与上述实施例具有相同的原理和技术效果,可以参照上述实施例中的描述。It should be understood that the method for displaying objects in a chessboard layout provided in the embodiment of the present application has the same principle and technical effect as the above embodiment, and reference can be made to the description in the above embodiment.

应理解的是,本申请实施例中,终端设备的屏幕可以为触摸屏或不可触摸屏幕。其中,当终端设备的屏幕为触摸屏时,用户可以使用手指、关节、或触控笔等操作屏幕。当终端设备的屏幕为不可触摸屏幕时,用户可以使用终端设备的输入设备操作屏幕,其中,输入设备可以包括但不限于鼠标、键盘等。应理解,上述实施例中以终端设备的屏幕可以为触摸屏,且以用户使用手指操作屏幕为例进行说明。It should be understood that in the embodiments of the present application, the screen of the terminal device may be a touch screen or a non-touch screen. When the screen of the terminal device is a touch screen, the user may use fingers, joints, or a stylus to operate the screen. When the screen of the terminal device is a non-touch screen, the user may use an input device of the terminal device to operate the screen, wherein the input device may include but is not limited to a mouse, a keyboard, etc. It should be understood that in the above embodiments, the screen of the terminal device may be a touch screen, and the user uses a finger to operate the screen as an example for explanation.

在一些实施例中,当用户可以使用手指、关节、或触控笔等操作屏幕时,滑动操作结束可以理解为用户的用手指、关节、或触控笔等离开屏幕。在一些实施例中,当用户使用终端设备的输入设备操作屏幕时,滑动操作结束可以理解为用户暂停操作输入设备。In some embodiments, when the user can operate the screen using fingers, joints, or a stylus, the end of the sliding operation can be understood as the user leaving the screen with the finger, joint, or stylus. In some embodiments, when the user operates the screen using an input device of the terminal device, the end of the sliding operation can be understood as the user pausing to operate the input device.

需要说明的是,本申请所涉及的数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

在一种实施例中,本申请实施例还提供一种电子设备。图13为本申请提供的电子设备的一种结构示意图,如图13所示,该电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriberidentification module,SIM)卡接口195等。可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件,或软件和硬件的组合实现。In one embodiment, the embodiment of the present application also provides an electronic device. Figure 13 is a structural schematic diagram of an electronic device provided by the present application. As shown in Figure 13, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,显示处理单元(displayprocess unit,DPU),和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a display processing unit (displayprocess unit, DPU), and/or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc. Among them, the USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones and play audio through the headphones.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier, etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN),蓝牙,全球导航卫星系统(global navigation satellitesystem,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括GSM,GPRS,CDMA,WCDMA,TD-SCDMA,LTE,GNSS,WLAN,NFC,FM,和/或IR技术等。上述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The above-mentioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等可以实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。The electronic device 100 can realize the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,一个或多个摄像头193,视频编解码器,GPU,一个或多个显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, one or more cameras 193, a video codec, a GPU, one or more display screens 194, and an application processor.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, data files such as music, photos, and videos are stored in the external memory card.

内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flashstorage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备100执行各种功能应用及数据处理。The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running the above instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. In some embodiments, the processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。其中,音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,还可以是美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. For example, music playback, recording, etc. Among them, the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 are arranged in the processor 110. The speaker 170A, also known as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, the voice can be answered by placing the receiver 170B close to the human ear. Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording functions, etc. The headphone jack 170D is used to connect wired headphones. The headphone jack 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

传感器180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。本申请实施例不对每个传感器的功能进行赘述。The sensor 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc. The present embodiment of the application does not elaborate on the function of each sensor.

按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

本申请实施例提供的棋盘布局的对象的显示方法,可以应用在具备通信功能的电子设备中。电子设备包括终端设备,终端设备的具体设备形态等可以参照上述相关说明,此处不再赘述。The display method of the object in the chessboard layout provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

本申请实施例提供一种电子设备,该电子设备包括:包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得终端设备执行上述方法。An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

本申请实施例提供一种芯片。芯片包括处理器,处理器用于调用存储器中的计算机程序,以执行上述实施例中的技术方案。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

本申请实施例还提供了一种计算机可读存储介质。计算机可读存储介质存储有计算机程序。计算机程序被处理器执行时实现上述方法。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compactdisc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(Digital Subscriber Line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(Digital Versatile Disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行上述方法。An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application embodiment is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the present application embodiment. It should be understood that each process and/or box in the flowchart and/or block diagram and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the protection scope of the present invention.

本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。The term "plurality" in this article refers to two or more than two. The term "and/or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character "/" indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims (11)

1. A method for displaying objects in a checkerboard layout, the method comprising:
Displaying a first interface, wherein the first interface comprises a plurality of objects in a chessboard layout, and the central position of a first object in the plurality of objects is overlapped with the central position of a screen of the electronic equipment;
Controlling the plurality of objects to slide a first distance toward a first direction in response to an operation of sliding the objects;
when the sliding operation is finished, controlling the plurality of objects to slide towards a second direction for a second distance;
determining a fourth object closest to a target position, wherein the target position is a position which is a third distance from the central position of the screen, the third distance is determined according to a limiting distance and the second distance, and the limiting distance is the maximum distance of sliding of the plurality of objects towards the second direction;
acquiring a fourth distance between the center position of the fourth object and the center position of the screen;
Generating an inertial sliding motion effect according to the fourth distance;
playing the inertial sliding motion effect;
And displaying a second interface, wherein the second interface comprises a plurality of objects in a chessboard layout, and the center position of a second object in the plurality of objects is overlapped with the center position of the screen.
2. The method of claim 1, wherein when the first direction comprises one direction, the second direction is the same as the first direction;
When the first direction includes at least one direction, the second direction is a sliding direction at the end of a sliding operation.
3. The method of claim 1 or 2, wherein prior to controlling the plurality of objects to slide a second distance toward a second direction, further comprising:
Acquiring a sliding speed at the end of a sliding operation;
and when the sliding speed is greater than or equal to a speed threshold, acquiring the second distance according to the sliding speed at the end of the sliding operation.
4. A method according to claim 3, wherein the sliding speed comprises an X-axis speed and a Y-axis speed, and the second distance comprises a distance of the X-axis and a distance of the Y-axis;
The obtaining the second distance according to the sliding speed at the end of the sliding operation includes:
Acquiring the distance of the X axis according to the speed of the X axis;
and acquiring the distance of the Y axis according to the speed of the Y axis.
5. The method of claim 4, wherein when the sliding operation is finished, the method further comprises:
Determining a third object nearest to the center position of the screen;
Calculating a limiting distance according to the central position of the third object and the grid and towards the opposite direction of the second direction;
After the second distance is acquired, the method further comprises:
and determining a third distance according to the limiting distance and the second distance.
6. The method of claim 5, wherein determining a third distance based on the limiting distance and the second distance comprises:
When the second distance is less than or equal to the limit distance, taking the second distance as the third distance;
and when the second distance is larger than the limiting distance, taking the limiting distance as the third distance.
7. The method of claim 5 or 6, wherein the controlling the plurality of objects to slide a second distance toward a second direction comprises:
controlling the plurality of objects to slide the third distance toward the second direction.
8. The method of claim 5 or 6, wherein displaying the second interface comprises:
And when the sliding speed is smaller than the speed threshold value, displaying a third interface, wherein the center position of the third object in the third interface is overlapped with the center position of the screen.
9. The method of claim 1, wherein generating an inertial sliding motion effect based on the fourth distance comprises:
acquiring the duration of the inertial sliding movement effect according to the fourth distance;
Determining the number of image frames included in the inertial sliding motion effect according to the refreshing rate of the screen and the duration;
And generating the inertial sliding motion effect according to the position of each object at the end of the sliding operation, the fourth distance and the image frame number.
10. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
The processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-9.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions, which when executed, implement the method of any of claims 1-9.
CN202310798469.3A 2023-06-29 2023-06-29 Method for displaying objects in chessboard layout, electronic device and readable storage medium Active CN117032851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310798469.3A CN117032851B (en) 2023-06-29 2023-06-29 Method for displaying objects in chessboard layout, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310798469.3A CN117032851B (en) 2023-06-29 2023-06-29 Method for displaying objects in chessboard layout, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN117032851A CN117032851A (en) 2023-11-10
CN117032851B true CN117032851B (en) 2024-09-24

Family

ID=88601140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310798469.3A Active CN117032851B (en) 2023-06-29 2023-06-29 Method for displaying objects in chessboard layout, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN117032851B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375588A (en) * 2010-08-19 2012-03-14 上海博泰悦臻电子设备制造有限公司 Method and device for controlling device operation through gestures on screen of electronic device
CN107168628A (en) * 2017-04-25 2017-09-15 福建星网视易信息系统有限公司 A kind of screen sliding display methods and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844915B2 (en) * 2007-01-07 2010-11-30 Apple Inc. Application programming interfaces for scrolling operations
JP5381691B2 (en) * 2009-12-25 2014-01-08 アイシン・エィ・ダブリュ株式会社 Map display device, map display method and program
CN105760067B (en) * 2014-12-16 2019-04-12 广州市动景计算机科技有限公司 Touch screen control method by sliding, device and electronic equipment
CN106489127B (en) * 2015-06-19 2020-03-31 华为技术有限公司 Information presentation method, device and equipment
CN106855778A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 The processing method of interface operation, device and intelligent terminal
CN109976609A (en) * 2019-03-18 2019-07-05 努比亚技术有限公司 Slide response method, wearable device and computer readable storage medium
CN111147660B (en) * 2019-12-04 2021-06-15 华为技术有限公司 Operation method and electronic device of a control
CN115421642A (en) * 2021-05-13 2022-12-02 华为技术有限公司 A control sliding method and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375588A (en) * 2010-08-19 2012-03-14 上海博泰悦臻电子设备制造有限公司 Method and device for controlling device operation through gestures on screen of electronic device
CN107168628A (en) * 2017-04-25 2017-09-15 福建星网视易信息系统有限公司 A kind of screen sliding display methods and device

Also Published As

Publication number Publication date
CN117032851A (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN110377250B (en) A touch control method and electronic device in a screen projection scenario
US12001612B2 (en) Air gesture-based interaction method and electronic device
US12299461B2 (en) User interface layout method and electronic device
EP3910457A1 (en) Image rendering method and electronic device
US20220326839A1 (en) Method for displaying application icon and electronic device
US10630629B2 (en) Screen display method, apparatus, terminal, and storage medium
AU2019351406A9 (en) Method for generating screenshot, control method, and electronic device
US11503207B2 (en) Display control method, display control device and computer-readable storage medium
CN113837920B (en) Image rendering method and electronic device
CN112527174A (en) Information processing method and electronic equipment
CN114035721B (en) Touch screen display method, device and storage medium
US20230119849A1 (en) Three-dimensional interface control method and terminal
EP4209878B1 (en) Cursor display method and electronic device
WO2022166713A1 (en) Electronic device and display method for application thereof, and medium
CN114356196B (en) A display method and electronic device
US20250047516A1 (en) Communication System, Presentation Method, Graphical Interface, and Related Apparatus
EP4546268A1 (en) Graphical interface processing method and apparatus
CN117032851B (en) Method for displaying objects in chessboard layout, electronic device and readable storage medium
EP4210307A1 (en) Incoming call prompting method and electronic device
EP3506627A1 (en) Terminal and server for providing video call service
CN117850731B (en) Automatic reading method and device based on terminal equipment
EP4210308A1 (en) Message prompting method and electronic device
CN112463085B (en) Functional integration system and functional integration equipment
CN118900312A (en) Conference interface display method, conference data processing method and electronic device
CN114911438A (en) Task switching system and method thereof, electronic device included, and readable medium

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address