Card display method and electronic equipment

By detecting user operations in electronic devices and dynamically adjusting the inclination angle and position of the cards, the problem of poor user experience in the card stacking state is solved, and better card display effect and user experience are achieved.

CN119211409AActive Publication Date: 2024-12-27HONOR DEVICE CO LTD

Patent Information

Application Number
CN202310757940.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2024-12-27
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

In electronic devices, when multiple cards are in a stacked state, users need to operate frequently to view the information in the cards, resulting in poor card display effect and poor user experience.

Method used

By detecting user operations, responding to sliding and touch operations, dynamically adjusting the tilt angle of the card, so that the position and shape of the card are displayed on the display screen can be changed, realizing the dynamic stacking effect of the card and improving the user experience.

Benefits of technology

It improves the display effect of cards, enables users to efficiently obtain information on multiple cards, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211409A_ABST
    Figure CN119211409A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of terminals, and provides a card display method and electronic equipment, the method comprises the following steps: detecting a first operation on a card display area, a first card being displayed in the card display area, the card display area comprising a plurality of cards; in response to the first operation, a first interface is displayed, partial cards in the multiple cards are displayed in the first interface, and the partial cards comprise the first card and the second card; detecting a second operation on the first interface; in response to the second operation, a second interface is displayed, the second interface comprises a second card, the second card has a first inclination angle, the first inclination angles of the second card at different positions in the first interface are different, and the first inclination angles are used for representing the overturning angle of the second card into the display screen; based on the technical scheme, the first inclination angle of the card displayed in the second display interface is correspondingly changed based on the second operation of the user, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a card display method and electronic device. Background Art

[0002] With the development of electronic devices, in order to facilitate users to quickly obtain application information, widgets are increasingly used in electronic devices; a widget refers to a tiny application view that can be embedded in other applications; a widget can also be called a desktop widget or card. In order to save the display space of the desktop in an electronic device, multiple cards can be displayed in turn in the card display area where the same widget is located, and each card corresponds to a view of an application, thereby forming a card stacking effect.

[0003] When multiple cards are in a stacked state, if the user wants to view the information in a certain card, the user needs to operate the card stack; the electronic device adjusts the stacked card to an expanded state for display in response to the user operation; currently, when multiple cards are in an expanded state, the display effect of the card will not change accordingly with the user's sliding operation, resulting in poor display effect of the card and poor user experience. Summary of the invention

[0004] The present application provides a method and electronic device for displaying a card, which can realize that the tilt angle of the card displayed on the display screen changes with the position of the card, so that the display effect of the card is better and the user experience is improved.

[0005] In a first aspect, a method for displaying a card is provided, comprising:

[0006] A first operation on a card display area is detected, a first card is displayed in the card display area, the card display area includes a plurality of cards, and the first card covers other cards among the plurality of cards except the first card;

[0007] In response to the first operation, a first interface is displayed, wherein some cards of the plurality of cards are displayed in the first interface, and the some cards include the first card and the second card;

[0008] detecting a second operation on the first interface;

[0009] In response to the second operation, a second interface is displayed, wherein the second interface includes the second card, wherein the second card has a first tilt angle, and the first tilt angle is different at different positions of the second card in the first interface, and the first tilt angle is used to characterize the angle at which the second card is flipped into the display screen.

[0010] In an embodiment of the present application, the first interface may refer to an interface in which the card set is in an expanded state; a second operation on the first interface is detected; in response to the second operation, the second interface is displayed, and the first inclination angle of the second card at different positions in the first interface is different; that is, in the scheme of the present application, when displaying a card in the expanded state, when the position of the second card displayed in the second interface changes, the first inclination angle of the second card also changes; the first inclination angle of the card displayed in the second display interface changes accordingly based on the user's second operation, so that the display effect of the card is better and the user experience is improved.

[0011] In one implementation, the electronic device includes an application framework layer, the application framework layer includes an angle manager, the angle manager includes a timer, and the angle manager application manages the tilt angle of the card; one angle manager can be used to manage the tilt angles of multiple cards in a card set. Managing the tilt angles of multiple cards through one angle manager can save the resources of the electronic device to a certain extent.

[0012] In one implementation, the electronic device includes an application framework layer, the application framework layer includes an angle manager, the angle manager includes a timer, and the angle manager application manages the tilt angle of the card; an angle manager can be used to manage the tilt angle of a card in a card set.

[0013] In combination with the first aspect, in some implementations of the first aspect, the first interface includes a first area and a second area, the first area displays the first card, and the second area displays at least two cards of the partial cards.

[0014] In an embodiment of the present application, when a first operation of the card display area is detected (for example, an operation to trigger the expansion of a card in a stacked state), a first interface is displayed in response to the first operation; the first interface includes a first area (for example, a top display area) and a second area (for example, a bottom display area); wherein the first area displays a first card, and the second area displays at least two cards of the partial cards; through the scheme of the embodiment of the present application, a stacked display effect of displaying the bottom display area of ​​the card on the display screen can be achieved, so that the user can efficiently obtain the information of one or more cards; thereby improving the user experience.

[0015] In combination with the first aspect, in some implementations of the first aspect, at least two cards are displayed in the first area and / or the second area of ​​the second interface.

[0016] In an embodiment of the present application, a second interface is displayed, and at least two stacked cards are displayed in the first area and / or the second area of ​​the second interface; through the scheme of the embodiment of the present application, on the one hand, a stacked display effect of displaying the top display area and / or the bottom display area of ​​the card in the display screen can be achieved, so that the user can efficiently obtain the information of one or more cards; in addition, the user can quickly perceive whether there are other cards in the top area or the bottom area of ​​the display screen; on the other hand, when the position of the second card displayed in the second interface changes, the first inclination angle of the second card also changes; so that the card displayed in the second display interface changes accordingly based on the user's second operation, so that the display effect of the card is better; improve the user experience.

[0017] In a possible implementation, if the at least two cards are displayed in the first area and the second area of ​​the second interface, display shapes of the at least two cards displayed in the first area and the at least two cards displayed in the second area are mirror-symmetrical.

[0018] In an embodiment of the present application, if at least two cards are displayed in the first area and the second area of ​​the second interface, the display shapes of the at least two cards displayed in the first area and the at least two cards displayed in the second area are mirror-symmetrical, which is more in line with the user's visual perception.

[0019] In combination with the first aspect, in some implementations of the first aspect, the second operation includes a touch operation and a slide operation, and in response to the second operation, displaying the second interface includes:

[0020] In response to the touch operation, updating a state of a timer and acquiring a first angle coefficient, where the first angle coefficient is related to the state of the timer;

[0021] In response to the sliding operation, acquiring distance information of the sliding operation;

[0022] Obtaining position information of each card in the plurality of cards according to the distance information of the sliding operation, wherein the position information of each card in the plurality of cards includes the position information of the second card;

[0023] Obtaining the first tilt angle according to the first angle coefficient and the position information of the second card;

[0024] The second interface is displayed according to the first tilt angle and the position information of each card in the plurality of cards.

[0025] In an embodiment of the present application, the position information of each card in a plurality of cards can be obtained according to the distance information of the sliding operation; the first tilt angle can be obtained according to the first angle coefficient and the position information of the second card; the second interface can be displayed according to the first tilt angle and the position information of each card in the plurality of cards; the first tilt angle of the second card also changes; and the cards displayed in the second display interface are changed accordingly based on the second operation of the user, so that the display effect of the cards is better and the user experience is improved.

[0026] It should be understood that in the scheme of the present application, when multiple cards in the expanded state in the first interface respond to a sliding operation, the movement speed of the current card is less than the movement speed of the next card after the current card in the order from top to bottom of the display screen; in an embodiment of the present application, the card stacking display effect of the first area and / or the second area in the second interface can be achieved through the sliding coefficient.

[0027] In combination with the first aspect, in some implementations of the first aspect, obtaining a sliding coefficient according to distance information of the sliding operation includes:

[0028] The sliding coefficient is obtained based on the distance information of the sliding operation, the card height information and the first interval information; wherein the card height information is used to represent the height of each card in the multiple cards, and the first interval information is used to represent the interval between two cards that display complete card content information in the first interface.

[0029] In a possible implementation, the sliding coefficient a=[h%(h2+h3)] / (h2+h3); wherein h represents the distance information of the sliding operation; h2 represents the card height information; h3 represents the first interval information; and % represents the modulo operation.

[0030] It should be noted that if a single sliding operation on the first interface is detected, the distance information of the sliding operation is the sliding distance of the single sliding operation; if two sliding operations on the first interface are detected, the distance information of the sliding operation is the total distance of the two sliding operations; if multiple sliding operations on the first interface are detected, the distance of the sliding operation is the total distance of the multiple sliding operations.

[0031] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0032] According to the distance information of the sliding operation and the sliding coefficient, identification information of a second card is obtained, where the second card is a card that displays complete card content information in the first area of ​​the second interface.

[0033] In an embodiment of the present application, the identification information of the second card can be determined based on the distance information and the sliding coefficient of the sliding operation, that is, the card identification of the first fully displayed card in the display screen is determined; the card identifications of other fully displayed cards can be determined based on the card identification of the first fully displayed card in the display screen.

[0034] In combination with the first aspect, in some implementations of the first aspect, obtaining the position information of each card in the multiple cards according to the sliding coefficient includes:

[0035] The position information of the second card is obtained according to the sliding coefficient, the card height information, the first interval information, the second interval information and the first stack quantity information; wherein the second interval information is used to characterize the interval between two cards displaying partial card content information in the first area or the second area; and the first stack quantity information is used to characterize the number of cards in the first area except the second card.

[0036] In one possible implementation, the position information of the second card = K1*h1+(h2+h3)*(1-a); wherein K1 represents the first stack quantity information; h1 represents the second interval information; h2 represents the card height information; h3 represents the first interval information; and a represents the sliding coefficient.

[0037] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0038] According to the position information of the second card, the first interval information, the card height information and the card identification information, the position information of at least one third card is obtained, the third card is used to represent a card that displays complete card content information in addition to the second card in the second interface, the at least one third card includes a target third card, and the target third card is used to represent a card that displays complete card content information in the second area of ​​the second interface;

[0039] The position information of the fourth card is obtained according to the position information of the target third card, the card height information, the card identification information, the second spacing information and the second stack quantity information, wherein the second stack quantity information is used to represent the number of cards other than the target third card in the second area, and the fourth card is used to represent the cards other than the target third card in the second area of ​​the second interface;

[0040] The position information of a fifth card is obtained according to the first stack quantity information, the second interval information and the card identification information, and the fifth card is used to represent the cards other than the second card in the first area of ​​the second interface.

[0041] In one possible implementation, the position information of the third card = (the identification of the third card - the identification of the second card) * (h2 + h3) + the position information of the second card; wherein h2 represents the card height information; h3 represents the first interval information; the position information of the second card == K1 * h1 + (h2 + h3) * (1-a); wherein K1 represents the first stack quantity information; h1 represents the second interval information; a represents the sliding coefficient.

[0042] In one possible implementation, the position information of the fourth card = the position information of the target third card + (h2 + h3) * a + (the identification of the fourth card - the identification of the target third card - a) * K2; wherein K2 represents the second stack quantity information; h2 represents the card height information; h3 represents the first interval information; and a represents the sliding coefficient.

[0043] In a possible implementation, the position information of the fifth card = K1*h1-(the identification of the second card-the identification of the fifth card-1+a)*h1; wherein K1 represents the first stack quantity information; h1 represents the second interval information; and a represents the sliding coefficient.

[0044] In combination with the first aspect, in some implementations of the first aspect, obtaining the first tilt angle according to the first angle coefficient and the position information of the second card includes:

[0045] Obtaining information of a first angle according to the position information of the second card, where the first angle is used to characterize a maximum distortion angle of the second card;

[0046] The first tilt angle is obtained according to information of the first angle coefficient and the first angle.

[0047] In combination with the first aspect, in certain implementations of the first aspect, the first angle and the position information of the second card are in a linear relationship.

[0048] In combination with the first aspect, in certain implementations of the first aspect, an initial value of the first angle coefficient is 0 and a maximum value is 1; after a preset duration of the touch operation is detected, the value of the first angle coefficient is 1.

[0049] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0050] An operation of lifting a finger on the second interface is detected;

[0051] In response to the finger lifting operation, updating the state of the timer and acquiring a second angle coefficient, where the second angle coefficient is related to the state of the timer;

[0052] Obtaining a second tilt angle according to the second angle coefficient and the position information of the second card;

[0053] The third interface is displayed according to the second tilt angle and the position information of each card in the plurality of cards at the current moment.

[0054] In combination with the first aspect, in some implementations of the first aspect, obtaining the second tilt angle according to the second angle coefficient and the position information of the second card includes:

[0055] According to the position information of the second card at the current moment, information of a first angle is obtained, where the first angle is used to represent a maximum distortion angle of the second card;

[0056] The second inclination angle is obtained according to information of the second angle coefficient and the first angle.

[0057] In combination with the first aspect, in certain implementations of the first aspect, the initial value of the second angle coefficient is 1 and the maximum value is 0; after detecting the preset duration of the finger lifting operation, the value of the second angle coefficient is 0.

[0058] In combination with the first aspect, in some implementations of the first aspect, the first card completely covers other cards among the multiple cards except the first card.

[0059] In a second aspect, an electronic device is provided, the electronic device comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute:

[0060] A first operation on a card display area is detected, a first card is displayed in the card display area, the card display area includes a plurality of cards, and the first card covers other cards among the plurality of cards except the first card;

[0061] In response to the first operation, a first interface is displayed, wherein some cards of the plurality of cards are displayed in the first interface, and the some cards include the first card and the second card;

[0062] detecting a second operation on the first interface;

[0063] In response to the second operation, a second interface is displayed, wherein the second interface includes the second card, wherein the second card has a first tilt angle, and the first tilt angle is different at different positions of the second card in the first interface, and the first tilt angle is used to characterize the angle at which the second card is flipped into the display screen.

[0064] In combination with the second aspect, in some implementations of the second aspect, the first interface includes a first area and a second area, the first area displays the first card, and the second area displays at least two cards of the partial cards.

[0065] In combination with the second aspect, in some implementations of the second aspect, at least two cards are displayed in the first area and / or the second area of ​​the second interface.

[0066] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0067] In response to the touch operation, updating a state of a timer and acquiring a first angle coefficient, where the first angle coefficient is related to the state of the timer;

[0068] In response to the sliding operation, acquiring distance information of the sliding operation;

[0069] Obtaining position information of each card in the plurality of cards according to the distance information of the sliding operation, wherein the position information of each card in the plurality of cards includes the position information of the second card;

[0070] Obtaining the first tilt angle according to the first angle coefficient and the position information of the second card;

[0071] The second interface is displayed according to the first tilt angle and the position information of each card in the plurality of cards.

[0072] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0073] Obtaining a sliding coefficient according to the distance information of the sliding operation, wherein the sliding coefficient is used to represent the percentage of a card moving from a current card position to a previous card position of the current card position;

[0074] According to the sliding coefficient, the position information of each card in the plurality of cards is obtained.

[0075] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0076] The sliding coefficient is obtained based on the distance information of the sliding operation, the card height information and the first interval information; wherein the card height information is used to represent the height of each card in the multiple cards, and the first interval information is used to represent the interval between two cards that display complete card content information in the first interface.

[0077] In conjunction with the second aspect, in some implementations of the second aspect, the second card is a card that displays complete card content information in the first area of ​​the second interface, and the one or more processors call the computer instructions to cause the electronic device to execute:

[0078] The identification information of the second card is obtained according to the distance information of the sliding operation and the sliding coefficient.

[0079] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0080] The position information of the second card is obtained according to the sliding coefficient, the card height information, the first interval information, the second interval information and the first stack quantity information; wherein the second interval information is used to characterize the interval between two cards displaying partial card content information in the first area or the second area; and the first stack quantity information is used to characterize the number of cards in the first area except the second card.

[0081] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0082] According to the position information of the second card, the first interval information, the card height information and the card identification information, the position information of at least one third card is obtained, the third card is used to represent a card that displays complete card content information in addition to the second card in the second interface, the at least one third card includes a target third card, and the target third card is used to represent a card that displays complete card content information in the second area of ​​the second interface;

[0083] The position information of the fourth card is obtained according to the position information of the target third card, the card height information, the card identification information, the second spacing information and the second stack quantity information, wherein the second stack quantity information is used to represent the number of cards other than the target third card in the second area, and the fourth card is used to represent the cards other than the target third card in the second area of ​​the second interface;

[0084] The position information of a fifth card is obtained according to the first stack quantity information, the second interval information and the card identification information, and the fifth card is used to represent the cards other than the second card in the first area of ​​the second interface.

[0085] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0086] Obtaining information of a first angle according to the position information of the second card, where the first angle is used to characterize a maximum distortion angle of the second card;

[0087] The first tilt angle is obtained according to information of the first angle coefficient and the first angle.

[0088] In combination with the second aspect, in some implementations of the second aspect, the first angle and the position information of the second card are in a linear relationship.

[0089] In combination with the second aspect, in some implementations of the second aspect, the initial value of the first angle coefficient is 0 and the maximum value is 1; after the preset duration of the touch operation is detected, the value of the first angle coefficient is 1.

[0090] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0091] An operation of lifting a finger on the second interface is detected;

[0092] In response to the finger lifting operation, updating the state of the timer and acquiring a second angle coefficient, where the second angle coefficient is related to the state of the timer;

[0093] Obtaining a second tilt angle according to the second angle coefficient and the position information of the second card;

[0094] The third interface is displayed according to the second tilt angle and the position information of each card in the plurality of cards at the current moment.

[0095] In conjunction with the second aspect, in some implementations of the second aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0096] According to the position information of the second card at the current moment, information of a first angle is obtained, where the first angle is used to represent a maximum distortion angle of the second card;

[0097] The second inclination angle is obtained according to information of the second angle coefficient and the first angle.

[0098] In combination with the second aspect, in certain implementations of the second aspect, the initial value of the second angle coefficient is 1 and the maximum value is 0; after detecting the preset duration of the finger lifting operation, the value of the second angle coefficient is 0.

[0099] In combination with the second aspect, in some implementations of the second aspect, the first card completely covers the other cards among the multiple cards except the first card.

[0100] It should be understood that the expansion, limitation, explanation and description of the relevant contents in the above-mentioned first aspect also apply to the same contents in the second aspect.

[0101] In a third aspect, an electronic device is provided, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute any one of the methods for displaying a card in the first aspect.

[0102] In a fourth aspect, a chip system is provided. The chip system is applied to an electronic device. The chip system includes one or more processors. The processor is used to call computer instructions so that the electronic device executes any one of the card display methods in the first aspect.

[0103] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes any one of the card display methods in the first aspect.

[0104] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by an electronic device, the electronic device executes any one of the methods for displaying a card in the first aspect.

[0105] In an embodiment of the present application, the first interface may refer to an interface in which the card set is in an expanded state; a second operation on the first interface is detected; in response to the second operation, the second interface is displayed, and the first inclination angle of the second card at different positions in the first interface is different; that is, in the scheme of the present application, when displaying a card in the expanded state, when the position of the second card displayed in the second interface changes, the first inclination angle of the second card also changes; the first inclination angle of the card displayed in the second display interface changes accordingly based on the user's second operation, so that the display effect of the card is better and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0106] Figure 1 is a schematic diagram of an existing display card provided in an embodiment of the present application;

[0107] Figure 2 is a schematic diagram of another existing display card provided in an embodiment of the present application;

[0108] Figure 3 is a schematic diagram of a display card provided in an embodiment of the present application;

[0109] Figure 4 is a schematic diagram of another display card provided in an embodiment of the present application;

[0110] Figure 5 is a schematic diagram of another display card provided in an embodiment of the present application;

[0111] Figure 6 is a schematic diagram of another display card provided in an embodiment of the present application;

[0112] Figure 7 is a schematic diagram of a software system of an electronic device provided in an embodiment of the present application;

[0113] Figure 8 is a schematic diagram of a method for displaying a card provided in an embodiment of the present application;

[0114] Fig. 9 is a schematic diagram of a card spacing distance provided in an embodiment of the present application;

[0115] Fig.10 is a schematic diagram of a method for displaying a card provided in an embodiment of the present application;

[0116] Fig.11 is a schematic diagram of an electronic device suitable for use in the present application;

[0117] Fig.12 The present invention is a schematic diagram of the hardware structure of an electronic device suitable for the present application. DETAILED DESCRIPTION

[0118] In the embodiments of the present application, the following terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present embodiment, unless otherwise specified, "plurality" means two or more.

[0119] At present, in order to facilitate users to use various applications and to increase the richness of mobile phone displays when using mobile phones, multiple cards of applications can usually be displayed on the desktop of electronic devices. For example, after the application is installed in the electronic device, the application can be registered with the widget manager (also called the card manager) of the mobile phone to generate a card corresponding to the application. If the user's operation of adding a card to the desktop of the electronic device is detected, the electronic device responds to the operation of adding the card, obtains the information of the application and displays the card on the desktop.

[0120] For example, Figure 1 As shown in (a), in order to save desktop space, the user can display multiple cards of the same size in the same card display area 101; the card display area 101 displays cards in a stacked state; wherein the cards in a stacked state include weather cards, recommendation cards, clock cards and schedule cards; in the case of multiple cards being stacked and displayed, if the user wants to view a certain card among the multiple cards, it is necessary to search through the multiple cards until the card is displayed in the electronic device; multiple cards are stacked and displayed on the desktop of the electronic device, and the display order of the multiple cards in the card display area 101 is weather card, recommendation card, clock card and schedule card, the weather card is currently displayed at the top, and the electronic device detects that a downward sliding operation is performed on the weather card, such as Figure 1 In response to the downward sliding operation, the electronic device displays the weather card at the bottom of the multiple cards and displays the next card in the display order, that is, displays the recommended card, such as Figure 1 As shown in (c) in ; if the recommended card is not the card the user wants to view, the user needs to continue to slide down on the recommended card, such as Figure 1 In response to the downward sliding operation of the recommended card, the electronic device displays the recommended card at the bottom of the multiple cards and displays the next card in the display order, that is, the clock card, as shown in (d) in FIG. Figure 2 As shown in (a) in FIG. 1 ; if the clock card is still not the card that the user needs to view, the user continues to slide down on the clock card, such as Figure 2 In response to the downward sliding operation of the clock card, the electronic device displays the clock at the bottom of the multiple cards and displays the next card in the display order, that is, the schedule card, such as Figure 2 As shown in (c) in .

[0121] From the above description, it can be seen that currently, if multiple cards are stacked and displayed on the desktop of an electronic device, when a user wants to view a certain card, he needs to continuously turn pages among the stacked cards until the card is found; the above process is cumbersome and results in a poor user experience.

[0122] In view of this, the embodiment of the present application provides a method and electronic device for displaying cards; in the scheme of the present application, a first operation on a card display area is detected, a first card is displayed in the card display area, the card display area includes multiple cards, and the first card covers the other cards of the multiple cards except the first card; in response to the first operation, a first interface is displayed, and some cards of the multiple cards are displayed in the first interface, and the some cards include the first card and the second card; a second operation on the first interface is detected; in response to the second operation, a second interface is displayed, and the second interface includes a second card, and the second card has a first tilt angle, and the first tilt angle of the second card is different at different positions in the first interface, and the first tilt angle is used to characterize the angle at which the second card flips into the display screen. Through the scheme of the present application, when displaying a card in a card set in an expanded state, when the position of the second card displayed in the second interface changes, the first tilt angle of the second card also changes; so that the first tilt angle of the card displayed in the second display interface changes accordingly based on the second operation of the user, so that the display effect of the card is better and the user experience is improved.

[0123] Before explaining the card display provided in the embodiment of the present application in detail, the electronic device involved in the embodiment of the present application is first described.

[0124] The method provided in the embodiment of the present application can be executed by an electronic device, and a plurality of cards running in the main process of the desktop are displayed on the desktop of the electronic device, and the plurality of cards can be displayed in a stacked manner. As an example and not a limitation, the electronic device can be, but is not limited to, a mobile sports camera (GoPro), a digital camera, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, a mobile phone, a door lock, a smart appliance, etc., and the embodiment of the present application does not limit this. Optionally, the hardware structure diagram of the electronic device can be found in the subsequent Fig.12 Related description.

[0125] Combine the following Figures 3 to 10 The method for displaying a card provided in an embodiment of the present application is described in detail.

[0126] In an embodiment of the present application, for multiple cards in a card set, the angle information of multiple cards can be calculated by an angle manager; the resources of the electronic device can be saved to a certain extent; exemplarily, through the scheme of the present application, when multiple cards in a card set are expanded and displayed in an electronic device, an animation effect of the cards being stacked at the top and bottom of the display screen can be achieved; in addition, the cards in the card set can also produce distortion of the card angle in the process of being displayed from a stacked state to an expanded state; for example, when the electronic device detects a click operation, that is, at 0ms, the card is in a 2D state (that is, the angle of the card has not changed); within the preset duration of the click operation, the card changes from a 2D state to a 3D state; it can be understood that the card produces a distortion angle during the display process; when the click operation exceeds the preset duration, the card is completely distorted into a 3D state.

[0127] It can be the display interface of the negative one screen of the electronic device; the display interface of the negative one screen includes the card 102, the hot search recommendation information and the video recommendation information, such as Figure 3 As shown in (a) of FIG. 1 ; a plurality of stacked cards may be displayed in the card display area where the card 102 is located, and the electronic device detects a trigger operation on the card 102 or the card display area where the card 102 is located, triggering the display of the plurality of stacked displayed cards as an expanded state; the trigger operation may be an operation of sliding the card 102 upward, such as Figure 3 As shown in (b) in FIG. 1 ; after the electronic device detects the trigger operation, the electronic device can display multiple cards in an expanded state, such as Figure 3 As shown in (c) in FIG. 1 , the electronic device detects an upward sliding operation on the expanded multiple cards, such as Figure 3 As shown in (d) in the figure; after the electronic device detects the sliding operation, in response to the user's upward sliding operation, the animation effect of multiple cards is displayed; for example, when the upward sliding operation is detected, the first completely visible card displayed at the top of the display screen is card 1 (for example, a weather card), and in response to the upward sliding operation, weather card 1 moves to the top of the display screen, and the first completely visible card displayed at the top of the display screen is card 2 (for example, a note card); card 1 is stacked at the bottom of card 2; in addition, the last card displayed at the bottom of the display screen is card 3 (for example, a file and notification card); card 4 (for example, a to-do card) is stacked at the bottom of card 3, as ... Figure 4 As shown in (a) of FIG. 1 , the user's upward sliding operation is detected, such as Figure 4 As shown in (b) in FIG. 1 ; in response to the upward sliding operation, the first fully visible card displayed at the top of the display screen is card 5 (e.g., a daily tips recommendation card); card 2 is stacked at the bottom of card 4; in addition, the last card displayed at the bottom of the display screen is card 4, as shown in FIG. Figure 4As shown in (c) in the figure; when the first fully visible card displayed at the top of the display screen is a daily tips recommendation card, a downward sliding operation of the user from the top of the display screen is detected, as shown in Figure 4 As shown in (d) in the figure; in response to the downward sliding operation, the multiple cards in the expanded state are displayed in a stacked state, and the first card in the multiple cards in the stacked state is the first fully visible card displayed at the top of the display screen, as shown in FIG. Figure 5 shown.

[0128] It should be understood that Figure 3 and Figure 4 In the figure, an upward sliding operation is used as an example to illustrate the operation of triggering the card set to change from a folded state to an expanded state; the triggering operation can also be a long press operation, or other operations, which is not limited in any way in the embodiments of the present application.

[0129] In an embodiment of the present application, when a plurality of cards in an expanded state are displayed on a display screen of an electronic device, a stacked card effect may be displayed at the top of the display screen, such as Figure 4 The card 31 and the card 32 shown in (a) in FIG. 1 can be stacked at the bottom of the display screen, such as Figure 4 The card 35 and the card 36 shown in (a) in the figure; in addition, the cards have a distortion angle.

[0130] The method for displaying cards provided in the embodiment of the present application can, on the one hand, avoid users from frequently turning pages among multiple stacked cards, and the operation is simple; it can display the information of multiple cards on the display screen at the same time, thereby improving the user experience; on the other hand, when displaying multiple cards, the cards may produce distortion angles; in the embodiment of the present application, an angle manager can be used to manage the angle information of multiple cards in the card set, which can save the resources of the electronic device to a certain extent.

[0131] For example, in an embodiment of the present application, the card positions of multiple cards in an expanded state displayed on a display screen may be adjusted; Figure 6 As shown in (a) of FIG. 1 , in the order from top to bottom of the display screen, the display screen sequentially displays card 32, card 33, card 34 and card 35; wherein, the bottom of card 32 displays card 31, and the bottom of card 35 displays card 36; upon detecting the user's click and move operation on card 34, card 34 is gradually moved to the top of card 33, as shown in FIG. Figure 6 (b) and Figure 6 In response to the user's click and move operation, the position of the card 34 displayed on the display screen is above the position of the card 33, combined with Figure 6 (a) and Figure 6(d) in the figure can be regarded as adjusting the positions of card 34 and card 33 in response to the user's click and move operation.

[0132] Optionally, in one implementation, Figure 6 (a) to Figure 6 The card 33 and the card 34 shown in (d) may also have a distortion angle, that is, the card 33 and the card 34 may also be non-rectangular; this application does not impose any limitation on this.

[0133] Figure 7 It is a schematic diagram of a software system of another electronic device provided in an embodiment of the present application.

[0134] like Figure 7 As shown, the electronic device adopts a layered software system, which is divided 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 software system can be divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android Runtime) and the system library, and the kernel layer.

[0135] Exemplarily, the application layer may include applications in the electronic device; for example, the applications include but are not limited to: camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0136] Exemplarily, the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer may include some predefined functions.

[0137] In one example, in an embodiment of the present application, the application framework layer includes: a card set control manager, a navigation point control manager, a View architecture module, and an animation effect architecture management module, etc.; wherein the card set control manager is used to manage the relevant controls of the card set; the navigation point control manager is used to manage the navigation point controls; the View architecture module is used to draw the animation effects of the cards in the card set; the animation effect architecture management module is used to control the View architecture module to draw the animation effects of the cards in the card set; wherein the animation effects of the cards in the card set include but are not limited to: card movement, card size scaling, card transparency change, and card angle change, etc.; the card set control manager includes: an angle manager, a layout manager, a data adapter, a state change animation manager, and a state manager; wherein the angle manager is used to calculate the angle information of the cards in the card set; the angle manager includes a timer; the layout manager is used to manage the position and size of the cards in the card set; the data adapter is used to manage and transmit the identification of the cards in the card set, the content information of the cards, and the sorting of the cards; the state change animation manager is used to manage the transition state animation of the cards in the card set; the state manager is used to manage the state of the card set; wherein the state of the card set includes a stacked state, a transition state, and an expanded state.

[0138] Optionally, a position information interface is provided in the View framework module, and the position information of the card is transmitted through the position information interface.

[0139] Exemplarily, the system layer includes a surface manager, a media library, a 3D graphics processing library (e.g., an open graphics library for embedded systems), and a 2D graphics engine, etc.; wherein the surface manager is used to manage the display subsystem and provides the fusion of 2D layers and 3D layers for multiple applications; the media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive multi-rate (AMR), joint photographic experts group (JPG) and portable network graphics (PNG), etc.; the 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, synthesis and layer processing; the 2D graphics engine is a drawing engine for 2D drawing.

[0140] Exemplarily, the kernel layer is a layer between hardware and software. The kernel layer may include driver modules such as display driver, camera driver, audio driver, and sensor driver.

[0141] Optionally, Figure 7 The connection relationship between the layers shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the software architecture layers of the electronic device.

[0142] Exemplarily, the method for displaying cards provided in the embodiments of the present application can be implemented through the communication between various managers or modules in the application architecture layer; for example, after the application layer detects the user's operation, it can send card-related information to the card set control manager in the application architecture layer; for example, the application layer can send card identification, the order of card identification and the content information of the card to the data adapter in the card set control manager; the application layer can send the card size and the number of cards to the layout manager in the card set control manager; the data adapter can send the card identification, the order of card identification and the content information of the card to the layout manager; the layout manager can send the card identification and the position information of the card to the angle manager.

[0143] Optionally, the data interaction process between various managers or data adapters in the card set control manager can be found in the following Figure 8 Related description.

[0144] Optionally, the data interaction process between various managers or data adapters in the card set control manager can be found in the following Figure 8 Related description.

[0145] Combine the following Figure 8 The method for implementing the display card of the present application and the data flow interaction between various managers or modules in the application architecture layer of the electronic device are described in detail. Figure 8 As shown, the method includes steps S401 to S423; steps S401 to S423 are described in detail below.

[0146] S401: The application layer detects a first operation on a card set.

[0147] Exemplarily, a stacked card set is displayed in an electronic device, and the electronic device detects a first operation on the stacked card set; wherein the first operation is an operation that triggers the card set to change from a folded state to an unfolded state; the first operation may be an upward sliding operation, or the first operation may be a long press operation, or the first operation may be other operations.

[0148] In one implementation, when a user expects to view one or several cards in a stacked card set, the electronic device will first detect a first operation on the card set. In response to the first operation, the card set is adjusted from a stacked state to a transitional state, and multiple cards can be displayed on the display screen; if the user expects to flip through the information in multiple cards, the electronic device can detect the user's click operation on the display screen and the sliding operation on the display screen; if the user stops flipping through the information of multiple cards on the display screen, the electronic device can detect the operation of lifting the finger.

[0149] S402: In response to the first operation, the application layer sends the card identifiers in the card set, the order of the card identifiers, and the content information of the cards to the data adapter.

[0150] Among them, the card identifier is used to identify different cards in the card set; the order of the card identifiers is used to represent the display order of multiple cards in the card set; the content information of the card includes the text information or image information in the card.

[0151] For example, Figure 3 The card display area shown in (a) displays a card set, which includes a weather card, a note card, a daily skill card, a courier reminder card, a download information card and a to-do card; the weather card, the note card, the daily skill card, the courier reminder card, the download information card and the to-do card can be identified by different serial numbers; for example, serial number 1 identifies a weather card, serial number 2 identifies a note card, serial number 3 identifies a daily skill card, serial number 4 identifies a courier reminder card, serial number 5 identifies a download information card, and serial number 6 identifies a to-do card.

[0152] It should be noted that the above example uses identification of cards by serial numbers, and the present application does not impose any limitation on the implementation method of marking different cards in a card set.

[0153] For example, Figure 3 The weather card shown in (a) includes the current temperature "30℃", "maximum 31℃", "minimum 23℃", "clear", "30℃ at 12:00", "28℃ at 13:00", "27℃ at 14:00", "26℃ at 15:00", "21℃ at 16:00", "20℃ at 17:00" and other information.

[0154] For example, Figure 3 The note cards shown in (c) include information such as “UX design itself has a wide range” and “Qualities a UX designer needs to possess”.

[0155] Optionally, in one implementation, the application layer can send a message to the data adapter to represent the card identifier and the order of the card identifiers; for example, the application layer can send a continuous or non-continuous serial number to the data adapter, and can represent the card identifier and the order of the card identifier through a continuous or non-continuous serial number; for example, on the one hand, different cards in a card set can be marked by different continuous or non-continuous serial numbers; on the other hand, the display order of multiple cards can be obtained by the numerical size of the continuous or non-continuous serial numbers; for example, the display order of multiple cards can be obtained according to the order of the continuous or non-continuous serial numbers from small to large; or, the display order of multiple cards can be obtained according to the order of the continuous or non-continuous serial numbers from large to small.

[0156] Optionally, the application layer can Figure 2 The card set control manager shown sends the card identifiers, the order of the card identifiers and the content information of the cards in the card set to the data adapter.

[0157] For example, the application layer sends the card identifiers, the order of the card identifiers and the content information of the cards in the card set to the card set control manager; the card set control manager sends the card identifiers, the order of the card identifiers and the content information of the cards in the card set to the data adapter.

[0158] S403: In response to the first operation, the application layer sends the card size and the number of cards to the layout manager.

[0159] The card size information is used to represent the size of the cards in the card set; the number of cards is used to represent the maximum number of cards allowed to be displayed in a display interface of the electronic device; for example, Figure 4 As shown in (a) in the figure, the maximum number of cards allowed to be displayed in the display interface is 4.

[0160] Optionally, the card sizes of multiple cards in the card set may be the same.

[0161] Optionally, the application layer can Figure 7 The card set control manager shown sends the card size and number of cards to the layout manager.

[0162] For example, the application layer sends the card size and the number of cards to the card set control manager; the card set control manager sends the card size and the number of cards to the layout manager.

[0163] Optionally, S402 may be executed first, and then S403; or, S403 may be executed first, and then S402; or, S402 and S403 may be executed simultaneously, and this application does not impose any limitation on this.

[0164] S404: The data adapter sends the card identifiers in the card set, the order of the card identifiers, and the content information of the cards to the layout manager.

[0165] Exemplarily, the card identifiers, the order of the card identifiers and the content information of the cards can refer to the relevant description in S402, which will not be repeated here.

[0166] S405: The application layer detects a touch operation.

[0167] Exemplarily, the above touch operation may be a click operation on the display screen.

[0168] Alternatively, if Figure 7 As shown, if the application layer detects a touch operation, the application layer can send information to the card set control manager in the application framework layer, and the card set control manager sends information to the angle manager; the instruction is used to represent the detection of a user's touch operation on the display screen (or, the detection of a user's touch event), and the angle manager is triggered to update the timer status through this information.

[0169] S406: The application layer sends touch information to the layout manager.

[0170] The touch information is used to indicate that the application layer has detected a touch operation of the user; for example, the touch operation may refer to an operation of the user's finger pressing the display screen, or an operation of the user's finger clicking the display screen, etc.

[0171] S407: The layout manager sends touch information to the angle manager.

[0172] The touch information is used to indicate that the application layer has detected a touch operation of the user; for example, the touch operation may refer to an operation of the user's finger pressing the display screen, or an operation of the user's finger clicking the display screen, etc.

[0173] S408. The angle manager updates the timer status and calculates the angle change degree a1.

[0174] It should be understood that the angle change degree a1 is used to characterize the degree of distortion of the cards in the card set after a touch operation is detected; for example, within a preset duration of detecting a touch operation, the angle change degree a1 ranges from 0% to 100%.

[0175] S409: The application layer detects a sliding operation.

[0176] Exemplarily, after detecting a click operation, the electronic device detects a sliding operation by the user; and displays a card in an expanded state on the display screen according to a sliding distance of the sliding operation.

[0177] S410: The application layer sends the sliding distance of the sliding operation to the layout manager.

[0178] Exemplarily, in an embodiment of the present application, the measurement unit of the sliding distance of the sliding operation may be pixel (px).

[0179] Alternatively, if Figure 7 As shown, the application layer detects a click operation; the application layer can send a sliding distance to a card set control manager in the application framework layer, and the card set control manager can send the sliding distance to the layout manager.

[0180] S411. The layout manager obtains the accumulated total sliding distance based on the sliding distance, and calculates the position information of each card in the card set.

[0181] In an example, assume that sliding upward is a positive slide and sliding downward is a negative slide; it is detected that the user's first sliding operation is an upward slide and the sliding distance is y1 pixels, and it is detected that the user's second sliding operation is an upward slide and the sliding distance is y2 pixels. The cumulative total sliding distance of the two sliding operations is h = (y1+y2) pixels.

[0182] In another example, assume that sliding upward is a positive slide and sliding downward is a negative slide; it is detected that the user's first sliding operation is an upward slide and the sliding distance is y1 pixels; it is detected that the user's second sliding operation is an upward slide and the sliding distance is y2 pixels; it is detected that the user's third sliding operation is a downward slide and the sliding distance is y3 pixels, and the cumulative total sliding distance of the three sliding operations h = [y1+y2+(-y3)] pixels.

[0183] In another example, assume that swiping upward is a positive swipe and swiping downward is a negative swipe; the user's first swipe operation is detected as an upward swipe and the swiping distance is y1 pixels; the user's second swipe operation is detected as an upward swipe and the swiping distance is y2 pixels; the user is detected to lift his finger, and 10 seconds later the user's third swipe operation is detected as a downward swipe and the swiping distance is y3 pixels. The cumulative total sliding distance of the three swipe operations is h = [y1+y2+(-y3)] pixels.

[0184] It should be noted that the above is an example description of the sliding operation and the accumulated total sliding distance, and the present application does not impose any limitation on this.

[0185] The following is a detailed description of how the layout manager calculates the position information of each card in the card set.

[0186] For example, Fig. 9As shown in (a) in the figure, the order of the cards displayed in the display screen from top to bottom includes: cards in the top stacking area (for example, cards with card identifiers n-3, n-2 and n-1), the first fully visible card (for example, card identifier n), other fully visible cards (for example, cards corresponding to card identifier n+1, card identifier n+2, card identifier n+3 to card identifier m) and cards in the bottom stacking area (for example, cards with card identifiers m+1, m+2 and m+3); wherein, the stacking card interval of the cards in the top stacking area or the cards in the bottom stacking area is h1; the height of a single card is h2; and the visible card interval is h3.

[0187] It should be noted that when a sliding operation of the user is detected, the display position of the card in the display screen may change in response to the sliding operation; that is, at different times, the first fully visible card displayed in the display screen may be different if a sliding operation is detected.

[0188] In addition, when calculating the card position information, it is also necessary to obtain the sliding coefficient. The sliding coefficient a is used to represent the percentage of movement of the current card from the card position to the card position of the previous card of the current card; for example, the sliding coefficient a can represent the percentage of movement of the nth card from the current card position to the card position of the n-1th card; for example, the sliding coefficient a can be calculated based on the upper left corner vertex of the card.

[0189] Exemplarily, the sliding coefficient a = [h% (h2+h3)] / (h2+h3); wherein h represents the total cumulative sliding distance of the detected sliding operation; h2 represents the height of a single card; h3 represents the visible card interval; % represents the remainder operation; the sliding coefficient a ranges from 0% to 100%.

[0190] It should be noted that the sliding coefficient a may be unitless.

[0191] Exemplarily, the card identification of the first fully visible card = [h / (h2+h3)]; wherein h represents the total cumulative sliding distance of the detected sliding operation; h2 represents the height of a single card; h3 represents the visible card interval; [] represents rounding up operation; the position of the first fully visible card = K1*h1+(h2+h3)*(1-a); wherein K1 represents the stacking level of the top card display area; h1 represents the stacking card interval; h2 represents the height of a single card; h3 represents the visible card interval; a represents the sliding coefficient.

[0192] For example, Fig. 9 Taking the position of the card identifier n shown in (a) as an example, the stacking level number K1=3; the position of the first completely visible card=3*h1+(h2+h3)*(1-a).

[0193] It should be understood that before the card moves, the first fully visible card is the card with card identification n; in response to the user's upward sliding operation, multiple cards move upward, and the card with card identification n+1 covers at least part of the card with card identification n, and the first fully visible card is the card with card identification n+1; before the card moves, for the card with card identification n+1, the sliding coefficient a is 0%; when the card with card identification n+1 moves to the card position with card identification n, for the card with card identification n+1, the sliding coefficient a is 100%.

[0194] Exemplarily, when displaying the animation effect of a card, the position information of the card can be calculated as the distance between the vertices of the upper left corner of the card; for example, assuming that before the position of the card changes, the distance between the upper left corner vertex A1 of the card with card identifier n and the upper left corner vertex A2 of the card with card identifier n+1 is h2+h3; an upward sliding operation on the card or the display screen is detected, with the top of the display screen as the initial position, an upward sliding is a positive sliding, and a downward sliding is a negative sliding; the card with card identifier n can be obtained from Fig. 9 The position shown in (b) is moved to Fig. 9 ; at this time, since the movement process of the card with card identification n+1 is a dynamic process, and the moving distance is related to the sliding coefficient a, that is, the moving distance is related to the percentage of the card with card identification n+1 moving from the current card position to the position of the card with card identification n; therefore, after the card n+1 moves, the distance between the upper left corner vertex A1' of the card with card identification n and the upper left corner vertex A2' of the card with card identification n+1 is (h2+h3)*(1-a); therefore, the interval between the upper left corner vertex of the first completely visible card and the initial position is K1*h3+(h2+h3)*(1-a), that is, the position of the first completely visible card = K1*h1+(h2+h3)*(1-a); K1 represents the number of stacking levels of the top display area of ​​the display screen; h1 represents the stacking card interval; h2 represents the height of a single card; h3 represents the visible card interval; a represents the sliding coefficient; for example, Fig. 9 As shown in (a) in the figure, K1=3.

[0195] Optionally, if the cards are represented as consecutive digital numbers, the positions of other fully visible cards = (this card ID - n) * (h2 + h3) + card position of card ID n; where n represents the ID of the first fully visible card; h2 represents the height of a single card; and h3 represents the visible card interval.

[0196] For example, for the fully visible cards other than the first fully visible card, the distances between the other fully visible cards are fixed; for example, for the card with the card identifier n+2, the interval between it and the card with the card identifier n+1 is fixed to h3.

[0197] Exemplarily, if the card identifier is a continuous digital serial number, the position of the card in the top stacking area = K1*h1-(n-this card identifier-1+a)*h1; wherein K1 represents the stacking level number of the top display area of ​​the display screen; h1 represents the stacking card interval; n represents the identifier of the first fully visible card; and a represents the sliding coefficient.

[0198] For example, when displaying the animation effect of a card, the position information of the card can be calculated based on the distance between the vertices of the upper left corner of the card; for example, Fig. 9 As shown in (d) in FIG. 1 , before the position of the card changes, the distance between the upper left corner vertex A1 of the card with card identifier n and the upper left corner vertex A3 of the card with card identifier n-1 is h1; an upward sliding operation on the card or the display screen is detected, with the top of the display screen as the initial position, an upward sliding is a positive sliding, and a downward sliding is a negative sliding; the card with card identifier n can be changed from Fig. 9 The position shown in (d) in FIG. 1 is moved to Fig. 9 The position shown in (e) in the figure; at this time, since the movement process of the card with card identification n is a dynamic process, and the moving distance is related to the sliding coefficient a, that is, the moving distance is related to the percentage of the card with card identification n moving from the current card position to the position of the card with card identification n-1; therefore, after the card with card identification n moves, the distance between the upper left corner vertex A1' of the card with card identification n and the upper left corner vertex A3' of the card with card identification n-1 is a*h1.

[0199] Exemplarily, if the card identifier is a continuous digital serial number, the position of the card in the bottom stacking area = the position of card m + (h2 + h3) * a + (the identifier of this card - the card identifier of card m - a) * K2; wherein card m represents the last fully visible card, K2 represents the stacking level number of the bottom display area of ​​the display screen; h2 represents the height of a single card; h3 represents the visible card interval; and a represents the sliding coefficient.

[0200] Optionally, in one implementation, K1 is equal to K2, that is, the number of stacking levels in the top display area of ​​the display screen is equal to the number of stacking levels in the bottom display area of ​​the display screen.

[0201] For example, when displaying the animation effect of a card, the position information of the card can be calculated based on the distance between the vertices of the upper left corner of the card; for example, Fig. 9As shown in (f) in FIG. 1 , before the position of the card changes, the distance between the upper left corner vertex A4 of the card with card identifier m and the upper left corner vertex A5 of the card with card identifier m+1 is h1; an upward sliding operation on the card or the display screen is detected, with the top of the display screen as the initial position, an upward sliding is a positive sliding, and a downward sliding is a negative sliding; the card with card identifier m and the card with card identifier m+1 can be obtained from Fig. 9 The position shown in (f) in FIG. 1 is moved to Fig. 9 The position shown in (g) in ; at this time, since the movement process of the card with card identification m+1 is a dynamic process, and the moving distance is related to the sliding coefficient a, that is, the moving distance is related to the percentage of the card with card identification m+1 moving from the current card position to the position of the card with card identification m; therefore, after the card with card identification m+1 moves, the distance between the upper left corner vertex A4' of the card with card identification m and the upper left corner vertex A3' of the card with card identification m+1 is (1-a)*h1.

[0202] In an embodiment of the present application, the card set control manager includes a layout manager; the layout manager can obtain the cumulative total sliding distance of the user's sliding operation; calculate the position information of each card in the card set according to the cumulative total sliding distance, and when multiple cards in the card set are expanded and displayed in an electronic device, an animation effect of stacking the cards at the top and bottom of the display screen can be achieved, so that the user can efficiently obtain the information of one or more cards, thereby improving the user experience.

[0203] S412: The layout manager sends the card identifier, the order of the card identifiers, the card content information, and the card location information to the View architecture module.

[0204] Optionally, the layout manager can also send the card size and number of cards to the View framework module.

[0205] Exemplarily, the card identifiers, the order of the card identifiers and the content information of the cards can refer to the relevant description in S402, and the location information of the cards can refer to the relevant description in S411, which will not be repeated here.

[0206] Optionally, a position information interface is provided in the View framework module, and the View framework module can receive the position information of the card through the position information interface.

[0207] Optionally, the View framework module may receive the card identification, the order of the card identification and the content information of the card in any existing manner, and the embodiment of the present application does not impose any limitation on this.

[0208] S413. The layout manager sends the card location information and card identifier to the angle manager.

[0209] It should be understood that when the angle manager calculates the angle information of each card, it needs to obtain the position information and card identification of the card; therefore, the angle manager can obtain the position information and card identification of the slice from the layout manager.

[0210] S414. The angle manager calculates the current angle 1 of each card in the card set according to the angle change degree a1.

[0211] Exemplarily, in an embodiment of the present application, the current angle 1 of a card in the card set is related to the position information of the card.

[0212] It should be noted that there is a linear relationship between the current angle of the card and the position information of the card, and the current angle 1 is associated with the angle change degree a1; wherein, the card angle can be used to characterize the maximum distortion angle allowed for a card; or, the card angle can be used to characterize the angle change range allowed for a card; the current angle of the card refers to the distortion angle of the card at the current moment; for example, the card angle = f (the y-axis coordinate value of the center of the card); the current angle 1 of the card = f (the y-axis coordinate value of the center of the card) * a1; wherein a1 represents the degree of angle change within the preset time length when the click operation is detected.

[0213] It should be understood that for cards in the top area of ​​the display screen, the maximum allowable distortion angle can be regarded as the maximum angle at which the card is allowed to flip toward the display screen with the bottom edge of the card as the axis; for cards in the bottom area of ​​the display screen, the maximum allowable distortion angle can be regarded as the maximum angle at which the card is allowed to flip toward the display screen with the top edge of the card as the axis.

[0214] Exemplarily, the card angle = the y-axis coordinate value of the center point of the card - the center position of the card set) / half the overall height of the card set * preset angle; for example, the preset angle may be 15 degrees.

[0215] It should be understood that the card angle is smaller at the center of the display screen; the card angle becomes larger as it approaches the top of the display screen from the center of the display screen; and the card angle becomes larger as it approaches the bottom of the display screen from the center of the display screen.

[0216] Optionally, the cards displayed at the top of the display screen and the cards displayed at the bottom of the display screen may be mirror-symmetrical.

[0217] In an example, the number of cards in the display screen is 5; card 1, card 2, card 3, card 4 and card 5 are displayed from the top to the bottom of the display screen; among them, the card angle of card 1 is: 15 degrees, that is, the maximum distortion angle allowed for card 1 is 15 degrees; the card angle of card 2 is 10 degrees, that is, the maximum distortion angle allowed for card 2 is 10 degrees; the card angle of card 3 is 5 degrees, that is, the maximum distortion angle allowed for card 3 is 5 degrees; the card angle of card 4 is 10 degrees, that is, the maximum distortion angle allowed for card 4 is 10 degrees; the card angle of card 5 is: 15 degrees, that is, the maximum distortion angle allowed for card 5 is 15 degrees.

[0218] Exemplarily, the current angle 1 of the card = f (y-axis coordinate value of the center of the card) * a1; wherein a1 represents the degree of angle change within a preset time duration of detecting a click operation.

[0219] It should be noted that within the preset time of detecting the click operation, the range of a1 is: 0% to 100%; at the moment of detecting the click operation, a1 is 0%; at the preset time after the moment of detecting the click operation, a1 is 100%; wherein, the preset time can be 200ms, that is, at the moment of detecting the click operation, a1 is 0%; 200ms after the moment of detecting the click operation, a1 is 100%; that is, after 200ms, the card is completely cut to a bevel state.

[0220] For example, card angle = f (y-axis coordinate value of the center of the card) = y-axis coordinate value of the center point of the card - center position of the card set) / half of the overall height of the card set * preset angle; then the current angle 1 of the card = f (y-axis coordinate value of the center of the card) * a1 = y-axis coordinate value of the center point of the card - center position of the card set) / half of the overall height of the card set * preset angle * a1; wherein, the preset angle can be 15 degrees; wherein, the overall height of the card set can refer to the distance between the top of the visible first card and the bottom of the visible last card displayed on the display screen, including the top stacking area and the bottom stacking area; wherein, the visible first card can refer to part or all of the visible cards.

[0221] Optionally, in one implementation, the overall height of the card set is a fixed value; it can be understood that stacked cards are displayed in the top display area and / or the bottom display area in the display screen, and the overall height of the card set is the same.

[0222] It should be understood that the above example uses a preset angle of 15 degrees; the preset angle may be a pre-configured angle, and the preset angle may also be 10 degrees, 11 degrees, 12 degrees, 13 degrees, 14 degrees or 16 degrees, etc., and the present application does not impose any limitation on this.

[0223] S415. The angle manager sends the current angle 1 corresponding to each card identifier to the layout manager.

[0224] Exemplarily, after the angle manager calculates the current angle 1 of each card in the card set, the angle manager may send the current angle 1 corresponding to each card identifier to the layout manager.

[0225] For example, the card identifier includes identifier 1, identifier 2, identifier 3 and identifier 4; identifier 1 identifies card 1, and the current angle 1 of card 1 is C1 degree; identifier 2 identifies card 2, and the current angle 1 of card 2 is C2 degrees; identifier 3 identifies card 3, and the current angle 1 of card 3 is C3 degrees; identifier 4 identifies card 4, and the current angle 1 of card 4 is C4 degrees; the angle manager sends information to the layout manager, and the information may include: identifier 1 - C1 degree, identifier 2 - C2 degrees, identifier 3 - C3 degrees, and identifier 4 - C4 degrees.

[0226] S416. The View architecture module draws the card display interface of the current frame according to the card identifier, the order of the card identifiers, the content information of the card, the position information of the card and the current angle 1 of the card.

[0227] Optionally, after the View framework module draws the card display interface of the current frame, the View framework module may trigger the display screen of the electronic device to display the card display interface of the current frame.

[0228] It should be noted that Figure 8 S401 to S416 may be a process of generating a frame of card display interface; according to the sliding operations detected at different times, the electronic device may perform the above steps multiple times to generate multiple frames of card display interface; display multiple frames of card display interface, that is, display card animation effects; the time of detecting the sliding operation is related to the sampling rate of the display screen.

[0229] For example, Figure 7 As shown, the animation effect architecture module can control the View architecture module to draw the card display interface of the current frame according to the card identification of each card in the card set, the order of the card identification, the content information of the card, the position information of the card and the current angle 1 of the card; the View architecture module can trigger the electronic device to display a multi-frame card display interface, that is, to display the animation effect of the card set; in the scheme of the present application, the View framework module can obtain the position information of the card to achieve the animation effect of the cards being stacked up and down at the same time on the display screen; in addition, the View architecture module can obtain the current angle 1 of each card, and achieve the effect of changing the card angle based on the current angle 1 of each card.

[0230] S417: The application layer detects the operation of lifting the finger.

[0231] It should be noted that the operation of lifting the finger may refer to an operation of the finger leaving the display screen, that is, the electronic device does not detect an operation in which the user's finger touches the display screen.

[0232] S418: The application layer sends a lift message to the layout manager.

[0233] The lifting information is used to indicate that the application layer detects the user's finger lifting operation; for example, the finger lifting operation may refer to the user's operation of releasing or leaving the display screen.

[0234] S419. The layout manager sends a lift message to the angle manager.

[0235] The lifting information is used to indicate that the application layer detects the user's finger lifting operation; for example, the finger lifting operation may refer to the user's operation of releasing or leaving the display screen.

[0236] S420: Send the location information and card identification of the card.

[0237] Exemplarily, S410 and S411 may be executed to obtain the location information and the card identification of the card; according to the sampling rate, the location information of the card may be different for different frames, that is, at different times.

[0238] S421. The angle manager updates the timer status and calculates the angle change degree a2; and calculates the current angle 2 of each card in the card set according to the angle change degree 2.

[0239] Alternatively, if Figure 7 As shown, the application layer detects the operation of lifting the finger; the application layer can send an instruction to the card set control manager in the application framework layer, and the card set control manager can send an instruction to the angle manager, instructing the angle manager to start timing through the timer in the angle manager.

[0240] It should be understood that the angle change degree a2 is used to characterize the degree of distortion of the cards in the card set after the finger lifting operation is detected; for example, within the preset time length of detecting the finger lifting operation, the angle change degree a2 ranges from 100% to 0%.

[0241] It should be noted that within the preset time after the application layer detects a click operation, the angle change degree a1 ranges from 0% to 100%; within the preset time after the application layer detects a finger lift operation, the angle change degree a2 ranges from 100% to 0%.

[0242] It should be understood that at time 1, i.e., 0ms, when the application layer detects a click operation on the display screen, the display state of the card can be a two-dimensional state (for example, the card does not generate a distortion angle); from time 1 to a preset time length (for example, 200ms), the display state of the card changes from a two-dimensional state to a three-dimensional state (for example, the card gradually changes from a state where no distortion angle is generated to a state where the card generates a distortion angle); after exceeding the preset time length (for example, after 200ms), the display state of the card is completely a three-dimensional state (for example, the distortion angle of the card is the maximum distortion angle allowed); similarly, when the application layer detects an operation of lifting a finger, the display state of the card can be restored from a three-dimensional state to a two-dimensional state; for example, when the application layer detects an operation of lifting a finger At time 2 when the finger is lifted, that is, at the 0ms when the finger is lifted, the display state of the card is a three-dimensional state; from time 2 to a preset duration (for example, 200ms), the display state of the card changes from a three-dimensional state (for example, the distortion angle of the card is the maximum allowable distortion angle) to a two-dimensional state (for example, the card gradually changes from a state where no distortion angle is generated to a state where the card generates a distortion angle); after exceeding the preset duration (for example, after 200ms), the display state of the card is completely a two-dimensional state; for example, when a click operation is detected, the shape of the card displayed on the display screen gradually changes from a rectangle to a non-rectangle; when a finger lift operation is detected, the shape of the card displayed on the display screen gradually changes from a non-rectangle to a rectangle.

[0243] Optionally, the implementation method of S421 can refer to the relevant description of S414. The difference from S414 is that in S421, the current angle 2 of each card in the card set is calculated according to the angle change degree a2; that is, the angle change degree in S414 can be replaced with the angle change degree a2 to obtain the current angle 2 of each card.

[0244] S422. The angle manager sends the current angle 2 corresponding to each card identifier to the View architecture module.

[0245] Exemplarily, after the angle manager calculates the current angle 2 of each card in the card set, the angle manager may send the current angle 2 corresponding to each card identifier to the layout manager.

[0246] For example, the card identifier includes identifier 1, identifier 2, identifier 3 and identifier 4; identifier 1 identifies card 1, and the current angle 2 of card 1 is C5 degrees; identifier 2 identifies card 2, and the current angle 2 of card 2 is C6 degrees; identifier 3 identifies card 3, and the current angle 2 of card 3 is C7 degrees; identifier 4 identifies card 4, and the current angle 2 of card 4 is C8 degrees; the angle manager sends information to the layout manager, and the information may include: identifier 1-C5 degrees, identifier 2-C6 degrees, identifier 3-C7 degrees, and identifier 4-C8 degrees.

[0247] S423, the View architecture module draws the card display interface of the current frame according to the card identifier, the order of the card identifiers, the content information of the card, the position information of the card and the current angle 2 of the card.

[0248] Optionally, after the View framework module draws the card display interface of the current frame, the View framework module may trigger the display screen of the electronic device to display the card display interface of the current frame.

[0249] For example, Figure 7 As shown, the animation effect architecture module can control the View architecture module to draw the card display interface of the current frame according to the card identification of each card in the card set, the order of the card identification, the content information of the card, the position information of the card and the current angle 2 of the card; the View architecture module can trigger the electronic device to display a multi-frame card display interface, that is, to display the animation effect of the card set; in the scheme of the present application, the View framework module can obtain the position information of the card to achieve the animation effect of the cards being stacked up and down at the same time on the display screen; in addition, the View architecture module can obtain the current angle 2 of each card, and achieve the effect of changing the card angle based on the current angle 2 of each card.

[0250] In an embodiment of the present application, on the one hand, when multiple cards in a card set are expanded and displayed in an electronic device, an animation effect of stacking the cards at the top and bottom of the display screen can be achieved, so that the user can efficiently obtain the information of one or more cards, thereby improving the user experience; on the other hand, in an embodiment of the present application, the angle information of multiple cards in the card set can be managed by an angle manager, which can save the resources of the electronic device to a certain extent.

[0251] For example, the above Figure 7 The method for displaying cards shown in the figure manages the angle information of multiple cards in the card set through an angle manager; optionally, in one implementation, the card set control manager may include multiple angle managers, and one angle manager in the multiple angle managers is used to manage the angle information of a card in the card set. The implementation method for calculating the current angle of the card can be referred to. Figure 8 The relevant description in will not be repeated here.

[0252] Fig.10 is a schematic flow chart of a method for displaying a card provided in an embodiment of the present application. The method can be Figure 7 The software architecture of the electronic device shown is executed; the method includes S510 to S540, and S510 to S540 are described in detail below.

[0253] S510: Detect a first operation on a card display area.

[0254] The first card is displayed in the card display area, the card display area includes multiple cards, and the first card covers other cards of the multiple cards except the first card.

[0255] Optionally, the first card completely covers the other cards of the plurality of cards except the first card; Figure 3 As shown in (a), the first card may be card 102. If the first card completely covers other cards among multiple cards except the first card, only the first card is displayed in the card display area, that is, only card 102 is displayed in the card display area.

[0256] Optionally, the first card may partially cover other cards among the plurality of cards except the first card.

[0257] For example, Figure 3 As shown in (a), the first card may be card 102; the card display area may be the display area where card 102 is located; the first operation may refer to an operation that triggers the card set to change from a stacked state to an expanded state; for example, the first operation may be an upward sliding operation, a long press operation, or other operations.

[0258] S520: In response to the first operation, display a first interface.

[0259] Among them, part of the cards among the multiple cards are displayed in the first interface, and the part of the cards includes the first card and the second card.

[0260] Exemplarily, the first card and the second card may be different cards; for example, according to the display order from top to bottom on the display screen, the first card may refer to the first card that displays complete card content information; the second card may be any card located below the first card.

[0261] Optionally, the first interface includes a first area and a second area, the first area displays a first card, and the second area displays at least two cards of the multiple cards, the first area is the top display area of ​​the display screen, and the second area is the bottom display area of ​​the display screen.

[0262] It should be understood that the first area may refer to a display area at a preset distance from the center of the display screen to a first direction; the second area may refer to a display area at a preset distance from the center of the display screen to a direction opposite to the first direction.

[0263] For example, Figure 4 As shown in (b), the first area may refer to the display area where card 1 and card 2 are located; the second area may refer to the display area where card 3 and card 4 are located.

[0264] S530: Detect a second operation on the first interface.

[0265] Exemplarily, the second operation may include a touch operation on the display screen, a slide operation, or an operation of lifting a finger.

[0266] It should be noted that the operation of lifting a finger may refer to Figure 8 The operation shown in S417.

[0267] S540: In response to the sliding operation, display a second interface.

[0268] The second interface includes a second card, the second card has a first tilt angle, the first tilt angle of the second card is different at different positions in the first interface, and the first tilt angle is used to represent the angle at which the second card flips into the display screen.

[0269] Optionally, at least two cards are displayed in the first area and / or the second area of ​​the second interface.

[0270] Exemplarily, at least two cards are displayed in the first area of ​​the second interface, and one card is displayed in the second area; or, in response to a sliding operation, the second interface is displayed, at least two cards are displayed in the first area of ​​the second interface, and at least two cards are displayed in the second area; or, in response to a sliding operation, the second interface is displayed, one card is displayed in the first area of ​​the second interface, and at least two cards are displayed in the second area.

[0271] Optionally, the display shape of at least two cards displayed in the first area and / or the second area of ​​the second interface is a first shape, and the first shape may be a quadrilateral other than a rectangle; for example, the first shape may be a trapezoid.

[0272] For example, Figure 3 As shown in (c) , the second area of ​​the second interface displays card 34 and card 35 ; wherein the display shape of card 34 and card 35 is the first shape.

[0273] For example, Figure 4 As shown in (a), the first area of ​​the second interface displays card 31 and card 32; the second area of ​​the second interface displays card 35 and card 36; wherein, the display shape of card 31 and card 32 is the first shape; the display shape of card 35 and card 36 is the first shape.

[0274] For example, Figure 4 As shown in (c) , the first area of ​​the second interface displays card 32 and card 33 ; wherein the display shape of card 32 and card 33 is a first shape.

[0275] Optionally, in one implementation, if at least two cards are displayed in the first area and the second area of ​​the second interface, display shapes of the at least two cards displayed in the first area and the at least two cards displayed in the second area are mirror-symmetrical.

[0276] For example, Figure 4 As shown in (a), the first area of ​​the second interface displays card 31 and card 32; the second area of ​​the second interface displays card 35 and card 36; wherein, the display shapes of card 31 and card 32 are non-rectangular; the display shapes of card 35 and card 36 are non-rectangular, and the first area and the second area are mirror-symmetrical with the center position of the display screen as the axis of symmetry.

[0277] Optionally, in an implementation manner, the second operation includes a touch operation and a slide operation, and in response to the second operation, displaying the second interface includes:

[0278] In response to a touch operation, the state of the timer is updated and a first angle coefficient is obtained, the first angle coefficient being related to the state of the timer; in response to a sliding operation, distance information of the sliding operation is obtained; based on the distance information of the sliding operation, position information of each of the multiple cards is obtained, the position information of each of the multiple cards includes position information of the second card; based on the first angle coefficient and the position information of the second card, a first tilt angle is obtained; based on the first tilt angle and the position information of each of the multiple cards, a second interface is displayed.

[0279] It should be understood that in the embodiments of the present application, the sliding distance of the sliding operation on the first interface is different, and the position information of the card in the first interface is different; the position information of the card changes with the sliding distance of the sliding operation; the position information of the card is different, and the tilt angle of the card is different; the tilt angle of the card changes with the position information of the card.

[0280] For example, the sliding distance of the sliding operation is as follows: Figure 8 The accumulated total sliding distance shown in S411 in FIG. 1 ; the sliding coefficient may refer to Fig. 9 Slip coefficient a shown; see Figure 8 and Fig. 9 The relevant description will not be repeated here.

[0281] It should be noted that, if a single sliding operation on the first interface is detected, the distance information of the sliding operation is the sliding distance of the single sliding operation; if two sliding operations on the first interface are detected, the distance information of the sliding operation is the total distance of the two sliding operations; if multiple sliding operations on the first interface are detected, the distance of the sliding operation is the total distance of the multiple sliding operations; the distance information of the sliding operation may refer to the following: Figure 8 The accumulated total sliding distance shown in S411 in FIG.

[0282] In an embodiment of the present application, in response to a sliding operation, distance information of the sliding operation can be obtained; based on the distance information of the sliding operation, a sliding coefficient can be obtained; based on the sliding coefficient, position information of each card in a plurality of cards can be obtained, and a second interface can be displayed based on the position information of each card.

[0283] It should be understood that in the scheme of the present application, when multiple cards in the expanded state in the first interface respond to a sliding operation, the movement speed of the current card is less than the movement speed of the next card after the current card in the order from top to bottom of the display screen; in an embodiment of the present application, the card stacking display effect of the first area and / or the second area in the second interface can be achieved through the sliding coefficient.

[0284] For example, the first tilt angle may be Figure 8 The current angle 1 shown in S414.

[0285] Optionally, in one implementation, obtaining a sliding coefficient according to distance information of the sliding operation includes:

[0286] A sliding coefficient is obtained based on the distance information of the sliding operation, the card height information and the first interval information; wherein the card height information is used to represent the height of each card in multiple cards, and the first interval information is used to represent the interval between two cards displaying complete card content information in the first interface.

[0287] For example, Fig. 9 As shown in (a), the card height information may refer to the height of a single card h2; the first card interval information may refer to the visible card interval h3; the sliding coefficient a = [h% (h2 + h3)] / (h2 + h3); wherein h represents the cumulative total sliding distance of the detected sliding operation; h2 represents the height of a single card; h3 represents the visible card interval; % represents the remainder operation; optionally, see Fig. 9 The relevant description will not be repeated here.

[0288] Optionally, in one implementation, the method further includes:

[0289] According to the distance information and the sliding coefficient of the sliding operation, identification information of the second card is obtained, and the second card is a card that displays complete card content information in the first area of ​​the second interface.

[0290] For example, the second card may refer to the first fully visible card as shown in (a) in 9; illustratively, the card identifier n of the first fully visible card is n=[h / (h2+h3)]; wherein h represents the cumulative total sliding distance of the detected sliding operation; h2 represents the height of a single card; h3 represents the visible card interval; and [] represents rounding up operation.

[0291] Optionally, in one implementation, obtaining the position information of each card among the multiple cards according to the sliding coefficient includes:

[0292] The position information of the second card is obtained according to the sliding coefficient, card height information, first interval information, second interval information and first stack quantity information; wherein the second interval information is used to characterize the interval between two cards displaying partial card content information in the first area or the second area; the first stack quantity information is used to characterize the number of cards in the first area except the second card.

[0293] For example, Fig. 9 As shown, the sliding coefficient is the sliding coefficient a, the card height information may refer to the height of a single card h2; the first card interval information may refer to the visible card interval h3; the second interval information may refer to the stacking interval h1; the first stacking quantity information may refer to the number of stacking levels, that is, the number of cards stacked in the first area; Fig. 9 As shown in (a), the first area is the top display area, and the number of stacked cards is 3.

[0294] For example, the position of the second card = K1*h1+(h2+h3)*(1-a); wherein K1 represents the stacking level of the top display area; h1 represents the stacking card interval; h2 represents the height of a single card; h3 represents the visible card interval; and a represents the sliding coefficient.

[0295] Optionally, in one implementation, the method further includes:

[0296] According to the position information of the second card, the first interval information, the card height information and the card identification information, the position information of at least one third card is obtained, the third card is used to represent a card that displays complete card content information in addition to the second card in the second interface, the at least one third card includes a target third card, and the target third card is used to represent a card that displays complete card content information in the second area of ​​the second interface;

[0297] According to the position information of the target third card, the card height information, the card identification information, the second spacing information and the second stack quantity information, the position information of the fourth card is obtained, the second stack quantity information is used to represent the number of cards other than the target third card in the second area, and the fourth card is used to represent the cards other than the target third card in the second area of ​​the second interface;

[0298] The position information of the fifth card is obtained according to the first stack quantity information, the second interval information and the card identification information, and the fifth card is used to represent the cards other than the second card in the first area of ​​the second interface.

[0299] Exemplarily, the at least one third card may refer to other fully visible cards other than the first fully visible card, such as Fig. 9 As shown in (a), at least one third card may include card identifier n+1, card identifier n+2, card identifier n+3, and cards corresponding to the card with card identifier m, etc.; the target third card may refer to the card corresponding to the card identifier m; the fourth card may refer to the stacked cards in the bottom display area of ​​the display screen; for example, the fourth card includes the card identifier m+1, the card identifier m+2, and the card corresponding to the card identifier m+3; the fifth card may refer to the stacked cards in the top display area of ​​the display screen; for example, the fifth card includes the card identifier n-1, the card identifier n-2, and the card corresponding to the card identifier n-3.

[0300] Exemplarily, the position information of the third card = (this card ID - the second card ID) * (h2 + h3) + the second card position information; wherein h2 represents the height of a single card; and h3 represents the visible card interval.

[0301] Exemplarily, the position information of the fourth card = the position information of the target third card + (h2 + h3) * a + (the identification of this card - the identification of the target third card - a) * K2; wherein K2 represents the number of stacking levels of the bottom display area of ​​the display screen; h2 represents the height of a single card; h3 represents the visible card interval; and a represents the sliding coefficient.

[0302] Exemplarily, the position information of the fifth card = K1*h1-(the identification of the second card-the identification of this card-1+a)*h1; wherein K1 represents the stacking level of the top display area of ​​the display screen; h1 represents the stacking card interval; and a represents the sliding coefficient.

[0303] Optionally, in one implementation, obtaining the first tilt angle according to the first angle coefficient and the position information of the second card includes:

[0304] According to the position information of the second card, the information of the first angle is obtained, and the first angle is used to characterize the maximum distortion angle of the second card; according to the first angle coefficient and the information of the first angle, the first tilt angle is obtained.

[0305] Exemplarily, the first angle = f (y-axis coordinate value of the center of the card); see Figure 8 The relevant description of S414 will not be repeated here.

[0306] Optionally, in one implementation, the first angle and the position information of the second card are in a linear relationship.

[0307] Optionally, in one implementation, an initial value of the first angle coefficient is 0 and a maximum value is 1; after a preset duration of a touch operation is detected, the value of the first angle coefficient is 1.

[0308] Exemplarily, for example, within a preset time period of detecting a touch operation on the first interface, the angle change degree a1 ranges from 0% to 100%.

[0309] Optionally, in one implementation, the method further includes:

[0310] An operation of lifting a finger on the second interface is detected; in response to the operation of lifting the finger, the state of the timer is updated and a second angle coefficient is obtained, the second angle coefficient being related to the state of the timer; a second tilt angle is obtained based on the second angle coefficient and the position information of the second card; a third interface is displayed based on the second tilt angle and the position information of each card in the multiple cards at the current moment.

[0311] For example, the second angle coefficient may refer to Figure 8 The angle change degree a2 shown in S421; the second tilt angle may refer to Figure 8 The current angle 2 shown in S422.

[0312] Optionally, in one implementation, obtaining the second tilt angle according to the second angle coefficient and the position information of the second card includes:

[0313] According to the position information of the second card at the current moment, the information of the first angle is obtained, and the first angle is used to characterize the maximum distortion angle of the second card; according to the second angle coefficient and the information of the first angle, the second tilt angle is obtained.

[0314] Optionally, in one implementation, an initial value of the second angle coefficient is 1 and a maximum value is 0; after a preset duration of the finger lifting operation is detected, the value of the second angle coefficient is 0.

[0315] Exemplarily, for example, within a preset time period of detecting a release operation on the first interface, the angle change degree a2 ranges from 100% to 0%; wherein the release operation may refer to an operation of lifting a finger.

[0316] Optionally, in an embodiment of the present application, the electronic device includes an application framework layer, the application framework layer includes an angle manager, the angle manager includes a timer, and the angle manager application manages the tilt angle of the card; one angle manager can be used to manage the tilt angles of multiple cards in a card set. Managing the tilt angles of multiple cards through one angle manager can save the resources of the electronic device to a certain extent.

[0317] Optionally, in an embodiment of the present application, the electronic device includes an application framework layer, the application framework layer includes an angle manager, the angle manager includes a timer, and the angle manager application manages the tilt angle of the card; an angle manager can be used to manage the tilt angle of a card in a card set.

[0318] In an embodiment of the present application, the first interface may refer to an interface in which the card set is in an expanded state; a second operation on the first interface is detected; in response to the second operation, the second interface is displayed, and the first tilt angle of the second card in different positions in the first interface is different; that is, in the scheme of the present application, when displaying a card in the expanded card set, when the position of the second card displayed in the second interface changes, the first tilt angle of the second card also changes; so that the card displayed in the second display interface changes accordingly based on the user's second operation, so that the display effect of the card is better, and the user experience is improved. It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, rather than to limit the embodiments of the present application to the specific numerical values ​​or specific scenarios illustrated. Based on the above examples given, it is obvious that those skilled in the art can make various equivalent modifications or changes, and such modifications or changes also fall within the scope of the embodiments of the present application.

[0319] Combination of the above Figures 1 to 10 The method for displaying a card provided by the embodiment of the present application is described in detail; Fig.11 and Fig.12 The device embodiments of the present application are described in detail. It should be understood that the device in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.

[0320] Fig.11It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. The electronic device 600 includes a processing module 610 and a display module 620; wherein the processing module 610 is used to: detect a first operation on a card display area, a first card is displayed in the card display area, the card display area includes multiple cards, and the first card covers the other cards of the multiple cards except the first card; the display module 620 is used to: in response to the first operation, display a first interface, and the first interface displays some cards of the multiple cards, and the part of the cards includes the first card and the second card; the processing module 610 is also used to: detect a second operation on the first interface; the display module 620 is also used to: in response to the second operation, display a second interface, the second interface includes the second card, the second card has a first tilt angle, the first tilt angle is different at different positions of the second card in the first interface, and the first tilt angle is used to characterize the angle at which the second card flips into the display screen.

[0321] Optionally, as an embodiment, the first interface includes a first area and a second area, the first area displays the first card, and the second area displays at least two cards of the partial cards.

[0322] Optionally, as an embodiment, at least two cards are displayed in the first area and / or the second area of ​​the second interface.

[0323] Optionally, as an embodiment, the second operation includes a touch operation and a slide operation, and the processing module 610 is specifically configured to:

[0324] In response to the touch operation, updating a state of a timer and acquiring a first angle coefficient, where the first angle coefficient is related to the state of the timer;

[0325] In response to the sliding operation, acquiring distance information of the sliding operation;

[0326] Obtaining position information of each card in the plurality of cards according to the distance information of the sliding operation, wherein the position information of each card in the plurality of cards includes the position information of the second card;

[0327] Obtaining the first tilt angle according to the first angle coefficient and the position information of the second card;

[0328] The second interface is displayed according to the first tilt angle and the position information of each card in the plurality of cards.

[0329] Optionally, as an embodiment, the processing module 610 is specifically configured to:

[0330] Obtaining a sliding coefficient according to the distance information of the sliding operation, wherein the sliding coefficient is used to represent the percentage of a card moving from a current card position to a previous card position of the current card position;

[0331] According to the sliding coefficient, the position information of each card in the plurality of cards is obtained.

[0332] Optionally, as an embodiment, the processing module 610 is specifically configured to:

[0333] The sliding coefficient is obtained based on the distance information of the sliding operation, the card height information and the first interval information; wherein the card height information is used to represent the height of each card in the multiple cards, and the first interval information is used to represent the interval between two cards that display complete card content information in the first interface.

[0334] Optionally, as an embodiment, the second card is a card that displays complete card content information in the first area of ​​the second interface, and the processing module 610 is further configured to:

[0335] The identification information of the second card is obtained according to the distance information of the sliding operation and the sliding coefficient.

[0336] Optionally, as an embodiment, the processing module 610 is specifically configured to:

[0337] The position information of the second card is obtained according to the sliding coefficient, the card height information, the first interval information, the second interval information and the first stack quantity information; wherein the second interval information is used to characterize the interval between two cards displaying partial card content information in the first area or the second area; and the first stack quantity information is used to characterize the number of cards in the first area except the second card.

[0338] Optionally, as an embodiment, the processing module 610 is further configured to:

[0339] According to the position information of the second card, the first interval information, the card height information and the card identification information, the position information of at least one third card is obtained, the third card is used to represent a card that displays complete card content information in addition to the second card in the second interface, the at least one third card includes a target third card, and the target third card is used to represent a card that displays complete card content information in the second area of ​​the second interface;

[0340] The position information of the fourth card is obtained according to the position information of the target third card, the card height information, the card identification information, the second spacing information and the second stack quantity information, wherein the second stack quantity information is used to represent the number of cards other than the target third card in the second area, and the fourth card is used to represent the cards other than the target third card in the second area of ​​the second interface;

[0341] The position information of a fifth card is obtained according to the first stack quantity information, the second interval information and the card identification information, and the fifth card is used to represent the cards other than the second card in the first area of ​​the second interface.

[0342] Optionally, as an embodiment, the processing module 610 is specifically configured to:

[0343] Obtaining information of a first angle according to the position information of the second card, where the first angle is used to characterize a maximum distortion angle of the second card;

[0344] The first tilt angle is obtained according to information of the first angle coefficient and the first angle.

[0345] Optionally, as an embodiment, the first angle and the position information of the second card are in a linear relationship.

[0346] Optionally, as an embodiment, the initial value of the first angle coefficient is 0 and the maximum value is 1; after the preset duration of the touch operation is detected, the value of the first angle coefficient is 1.

[0347] Optionally, as an embodiment, the processing module 610 is further configured to:

[0348] An operation of lifting a finger on the second interface is detected;

[0349] In response to the finger lifting operation, updating the state of the timer and acquiring a second angle coefficient, where the second angle coefficient is related to the state of the timer;

[0350] Obtaining a second tilt angle according to the second angle coefficient and the position information of the second card;

[0351] The third interface is displayed according to the second tilt angle and the position information of each card in the plurality of cards at the current moment.

[0352] Optionally, as an embodiment, the processing module 610 is specifically configured to:

[0353] According to the position information of the second card at the current moment, information of a first angle is obtained, where the first angle is used to represent a maximum distortion angle of the second card;

[0354] The second inclination angle is obtained according to information of the second angle coefficient and the first angle.

[0355] Optionally, as an embodiment, the initial value of the second angle coefficient is 1 and the maximum value is 0; after a preset duration of the finger lifting operation is detected, the value of the second angle coefficient is 0.

[0356] Optionally, as an embodiment, the first card completely covers other cards among the multiple cards except the first card.

[0357] It should be noted that the electronic device 600 is implemented in the form of a functional unit. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.

[0358] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.

[0359] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0360] Fig.12 A hardware system of an electronic device suitable for the present application is shown.

[0361] The electronic device 100 can be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device 100.

[0362] 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 module 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. The sensor module 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.

[0363] It should be noted that Fig.12 The structure shown does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include Fig.12 More or fewer components than those shown, or the electronic device 100 may include Fig.12 Combinations of some of the components shown, or the electronic device 100 may include Fig.12 Subassemblies of some of the components shown. Fig.12 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0364] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.

[0365] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0366] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0367] For example, in an embodiment of the present application, the processor 110 may execute: detecting a first operation on a card display area, displaying a first card in the card display area, including multiple cards, and the first card covers other cards of the multiple cards except the first card; in response to the first operation, displaying a first interface, displaying some cards of the multiple cards in the first interface, and the some cards include the first card and the second card; detecting a second operation on the first interface; in response to the second operation, displaying a second interface, the second interface includes a second card, the second card has a first tilt angle, the first tilt angle of the second card is different at different positions in the first interface, and the first tilt angle is used to characterize the angle at which the second card flips into the display screen.

[0368] Fig.12 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 100. Optionally, the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.

[0369] The wireless communication function of the electronic device 100 can be implemented through components such as the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.

[0370] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in 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 antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0371] 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 program instructions to generate or change display information.

[0372] Exemplarily, the motor 191 can generate vibrations. The motor 191 can be used for incoming call reminders or for touch feedback. The motor 191 can generate different vibration feedback effects for touch operations acting on different applications. The motor 191 can also generate different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (for example, time reminders, receiving messages, alarm clocks, and games) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0373] For example, the display screen 194 may be used to display images or videos.

[0374] Exemplarily, the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0375] Exemplarily, the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can perform algorithmic optimization on the noise, brightness and color of the image. The ISP can also optimize the exposure and color temperature of the shooting scene and other parameters. In some embodiments, the ISP can be set in the camera 193.

[0376] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard red green blue (RGB), YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0377] Exemplarily, the gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x-axis, the y-axis, and the z-axis) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used in scenes such as navigation and somatosensory games.

[0378] Exemplarily, in an embodiment of the present application, the gyro sensor 180B may be used to collect jitter information, and the jitter information may be used to indicate changes in the posture of the electronic device during shooting.

[0379] For example, the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally the x-axis, y-axis, and z-axis). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180E can also be used to identify the posture of the electronic device 100 as an input parameter for applications such as horizontal and vertical screen switching and pedometers.

[0380] Exemplarily, the distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, for example, in a shooting scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0381] Exemplarily, the ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0382] Optionally, the present application also provides a computer program product, which, when executed by a processor, implements the method for displaying a card in any method embodiment of the present application.

[0383] Optionally, the computer program product may be stored in a memory, for example, a program, which is finally converted into an executable target file that can be executed by a processor after preprocessing, compiling, assembling and linking.

[0384] Optionally, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method of any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.

[0385] The computer-readable storage medium is, for example, a memory. The memory may be a volatile memory or a nonvolatile memory, or the memory may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0386] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.

[0387] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.

[0388] It should be understood that in the various embodiments of the present application, the size of the serial number of each process 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.

[0389] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: 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 associated objects before and after are in an "or" relationship.

[0390] In short, the above are only preferred embodiments of the technical solution of this application, and are not intended to limit the protection scope of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for displaying a card, characterized in that: include: A first operation on a card display area is detected, a first card is displayed in the card display area, the card display area includes a plurality of cards, and the first card covers other cards among the plurality of cards except the first card; In response to the first operation, a first interface is displayed, wherein some cards of the plurality of cards are displayed in the first interface, and the some cards include the first card and the second card; detecting a second operation on the first interface; In response to the second operation, a second interface is displayed, wherein the second interface includes the second card, wherein the second card has a first tilt angle, and the first tilt angle is different at different positions of the second card in the first interface, and the first tilt angle is used to characterize the angle at which the second card is flipped into the display screen.

2. The method according to claim 1, characterized in that The first interface includes a first area and a second area, the first area displays the first card, and the second area displays at least two cards of the partial cards.

3. The method according to claim 2, characterized in that At least two cards are displayed in the first area and / or the second area of ​​the second interface.

4. The method according to claim 2 or 3, characterized in that The second operation includes a touch operation and a slide operation, and the displaying of the second interface in response to the second operation includes: In response to the touch operation, updating a state of a timer and acquiring a first angle coefficient, where the first angle coefficient is related to the state of the timer; In response to the sliding operation, acquiring distance information of the sliding operation; Obtaining position information of each card in the plurality of cards according to the distance information of the sliding operation, wherein the position information of each card in the plurality of cards includes the position information of the second card; Obtaining the first tilt angle according to the first angle coefficient and the position information of the second card; The second interface is displayed according to the first tilt angle and the position information of each card in the plurality of cards.

5. The method according to claim 4, characterized in that The obtaining, according to the distance information of the sliding operation, the position information of each card in the plurality of cards comprises: Obtaining a sliding coefficient according to the distance information of the sliding operation, wherein the sliding coefficient is used to represent the percentage of a card moving from a current card position to a previous card position of the current card position; According to the sliding coefficient, the position information of each card in the plurality of cards is obtained.

6. The method according to claim 5, characterized in that The obtaining of the sliding coefficient according to the distance information of the sliding operation includes: The sliding coefficient is obtained based on the distance information of the sliding operation, the card height information and the first interval information; wherein the card height information is used to represent the height of each card in the multiple cards, and the first interval information is used to represent the interval between two cards that display complete card content information in the first interface.

7. The method according to claim 6, characterized in that The second card is a card that displays complete card content information in the first area of ​​the second interface, and further includes: The identification information of the second card is obtained according to the distance information of the sliding operation and the sliding coefficient.

8. The method according to claim 7, characterized in that The obtaining, according to the sliding coefficient, the position information of each card in the plurality of cards comprises: The position information of the second card is obtained according to the sliding coefficient, the card height information, the first interval information, the second interval information and the first stack quantity information; wherein the second interval information is used to characterize the interval between two cards displaying partial card content information in the first area or the second area; and the first stack quantity information is used to characterize the number of cards in the first area except the second card.

9. The method according to claim 8, characterized in that Also includes: According to the position information of the second card, the first interval information, the card height information and the card identification information, the position information of at least one third card is obtained, the third card is used to represent a card that displays complete card content information in addition to the second card in the second interface, the at least one third card includes a target third card, and the target third card is used to represent a card that displays complete card content information in the second area of ​​the second interface; The position information of the fourth card is obtained according to the position information of the target third card, the card height information, the card identification information, the second spacing information and the second stack quantity information, wherein the second stack quantity information is used to represent the number of cards other than the target third card in the second area, and the fourth card is used to represent the cards other than the target third card in the second area of ​​the second interface; The position information of a fifth card is obtained according to the first stack quantity information, the second interval information and the card identification information, and the fifth card is used to represent the cards other than the second card in the first area of ​​the second interface.

10. The method according to any one of claims 4 to 9, characterized in that The obtaining the first tilt angle according to the first angle coefficient and the position information of the second card includes: Obtaining information of a first angle according to the position information of the second card, where the first angle is used to characterize a maximum distortion angle of the second card; The first tilt angle is obtained according to information of the first angle coefficient and the first angle.

11. The method according to claim 10, characterized in that The first angle and the position information of the second card are in a linear relationship.

12. The method according to claim 10 or 11, characterized in that The initial value of the first angle coefficient is 0 and the maximum value is 1; after the preset duration of the touch operation is detected, the value of the first angle coefficient is 1.

13. The method according to any one of claims 10 to 12, characterized in that Also includes: An operation of lifting a finger on the second interface is detected; In response to the finger lifting operation, updating the state of the timer and acquiring a second angle coefficient, where the second angle coefficient is related to the state of the timer; Obtaining a second tilt angle according to the second angle coefficient and the position information of the second card; The third interface is displayed according to the second tilt angle and the position information of each card in the plurality of cards at the current moment.

14. The method according to claim 13, characterized in that The obtaining the second tilt angle according to the second angle coefficient and the position information of the second card includes: According to the position information of the second card at the current moment, information of a first angle is obtained, where the first angle is used to represent a maximum distortion angle of the second card; The second inclination angle is obtained according to information of the second angle coefficient and the first angle.

15. The method according to claim 13 or 14, characterized in that The initial value of the second angle coefficient is 1 and the maximum value is 0; after the preset duration of the finger lifting operation is detected, the value of the second angle coefficient is 0.

16. The method according to any one of claims 1 to 15, characterized in that The first card completely covers the other cards among the multiple cards except the first card.

17. An electronic device, characterized in that: The electronic device comprises a module for executing the method for displaying a card as claimed in any one of claims 1 to 15.

18. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, wherein the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method for displaying a card as described in any one of claims 1 to 15.

19. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system comprises one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method for displaying a card as claimed in any one of claims 1 to 15.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by an electronic device, the electronic device executes the method for displaying a card according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Method, system and mobile terminal for displaying application icons

    CN101957714A

  • Method and system for displaying screen in a mobile device

    CN102783040A

  • Card processing method and device

    CN110262877A

  • Method for controlling user interface and electronic equipment

    CN110427151A

  • Icon display method, electronic equipment and computer readable storage medium

    CN116048681A

Cited By

  • Card display method and electronic equipment

    CN119211408A

  • Methods and electronic devices for displaying cards

    CN119211408B