CN-122018765-A - Card aggregation method, card aggregation device, readable medium and computer product
Abstract
The card aggregation method comprises the steps of determining a next second card of a first card corresponding to sliding operation according to a card sequence of loaded cards in a container under the condition that the display area of the first card is subjected to sliding operation and the sliding direction of the sliding operation is matched with a card aggregation mode, determining the target height of the container according to the sliding operation, the first height of the first card and the second height of the second card in the sliding operation process, and displaying at least one of the second card and the first card according to the target height of the container in the display area according to the card aggregation mode. The disclosure also provides a card aggregation device, a readable medium and a computer product.
Inventors
- ZHANG NAN
Assignees
- 中兴通讯股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241111
Claims (16)
- 1. A card aggregation method comprising: under the condition that a display area for displaying a first card receives a sliding operation and the sliding direction of the sliding operation is matched with a card aggregation mode, determining a next second card of the first card corresponding to the sliding operation according to a card sequence of loaded cards in a container; And in the sliding operation process, determining the target height of the container according to the sliding operation, the first height of the first card and the second height of the second card, and displaying at least one of the second card and the first card according to the target height of the container in the display area according to the card aggregation mode.
- 2. The method of claim 1, wherein the determining the target height of the container based on the sliding operation, the first height of the first card, and the second height of the second card comprises: Determining a sliding distance according to the sliding operation, and calculating a first adjustment ratio according to the sliding distance and a preset arrangement distance between two adjacent cards loaded in the container; a target height of the container is determined based on the first height, the second height, and the first adjustment ratio.
- 3. The method of claim 1, wherein the displaying at least one of the second card and the first card in the display area according to the target height of the container according to the card aggregation comprises: Under the condition that the card aggregation mode is transverse aggregation, the heights of the target cards with larger heights in the first card and the second card are adjusted according to the target heights; And displaying the adjusted target card and the other card except the target card in the first card and the second card in the display area.
- 4. The method of claim 3, wherein said adjusting the height of the greater of the first card and the second card according to the target height comprises: and cutting the target card along a first direction according to the target height.
- 5. The method of claim 4, wherein the displaying the adjusted target card in the display area, and the other card of the first card and the second card other than the target card, further comprises: Cutting the target card in a second direction according to the sliding operation, and the other card than the target card out of the first card and the second card; the displaying the adjusted target card in the display area, and the other card except the target card in the first card and the second card comprises the following steps: Displaying the target card cut in the first direction and the second direction and the other card except the target card in the first card and the second card cut in the second direction in the display area.
- 6. The method of claim 1, wherein the displaying at least one of the second card and the first card in the display area according to the target height of the container according to the card aggregation comprises: Under the condition that the card aggregation mode is vertical aggregation, determining an adjusted first height and an adjusted second height according to the sliding operation, wherein the sum of the adjusted first height and the adjusted second height is the target height; Adjusting the first card according to the adjusted first height, and adjusting the second card according to the adjusted second height; And displaying the adjusted first card and the adjusted second card in the display area.
- 7. The method of claim 6, wherein the determining the adjusted first height and the adjusted second height according to the sliding operation comprises: Determining a sliding distance according to the sliding operation, and calculating a second adjustment ratio according to the sliding distance and a preset arrangement distance between two adjacent cards loaded in the container; and determining the adjusted first height according to the first height and the second adjusting proportion, and determining the adjusted second height according to the second height and the second adjusting proportion.
- 8. The method of claim 6, wherein said adjusting the first card according to the adjusted first height and adjusting the second card according to the adjusted second height comprises: cutting the first card along a first direction according to the adjusted first height to obtain the adjusted first card, and cutting the second card along the first direction according to the adjusted second height to obtain the adjusted second card.
- 9. The method of claim 1, wherein the displaying at least one of the second card and the first card in the display area according to the target height of the container according to the card aggregation comprises: Under the condition that the card aggregation mode is stacking aggregation, determining an adjusted first height according to the sliding operation; Adjusting the first card according to the adjusted first height, and adjusting the second card according to the target height; And displaying the adjusted first card and the adjusted second card in the display area.
- 10. The method of claim 9, wherein the determining the adjusted first height according to the sliding operation comprises: Determining a sliding distance according to the sliding operation, and calculating a third adjustment ratio according to the sliding distance and a preset arrangement distance between two adjacent cards loaded in the container; and determining the adjusted first height according to the first height and the third adjusting proportion.
- 11. The method of claim 9, wherein said adjusting the first card according to the adjusted first height and adjusting the second card according to the target height comprises: cutting the first card along a first direction according to the adjusted first height to obtain the adjusted first card, and cutting the second card along the first direction according to the target height to obtain the adjusted second card.
- 12. The method of any one of claims 4, 5, 8, 11, wherein the method further comprises: and carrying out round corner treatment on the target angle of the card displayed in the display area, wherein the target angle is formed by cutting according to the sliding operation.
- 13. The method of any of claims 1-11, wherein after the display area displays at least one of the second card and the first card at the target height of the container, the method further comprises: And adjusting the position of the display object outside the display area in the display list according to the target height.
- 14. A card aggregation device comprising a memory, a processor, the memory storing a computer program executable by the processor, the computer program when executed by the processor implementing the card aggregation method of any one of claims 1-13.
- 15. A computer readable medium having stored thereon a computer program, wherein the program when executed implements the card aggregation method of any one of claims 1-13.
- 16. A computer program product comprising a computer program which, when executed by a processor, implements the card aggregation method of any one of claims 1-13.
Description
Card aggregation method, card aggregation device, readable medium and computer product Technical Field The present disclosure relates to the field of computer technologies, and in particular, to a card aggregation method, a card aggregation device, a readable medium, and a computer product. Background With the development of technology, various functions provided by application programs (APP) in mobile terminals are increasing, and operations are becoming more and more complex. For ease of operation, each application interface is typically displayed by a list containing a plurality of cards. Because of the large number of cards and the limited screen size, multiple cards are typically presented in an aggregated fashion. However, in the related art, only cards of the same size can be polymerized together, and there is a great limitation on the cards polymerized together. Disclosure of Invention The present disclosure provides a card aggregation method, apparatus, readable medium and computer product. In a first aspect, an embodiment of the present disclosure provides a card aggregation method, including: under the condition that a display area for displaying a first card receives a sliding operation and the sliding direction of the sliding operation is matched with a card aggregation mode, determining a next second card of the first card corresponding to the sliding operation according to a card sequence of loaded cards in a container; And in the sliding operation process, determining the target height of the container according to the sliding operation, the first height of the first card and the second height of the second card, and displaying at least one of the second card and the first card according to the target height of the container in the display area according to the card aggregation mode. In a second aspect, an embodiment of the disclosure further provides a card aggregation device, including a memory and a processor, where the memory stores a computer program that can be executed by the processor, and the computer program implements the card aggregation method when executed by the processor. In a third aspect, the disclosed embodiments also provide a computer readable medium having a computer program stored thereon, wherein the program when executed implements the card aggregation method as described above. In a fourth aspect, the present disclosure further provides a computer program product comprising a computer program which, when executed by a processor, implements a card aggregation method as described above. The card aggregation method comprises the steps of determining a next second card of a first card corresponding to sliding operation according to a card sequence of loaded cards in a container under the condition that the display area of the first card is displayed and the sliding direction of the sliding operation is matched with a card aggregation mode, determining the target height of the container according to the sliding operation, the first height of the first card and the second height of the second card in the sliding operation process, and displaying at least one of the second card and the first card according to the target height of the container in the display area according to the card aggregation mode. In the embodiment of the disclosure, the height of the container can be changed along with the sliding operation, and the display height of the cards carried by the container is correspondingly changed, so that cards with different sizes and different types can be aggregated, the types and interface display effects of the cards are enriched, the application scene of card aggregation is increased, and the universality and the applicability are improved. Drawings In the drawings of the embodiments of the present disclosure: FIG. 1 is a schematic diagram of a card aggregation process provided in an embodiment of the disclosure; FIG. 2a is a schematic diagram of a lateral aggregation and sliding direction provided by an embodiment of the present disclosure; fig. 2b is a schematic view of a vertical aggregation manner and a sliding direction according to an embodiment of the disclosure; FIG. 2c is a schematic diagram of a stacking aggregation and sliding direction provided by embodiments of the present disclosure; FIG. 3 is a graph comparing the card lateral switching effect in the related art with the card lateral switching effect in the embodiment of the disclosure; FIG. 4 is a schematic illustration of card cropping in a lateral aggregation mode in accordance with an embodiment of the present disclosure; FIG. 5 is a schematic illustration of a fillet treatment in a lateral aggregation mode according to an embodiment of the present disclosure; FIG. 6 is a schematic illustration of the cutting of cards in a vertical polymerization mode of the present disclosure; FIG. 7 is a schematic diagram of a fillet treatment in a vertical polymerization mode according to an embodiment of th