Card background processing method, device and storage medium

By obtaining and coloring the card-based background area, the problem that the highlighted areas in the prior art cannot fit the card-based background is solved, and better display effect and user experience are achieved.

CN117707366BActive Publication Date: 2024-11-05HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310960344.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2024-11-05
Estimated Expiration
2043-07-31

AI Technical Summary

Technical Problem

When the prior art realizes highlighting of a card-based background, the highlighting area cannot fit the card-based background area, resulting in poor display effect and affecting the user experience.

Method used

By obtaining the target channel information identification, the first user interface is associated with the second user interface, the card-based background area is obtained, and the coloring process is performed to achieve highlighting, so that the highlight area is fitted with the card-based background.

Benefits of technology

It improves the highlighting effect of the card background, improves the aesthetics and user experience of the user interface, and ensures the perfect fit between the highlighted area and the card-based background.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117707366B_ABST
    Figure CN117707366B_ABST
Patent Text Reader

Abstract

The present application provides a card background processing method, device and storage medium. The present application obtains the target channel information identifier corresponding to the first button in response to the user's click operation on the first button in the first user interface, jumps from the first user interface to the second user interface according to the target channel information identifier, and obtains the card-based background area corresponding to the second button; performs coloring processing on the card-based background area to obtain the processed card background; and displays the card with the processed card background in the second user interface. In the present application, the card-based background area can be colored so that the processed card background fits the range of the card, improves the display effect, and enhances the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of terminal technology, various intelligent electronic devices play an increasingly important role in people's daily life, and people have higher requirements for the aesthetics of the user interface of electronic devices. Among them, carding buttons in the user interface is a way to improve the aesthetics of the user interface.

[0003] When a user jumps from the first user interface to the second user interface corresponding to the first button through the first button in the first user interface, the background of the second button corresponding to the first button in the second user interface is usually highlighted to prompt the user that the second button is the button associated with the first button. This is to facilitate the user to quickly find the second button corresponding to the first button in the second user interface and operate the second button.

[0004] Currently, the background corresponding to the second button is highlighted by overlaying an image view (ImageView) control on the view (View) control corresponding to the second button. However, due to business needs, each button in the second user interface needs to be carded, and the image view control cannot adapt to the background range corresponding to the carded second button, so that the highlighted area cannot fit the carded background area, which leads to poor display effect. Summary of the invention

[0005] The card-based background highlighting method, device and storage medium provided in the present application aim to solve the problem of poor display effect after processing the card-based background.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] First aspect: The present application provides a method for processing a card background, by responding to a user's click operation on a first button in a first user interface, obtaining a target channel information identifier corresponding to the first button, the target channel information identifier being used to associate the first button with a second button in a second user interface; according to the target channel information identifier, jumping from the first user interface to the second user interface, and obtaining a cardized background area corresponding to the second button; coloring the cardized background area to obtain a processed card background; and displaying a card with the processed card background in the second user interface.

[0008] In the present application, a card-based background area can be obtained and colored to achieve a highlighted display of the card background of the second button, so that the highlighted area can fit the card-based background area well, thereby improving the display effect and enhancing the user experience.

[0009] In a possible implementation, the cardized background area is colorized to obtain the processed card background, including: determining a starting color value and an ending color value from a color table; and sequentially playing the colors of the cardized background area from the starting color value to the ending color value to obtain the processed card background. The dynamic display of the card background is thus achieved, which can further attract the user's attention, improve the display effect, and enable the user to find the second button more quickly.

[0010] In a possible implementation, coloring is performed on the cardized background area to obtain a processed card background, including: adjusting the color of the cardized background area to a target color to obtain the processed card background.

[0011] In a possible implementation, the target color is determined from a color table in response to a user's color setting operation. Thus, the user can select the target color to color the cardized background area, thereby improving the display effect and the user's experience.

[0012] In a possible implementation, obtaining the cardized background area corresponding to the second button includes: calling a delay function to delay for a preset time to obtain the cardized background area corresponding to the second button.

[0013] In one possible implementation, based on the target channel information identifier, jumping from the first user interface to the second user interface and obtaining the card-based background area corresponding to the second button includes: based on the target channel information identifier, jumping from the first user interface to the second user interface and obtaining the position of the card corresponding to the second button; based on the position, obtaining the card-based background area corresponding to the position.

[0014] In a possible implementation, at least one third button is displayed in the second user interface, and the card of the third button is adjacent to the card of the second button. According to the target channel information identifier, the first user interface jumps to the second user interface, and the cardized background area corresponding to the second button is obtained, including: according to the target channel information identifier, the first user interface jumps to the second user interface, and the card background information corresponding to the second button is obtained, the card background information includes the cardized background area corresponding to the second button, and the card dividing line corresponding to the second button, and the card dividing line is located between the card of the second button and the card of the third button; from the card background information corresponding to the second button, the cardized background area corresponding to the second button is called. Therefore, in the present application, only the cardized background area can be colored without affecting the color of the card dividing line.

[0015] In a possible implementation, the color table includes at least one of a red, green, and blue (RGB) color table and a red, green, and blue (ARGB) color table with transparency.

[0016] Second aspect: The present application provides an electronic device, which includes a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute the steps of a card background processing method described in the first aspect above according to the instructions in the program code.

[0017] Third aspect: The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a card background processing method as described in the first aspect above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a schematic diagram of the background highlight before cardization;

[0019] Figure 2 A schematic diagram of background highlighting after carding;

[0020] Figure 3 This is another schematic diagram of background highlighting after carding;

[0021] Figure 4 A schematic diagram of an application scenario for card background processing provided in an embodiment of the present application;

[0022] Figure 5 A timing diagram of a card background processing method provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of a first notification management interface provided in an embodiment of the present application;

[0024] Figure 7 A schematic diagram of a second notification management interface provided in an embodiment of the present application;

[0025] Figure 8 A schematic diagram of a third notification management interface provided in an embodiment of the present application;

[0026] Fig. 9 A schematic diagram of realizing dynamic display of card background provided in an embodiment of the present application;

[0027] Fig.10 A schematic diagram of highlighting the inner area of ​​a card background provided in an embodiment of the present application;

[0028] Fig.11 A timing diagram of a method for processing the inner area of ​​a card background provided in an embodiment of the present application;

[0029] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0030] Fig.13 It is a software structure block diagram of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] The terms "first", "second", and "third" in the specification, claims, and drawings of this application are used to distinguish different objects rather than to limit a specific order. In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0032] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:

[0033] The View control is the base class of controls, such as buttons and text boxes (TextView). Their base classes are all View, which is an abstraction of the interface layer control and represents a control.

[0034] When a user jumps from a first user interface to a second user interface corresponding to the first button through a first button in the first user interface, in order to facilitate the user to quickly find the second button corresponding to the first button in the second user interface so as to operate the second button, a layer of image view (ImageView) control is usually overlaid on the view (View) control corresponding to the second button to realize the highlighting of the card background of the second button.

[0035] Specifically, the image view control can be used to display image resources, such as bitmap resources (Bitmap) or drawable resources (Drawable), etc. The image view control is also often used to set the image tone mode and process image scaling, etc. Therefore, by setting the parameters of the image view control, the color of the background corresponding to the second button is adjusted, so as to achieve the highlight display of the background. However, due to business needs, the second button needs to be carded. In this case, the method of overlaying a layer of image view control on the view control cannot adapt to the background area corresponding to the carded second button, that is, the highlighted area cannot fit the carded background area, which leads to the problem of poor display effect.

[0036] like Figure 1 As shown, Figure 1 This is a schematic diagram of the background highlight before cardization. The notification interface displays buttons corresponding to Notification 1, Notification 2, and Notification 3. The user can click the button corresponding to Notification 1 in the notification interface, so that the user interface of the electronic device jumps from the notification interface to the notification management interface associated with the button corresponding to Notification 1. Exemplarily, in the notification management interface associated with the button corresponding to Notification 1, Notification Category 1, Notification Category 2, and Notification Category 3 are displayed. When the notification category corresponding to Notification 1 is Notification Category 3, Notification Category 3 is the target notification category. When the background area of ​​the notification category in the notification management interface is not cardized, the highlighted area covers the entire row list corresponding to Notification Category 3.

[0037] However, in order to improve the aesthetics of the user interface, the background area of ​​the button in the user interface needs to be carded, such as Figure 2 As shown in the figure, it is a schematic diagram of background highlight after cardization. Similarly, when the user clicks the button corresponding to Notification 1 in the notification interface, the user interface jumps to the notification management interface corresponding to the button corresponding to Notification 1. If the background area of ​​the button is carded, since the current background highlighting method is implemented by overlaying a layer of image view control on the view control corresponding to the target notification category, for the carded background area, the highlighted area cannot fit the carded background area.

[0038] On the one hand, when the user jumps from the first user interface to the second user interface in response to a click operation of the first button in the first user interface, the card-like background area of ​​the second button in the second user interface is at a certain distance from the left and right sides of the second user interface, such as Figure 2 As shown in , by overlaying a layer of image view control on the view control corresponding to the target notification category, the highlighted area presented will exceed the range of the card, resulting in poor display effect after the background of the card is processed, thereby reducing the user experience.

[0039] On the other hand, since the image view control cannot perform rounded corners, the shape of the highlight area implemented by the image view control is rectangular, and the background area corresponding to the card of the notification category may need to be rounded to make the card presentation more beautiful, such as Figure 3 As shown in the figure, this is another schematic diagram of background highlight after cardization. Based on the method of overlaying a layer of image view control on the view control corresponding to the target notification category, even if the length of the highlight area can be made to fit the length of the card, it is difficult to fit the rounded corner design of the card, such as Figure 3 In the lower left corner 1001 of the middle highlight area, the highlight area still exceeds the card-like background area, so that the highlight area cannot completely fit the card-like background area, resulting in poor display effect.

[0040] Based on this, an embodiment of the present application provides a method for processing a card background. In response to a user clicking a first button in a first user interface, the electronic device obtains a target channel information identifier corresponding to the first button. Since the target channel information identifier is used to associate the first button with the second button in the second user interface, based on the target channel information identifier, it is possible to jump from the first user interface to the second user interface, and obtain a card-based background area corresponding to the second button. The card-based background area is colorized to obtain a processed card background, and a card with the processed card background is displayed in the second user interface, so that the user can quickly find the second button in the second user interface. Since the card-based background area is obtained in the present application, the card-based background area is colorized to achieve a highlighted display of the card background of the second button, so that the highlighted area can fit the card-based background area well, thereby improving the display effect and the user's experience.

[0041] For ease of understanding, the following Figure 4 Taking the notification interface as the first user interface, the button corresponding to more setting options as the first button, the target notification management interface as the second user interface, and the button corresponding to the target notification category as the second button as an example, the application scenario of the card background processing method provided in this application is introduced.

[0042] like Figure 4 As shown in FIG. 1 , the figure is a schematic diagram of an application scenario of a card background processing provided by an embodiment of the present application. By pulling down the status bar 1100, the user can enter the notification interface of the electronic device. Exemplarily, at least one notification message is displayed in the notification interface. Among them, the notification information comes from various applications, such as Figure 4 In the notification interface shown, the first notification information 1101 comes from the health use mobile phone application, the second notification information 1102 comes from the Android system application, and the third notification information 1103 comes from the application store application. Specifically, one application can correspond to multiple notification information. In this case, multiple notification information can be listed and displayed to facilitate the user to set the target notification information.

[0043] The following description will be made by taking the first notification information 1101 as an example.

[0044] When the user wants to set the first notification information 1101, slide the option box of the first notification information 1101 to the left, and then a setting button 1201 and a delete button 1202 will be displayed on the right side of the option box of the first notification information 1101. The user can delete the first notification information 1101 by clicking the delete button 1202, that is, the first notification information 1101 is temporarily not displayed in the current notification interface. If the user wants to set the first notification information 1101, he can click the setting button 1201 corresponding to the first notification information 1101.

[0045] After the user clicks the setting button 1201 corresponding to the first notification information 1101, an information box 1300 will pop up in the notification interface of the electronic device. Exemplarily, four options are provided in the information box 1300, including a set silent notification option, a delayed reminder option, more settings options, and a cancel option. Among them, the user can set the notification mode of the first notification information 1101 to silent by clicking the set silent notification option, so that after receiving the first notification information 1101 later, there will be no prompts such as prompt sound, vibration, and banner on the electronic device, and only the first notification information 1101 will be displayed on the notification interface. The user can view the first notification information 1101 by pulling down the notification bar. The user can delay the reminder of the notification 1 by clicking the delayed reminder option. For example, when the delay time is 5 minutes, after the user clicks the delayed reminder option, the first notification information 1101 can be displayed again in the notification interface 5 minutes after clicking the delayed reminder option, and the user is reminded that the first notification information 1101 has been issued by the mobile phone application in the form of prompt sound, vibration or banner. The user can exit the information box by canceling the option.

[0046] If the user needs to make other settings for the first notification information 1101, the user can click on the more settings option in the information box 1200 so that the user interface displayed by the electronic device can jump from the notification interface to the notification management interface corresponding to the first notification information 1101. In the notification management interface corresponding to the first notification information 1101, all notification categories corresponding to the application to which the first notification information 1101 belongs are displayed. The user needs to click on the notification category corresponding to the first notification information 1101 to enter the setting interface corresponding to the first notification information 1101. However, when there are a large number of notification categories corresponding to the application described in the first notification information 1101, it is usually difficult for the user to determine and quickly find the notification category corresponding to the first notification information 1101. In order to facilitate the user to quickly find the notification category corresponding to the first notification information 1101, when the user interface jumps from the notification interface to the notification management interface, the background area of ​​the notification category corresponding to the first notification information 1101 is highlighted. This prompts the user that the notification category is the notification category corresponding to the first notification information 1101, which makes it easy for the user to quickly find the notification category and enter the setting interface corresponding to the first notification information 1101 by clicking on the notification category to make relevant settings for the first notification information 1101.

[0047] For example, taking the health usage mobile phone application corresponding to the first notification information 1101 as an example, the notification management interface corresponding to the first notification information 1101 includes two notification categories, namely "time reminder" and "usage statistics". Among them, "usage statistics" is the notification category corresponding to the first notification information 1101. After entering the notification management interface, the background of the card corresponding to "usage statistics" is highlighted to prompt the user to click "usage statistics" to make relevant settings for the first notification information 1101.

[0048] Specifically, in order to make the card corresponding to "usage statistics" more eye-catching, the background of the card can be changed dynamically, for example, the background of the card can be changed from transparent to dark, and then from dark back to transparent, and repeated n times (n is a positive integer), thereby realizing the dynamic change of the card background, so that the user can find the notification category corresponding to the notification information more quickly. In this application, when highlighting the background of the card, the highlighted area can fit the background range of the card, thereby improving the display effect and enhancing the user's experience.

[0049] After the user clicks "Usage Statistics", the user can enter the setting interface corresponding to the first notification information 1101. In the setting interface, two setting options can be seen, namely, the Allow Notification Option and the Silent Notification Option. The user can make corresponding settings according to needs. For example, if the buttons corresponding to the Allow Notification Option and the Silent Notification Option are currently turned on, the user can slide the button of the Allow Notification Option to the left to turn off the notification, such as Figure 4 as shown in .

[0050] The following combines the above scenarios and Figure 5 , the card background processing method provided in the embodiment of the present application is introduced, wherein Figure 5 A timing diagram of a card background processing method provided in an embodiment of the present application. Exemplarily, in the present application, the first user interface is taken as the notification interface, the first button is the button corresponding to the more setting options corresponding to the target notification information, and the information corresponding to the first button is the target notification information, the second user interface is the notification management interface corresponding to the target notification information, that is, the target notification management interface, and the button corresponding to the target notification category described in the target notification information is the second button.

[0051] S101. A click control of an electronic device obtains a click operation of a user.

[0052] Specifically, the user's click operation may be a click operation of the user on the first button in the first user interface. For example, when the user needs to make relevant settings for the target notification information in the notification interface, the user may click a setting button corresponding to the target notification information in the notification interface.

[0053] The notification interface may include one or more notification information, wherein the notification information comes from the application software of the electronic device. Exemplarily, the notification interface may display notification information of multiple application software, or different notification information from the same application software. The target notification information is the notification information clicked by the user in the notification interface of the electronic device.

[0054] Specifically, the user can enter the notification interface in the unlocked state or in the locked state. Taking the unlocked state as an example, the user can enter the notification interface by sliding down the status bar notification from any user interface in the unlocked state to enter the notification interface.

[0055] The user can operate the target notification information that he needs to set in the notification interface. For example, the user can slide the option box corresponding to the target notification information to the left. At this time, a setting button and a delete button will appear on the right side of the option box corresponding to the target notification information. The setting button is the setting button corresponding to the target notification information. After the user clicks the setting button, the notification interface will pop up an information box corresponding to the target notification information. The user clicks the "More Settings" option in the information box to enter the notification management interface corresponding to the target notification information. The notification management interface corresponding to the target notification information is the target notification management interface.

[0056] The target notification management interface displays at least one notification category corresponding to the target application software, wherein the target notification information is the notification information from the target application software, and the notification category to which the target notification information belongs, that is, the target notification category is one of the notification categories corresponding to the target application software.

[0057] S102: The click control of the electronic device responds to the click operation of the user and sends event information corresponding to the click operation to the system user interface (SystemUI).

[0058] The click control may be a first button in the first user interface, and is used to detect whether a click event occurs. The click event corresponds to a click operation of the user, that is, when the user clicks the click control, it indicates that a click event occurs. Exemplarily, the click control of the electronic device may correspond to more setting options of the target notification information. When the user clicks more setting options of the target notification information, the click control corresponding to the more setting options may detect that a click event occurs.

[0059] After the click control corresponding to the more settings option detects a click event, it can send event information corresponding to the click event of the user clicking the more settings option to the system user interface. The event information is used to indicate that the more settings option clicked by the user corresponds to the target notification information, so that the subsequent system user interface can obtain the channel information identifier corresponding to the target notification information based on the event information.

[0060] Specifically, when the electronic device is in a locked screen state or a non-locked screen state, the user can enter the notification management interface corresponding to the target notification information by clicking the click control of the electronic device, that is, by clicking the first button of the electronic device. In a possible implementation, when the electronic device is in a locked screen state, the notification message can be directly displayed on the screen, that is, when the electronic device is in a locked screen state, after receiving the notification message, the notification interface can be directly entered to prompt the user to pay attention to the notification message. When the electronic device is in a locked screen state, the user can enter the notification interface by pulling down the status bar to obtain the notification message.

[0061] S103: The system user interface of the electronic device obtains the channel information identifier (channelID) corresponding to the target notification information, and jumps to the target notification management interface of the system manager.

[0062] Specifically, the system user interface of the electronic device can obtain the channel information identifier corresponding to the target notification information based on the event information sent by clicking the control, and send the channel information identifier corresponding to the target notification information to the system manager through a bundle.

[0063] Among them, the bundle is mainly used to store and transfer data. It saves data in the form of key-value. It can transfer basic types such as bytes, integer types (int), and strings or their corresponding arrays, objects or object arrays.

[0064] When the first user interface jumps from the second user interface, that is, when the notification interface jumps to the target notification management page, the system user interface sends a bundle package to the system manager, where the bundle package may include the parameter application package name and the corresponding channel information identifier.

[0065] The channel information identifier (channelID) is used to associate the first button in the first user interface with the second button in the second user interface, that is, to associate the button corresponding to the more setting options of the target notification information with the button corresponding to the target notification category in the target notification management interface, so as to facilitate the subsequent jump from the first user interface to the second user interface based on the target channel information identifier, and obtain the card-based background area corresponding to the second button. Exemplarily, each notification message corresponds to a unique channel information identifier, and based on the channel information identifier corresponding to the target channel message, the target application software corresponding to the target notification message and the corresponding target notification category can be known.

[0066] S104. The system manager (SystemManager) obtains the location of the card of the target notification category based on the channel information identifier.

[0067] Specifically, after obtaining the target notification information, the system manager can know that the second button corresponds to the first button based on the channel information identifier, and jump from the first user interface where the first button is located to the second user interface where the second button is located, and then obtain the position of the card corresponding to the second button. Exemplarily, after obtaining the channel information identifier corresponding to the target notification information, the system manager can know the target notification category corresponding to the target notification information based on the channel message identifier, and then obtain the position of the cardized background area of ​​the target notification category.

[0068] In a possible implementation, carded background regions at different locations may have different shapes. For example, Figure 6-Figure 8 As shown, the figure is a schematic diagram of the first notification management interface provided by an embodiment of the present application, a schematic diagram of the second notification management interface provided by an embodiment of the present application, and a schematic diagram of the third notification management interface provided by an embodiment of the present application.

[0069] Figure 6In the example, the target application software corresponds to a notification category, and the four corners of the card corresponding to the notification category are all rounded, that is, the four corners have a certain curvature. Compared with the method of covering the previous layer of image view controls on the basis of the original view controls, which cannot achieve rounded corners, the method provided in the embodiment of the present application can make the highlight area fit the curved card-like background area, which can effectively improve the display effect and enhance the user experience.

[0070] Figure 7 In the target application, there are two notification categories, Figure 6 The difference between the cards in Figure 7 For the cards corresponding to the two notification categories in the , the two corners of each card are rounded, that is, for the adjacent sides of the two cards, the corners corresponding to the edge are right angles, and the corners corresponding to the non-adjacent sides are rounded, so as to enhance the overall display effect of the notification management interface.

[0071] Figure 8 In the target application, there are more than two notification categories. Figure 6 and Figure 7 The difference between the cards is that Figure 8 The cards corresponding to the topmost and bottommost notification categories shown in the figure, namely, the cards corresponding to notification category 1 and notification category 4, respectively adopt two rounded corners and two right-angled designs, while the cards in the middle position, namely, the cards corresponding to notification category 2 and notification category 3, all have right angles at all four corners to enhance the overall display effect of the notification management interface.

[0072] Therefore, the shape of the card corresponds to the position of the card. In the embodiment of the present application, the cardized background area corresponding to the card can be obtained based on the position of the card, so that the cardized background area can be highlighted to obtain the highlighted card to prompt the user the target notification category corresponding to the target notification information.

[0073] S105. The system manager sends a command to obtain the card background to the view control (View) according to the position of the card of the target notification category.

[0074] S106. The view control sends the cardized background area to the system manager in response to the instruction to obtain the card background.

[0075] Specifically, the system manager can obtain the card-based background area of ​​the target notification category from the view control according to the position of the card of the target notification category, thereby facilitating subsequent processing of the card-based background area of ​​the target notification category, so that the highlighted area fits the card-based background area, improving the display effect and thereby enhancing the user experience.

[0076] S107: The system manager performs coloring processing on the cardized background area to obtain a processed card background.

[0077] Specifically, the cardized background area is obtained, that is, the size, shape and other information of the cardized background area are obtained. When the system manager obtains the cardized background area, it means that it has obtained the size and shape of the cardized background area corresponding to the target notification category, and then the cardized background area can be colored to obtain the processed card background.

[0078] In an embodiment of the present application, the cardized background area can be obtained based on the binding view function (onBindView), wherein the onBindView function is mainly used to bind data to the view. Since the cardized background area cannot be obtained when onBindView is first called, in this case, the cardized background area can be delayed based on the delayed acquisition function, for example, the cardized background area can be delayed based on the view.post function.

[0079] In a possible implementation, after obtaining the cardized background area, the system manager may colorize the cardized background area based on the color value in the color table, that is, adjust the color of the cardized background area to the target color to obtain a processed card background. Exemplarily, the color table may be at least one of a red, green, and blue (RGB) color table and a red, green, and blue (ARGB) color table with transparency.

[0080] Among them, the red, green and blue color values ​​with transparency are ARGB values. ARGB is a color model, in which A represents transparency (Alpha), R represents red (Red), G represents green (Green), and B represents blue (Blue). ARGB values ​​can be used to represent colors, and an ARGB value contains four components: transparency, red, green and blue. Each component of ARGB has a corresponding value range and unit. For example, the transparency value ranges from 0 to 255, indicating the degree of transparency from completely transparent to completely opaque; the red, green and blue value ranges are also 0 to 255, indicating the brightness of the three colors red, green and blue.

[0081] In one possible implementation, the user can select a color value from the colors in the color table as the target color, and color the cardized background area based on the target color, that is, color the cardized background area based on the target color to obtain a processed card background, and the color of the processed card background is the target color. In the embodiment of the present application, the user can select the color of the highlighted area so that the color of the processed card background is the color selected by the user, thereby effectively improving the user experience. At the same time, if the user does not select the target color, the preset color value can be used as the target color, and the cardized background area can be highlighted based on the preset color value to obtain a highlighted card.

[0082] In one possible implementation, in order to make the processed card background more eye-catching and to better prompt the user of the target notification category corresponding to the target notification information so that the user can find the target notification category more quickly, in an embodiment of the present application, the background of the card can be dynamically highlighted based on a color value with transparency to achieve a flashing effect of the card background.

[0083] Specifically, Fig. 9 As shown, this figure is a schematic diagram of realizing dynamic display of card background provided by an embodiment of the present application. In response to the user clicking the first button, the channel information identifier corresponding to the first button is obtained, and the second user interface is jumped to. The view control in the system manager obtains the cardized background area, and the cardized background area is colored based on the estimator (ValueAnimator) to realize the dynamic effect of the card background.

[0084] Specifically, the estimator can be based on the starting color value and the ending color value, and can achieve a flashing effect on the card background by sequentially executing n times (n is a positive integer) from the starting color value to the ending color value and then from the ending color value to the starting color value.

[0085] Exemplarily, to achieve a flashing effect on the card background, the color of the carded background area can be changed from a starting color value to an ending color value, and then from an ending color value to a starting color value, and repeated three times, thereby making the highlighted area more eye-catching. While ensuring the display effect, it allows users to find the target notification category more quickly.

[0086] S108. The system manager sends the processed card background to the view control.

[0087] S109. The view control displays the processed card background on the notification management interface.

[0088] Specifically, the view control displays the processed card background in the notification management interface, that is, in the second user interface, a card with the processed card background is displayed so that the user can quickly find the second button in the second user interface.

[0089] To summarize, in the present application, based on the channel information identifier corresponding to the first button, the background information of the card corresponding to the second button is obtained, and the background area of ​​the card is colored, that is, the card is highlighted with respect to the background range of the card, so that the highlighted area can fit the background range of the card. While reminding the user that the button corresponding to the processed card background is the second button corresponding to the first button, the display effect of the second user interface is improved, thereby enhancing the user experience.

[0090] Since the cardization uses a unified background, which is implemented by a layer overlay control (LayerDrawable), the card background information can be specifically divided into two parts: the card background internal area (shape), that is, the cardization background area, and the card dividing line (divider). Fig.10 As shown in the figure, this figure is a schematic diagram of highlighting the internal area of ​​the card background provided by an embodiment of the present application. In an embodiment provided by the present application, when highlighting the cardized background area, the cardized background area can be obtained from the card background information, and only the cardized background area is colored without affecting the color of the card dividing line 1400. Figure 10-11 The embodiments of the present application are introduced. Fig.11 A timing diagram of a method for processing the inner area of ​​a card background provided in an embodiment of the present application. It should be noted that the same parts as those in the above embodiment will not be repeated here.

[0091] Specifically, different from the above embodiment, at least one third button is displayed in the second user interface, and the card of the third button is adjacent to the card of the second button. According to the target channel information identifier, the user interface jumps from the first user interface to the second user interface, and the card background information corresponding to the second button is obtained. The card background information includes the range of the cardized background area corresponding to the second button, and the card dividing line corresponding to the second button, and the card dividing line is located between the card of the second button and the card of the third button; from the card background information corresponding to the second button, the cardized background area corresponding to the second button can be called.

[0092] After the system manager sends a command to obtain the card background to the view control (View) according to the position of the card of the target notification category, S201 can be executed, where the view control responds to the command to obtain the card background and sends the cardized background area in the card background information to the system manager.

[0093] Since only the cardized background area needs to be colored, there is no need to process the color of the card dividing line. Therefore, the system manager can obtain the cardized background area in the card background information of the target notification category from the view control according to the position of the card of the target notification category, without obtaining the card dividing line, so as to facilitate the subsequent processing of the cardized background area of ​​the target notification category, so that the highlighted area fits the cardized background area without affecting the color of the card dividing line, thereby improving the display effect and thus enhancing the user experience.

[0094] S202: The system manager performs coloring processing on the cardized background area in the card background information.

[0095] Similarly, in the embodiment of the present application, the card-based background area can be obtained based on the binding view function (onBindView), and the card-based background area can be obtained based on the view.post function with delay.

[0096] In a possible implementation, after obtaining the carded background area, the system manager may perform coloring processing on the carded background area based on a color value with transparency.

[0097] In one possible implementation, the user can select a color value from transparent colors as the target color, and color the cardized background area based on the target color, that is, color the cardized background area based on the target color to obtain a processed card background, the color of the cardized background area is the target color, and the color of the card dividing line is not affected.

[0098] In one possible implementation, in order to make the processed card background more eye-catching and to better prompt the user of the target notification category corresponding to the target notification information so that the user can find the target notification category more quickly, in an embodiment of the present application, the cardized background area can be dynamically highlighted based on a color value with transparency to achieve a flashing effect of the card background.

[0099] Specifically, the value controller (ValueAnimator) in the system manager can achieve a flashing effect of the card background based on the starting color value and the ending color value by sequentially changing from the starting color value to the ending color value and then from the ending color value to the starting color value n times (n is a positive integer).

[0100] After coloring the cardized background area to obtain the processed card background, as in the above embodiment, the system manager can send the highlighted card to the view control, and the view control will display the processed card background on the notification management interface.

[0101] To summarize, in this application, based on the channel information identifier corresponding to the first button, the cardized background area in the background information of the card corresponding to the second button, that is, the internal area of ​​the card background, is obtained, and the internal area of ​​the card background is colored. Without affecting the card dividing line, the processed card background is obtained, so that the highlighted area can fit the background range of the card, which can remind the user of the second button corresponding to the first button, while improving the display effect of the second user interface, thereby enhancing the user experience.

[0102] In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, etc. The present application does not impose any special restrictions on the specific form of the above electronic devices. In this embodiment, the structure of the electronic device may be as follows: Fig.12 As shown, this figure is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0103] like Fig.12 As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 130, a wireless communication module 140, a sensor module 150, a button 160, a motor 161, an indicator 162, and a display screen 163, etc. The sensor module 150 may include a pressure sensor 150A, a fingerprint sensor 150B, and a touch sensor 150C, etc.

[0104] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0105] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. For example, in the present application, the processor obtains a target channel information identifier corresponding to the first button in response to a user clicking a first button in a first user interface, and the target channel information identifier is used to associate the first button with a second button in a second user interface; jumps from the first user interface to the second user interface according to the target channel information identifier, and obtains a cardized background area corresponding to the second button; performs coloring processing on the cardized background area to obtain a processed card background; and displays a card with a processed card background in the second user interface.

[0106] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0107] 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.

[0108] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0109] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 150C, the charger, the flash, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 150C through the I2C interface, so that the processor 110 communicates with the touch sensor 150C through the I2C bus interface to realize the touch function of the electronic device.

[0110] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 163. The MIPI interface includes a display serial interface (DSI) and the like. In some embodiments, the processor 110 and the display screen 163 communicate via the DSI interface to implement the display function of the electronic device. Exemplarily, in the present application, the processor 110 and the display screen 163 communicate via the DSI interface to implement the display of the user interface, wherein the user interface may include a notification interface, a notification management interface, and a setting interface, etc.

[0111] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the display screen 163, the wireless communication module 140, the sensor module 150, etc. The GPIO interface can also be configured as an I2C interface, a MIPI interface, etc.

[0112] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0113] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, modem processor and baseband processor.

[0114] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the 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.

[0115] The mobile communication module 130 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 130 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 130 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 130 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 can be set in the same device as at least some of the modules of the processor 110.

[0116] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor displays an image or video through the display screen 163. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 130 or other functional modules.

[0117] The wireless communication module 140 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 140 can be one or more devices integrating at least one communication processing module. The wireless communication module 140 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 140 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 130, and the antenna 2 is coupled to the wireless communication module 140, so that the electronic device can communicate with the network and other devices through wireless communication technology.

[0118] The electronic device implements the display function through a GPU, a display screen 163, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 163 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 that execute program instructions to generate or change display information.

[0119] The display screen 163 is used to display images, videos, etc. The display screen 163 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 163, where N is a positive integer greater than 1.

[0120] A series of graphical user interfaces (GUIs) can be displayed on the display screen 163 of the electronic device, and these GUIs are the main screen of the electronic device. Generally speaking, the size of the display screen 163 of the electronic device is fixed, and only limited controls can be displayed on the display screen 163 of the electronic device. A control is a GUI element, which is a software component included in an application and controls all data processed by the application and interactive operations on the data. Users can interact with the control through direct manipulation to read or edit relevant information of the application.

[0121] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0122] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. For example, in this embodiment, the processor 110 may obtain the card background information corresponding to the target notification category by executing the obtain card background instruction stored in the internal memory 121, so as to highlight the cardized background area.

[0123] The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the electronic device (such as notification messages, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0124] The pressure sensor 150A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 150A can be set on the display screen 163. There are many types of pressure sensors 150A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 150A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 163, the electronic device detects the intensity of the touch operation based on the pressure sensor 150A. The electronic device can also calculate the touch position based on the detection signal of the pressure sensor 150A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0125] The fingerprint sensor 150B is used to collect fingerprints. The electronic device can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, etc. For example, in the embodiment of the present application, based on the fingerprint sensor 150B, it can be detected whether the current user is qualified to perform relevant setting operations on the target notification message, thereby improving security.

[0126] The touch sensor 150C is also called a "touch control device". The touch sensor 150C can be set on the display screen 163, and the touch sensor 150C and the display screen 163 form a touch screen, also called a "touch control screen". The touch sensor 150C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 163. In other embodiments, the touch sensor 150C can also be set on the surface of the electronic device, which is different from the position of the display screen 163. Exemplarily, in an embodiment of the present application, based on the touch sensor 150C, the user can touch the display screen to click the setting button corresponding to the target notification information, and then enter the target notification management interface.

[0127] The key 160 includes a power key, a volume key, etc. The key 160 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.

[0128] Motor 161 can generate vibration prompts. Motor 161 can be used for receiving notification information prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as clicking the setting button corresponding to the target notification information, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 163, motor 161 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0129] The indicator 162 may be an indicator light, which may be used to indicate receipt of a notification information message, etc.

[0130] In addition, an operating system is running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on the operating system.

[0131] The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0132] Fig.13 It is a software structure block diagram of the electronic device according to an embodiment of the present application.

[0133] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into an application layer, an application framework layer, and an application framework layer.

[0134] The application layer can include a series of application packages. Fig.13 As shown, the application package may include applications such as healthy use of mobile phones, Android systems, and app stores.

[0135] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Fig.13As shown, the application framework layer may include a window manager, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0136] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0137] The view system includes visual controls, such as click controls, view controls, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, it includes a notification interface, a notification management interface, etc.

[0138] The system manager provides various resources for the application. For example, in an embodiment of the present application, the system manager can respond to the get card background instruction sent by clicking the control, and obtain the location of the card corresponding to the target notification category based on the channel information identifier of the target notification information.

[0139] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager can be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc. In an embodiment of the present application, the user can enter the notification interface by pulling down the system top status bar to perform relevant setting operations on the target notification information.

[0140] The system user interface layer is the interface between the software and the user, and it is responsible for receiving the user's input and displaying the software's output. Specifically, in response to the user clicking the first button in the first user interface, the user jumps from the first user interface to the second user interface. Exemplarily, in an embodiment of the present application, based on a click operation, the user can jump from the notification interface to the target notification management interface corresponding to the target notification information. The target notification management interface displays at least one notification category corresponding to the target application software, wherein the carded background area corresponding to the target notification category corresponding to the target notification information has a highlight display effect, thereby prompting the user to perform corresponding setting operations on the target notification information through the target notification category.

[0141] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS and Windows.

[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A card background processing method, characterized in that: include: In response to a user clicking operation on a first button in a first user interface, acquiring a target channel information identifier corresponding to the first button, wherein the target channel information identifier is used to associate the first button with a second button in a second user interface; According to the target channel information identifier, jump from the first user interface to the second user interface, and obtain a cardized background area corresponding to the second button, the cardized background area is a background area corresponding to the second button in a card form, and the second button in a card form is obtained by cardizing the second button; Performing coloring processing on the cardized background area to obtain a processed card background; In the second user interface, a card having the processed card background is displayed.

2. The method according to claim 1, characterized in that The coloring process is performed on the cardized background area to obtain a processed card background, including: Determine the starting color value and the ending color value from the color table; For the color of the cardized background area, sequentially play from the starting color value to the ending color value to obtain a processed card background.

3. The method according to claim 1, characterized in that The coloring process is performed on the cardized background area to obtain a processed card background, including: The color of the cardized background area is adjusted to a target color to obtain a processed card background.

4. The method according to claim 3, characterized in that The target color is determined from a color table in response to a color setting operation by a user.

5. The method according to claim 1, characterized in that The obtaining of the cardized background area corresponding to the second button includes: The delay function is called to delay a preset time to obtain the card-based background area corresponding to the second button.

6. The method according to claim 1, characterized in that The step of jumping from the first user interface to the second user interface according to the target channel information identifier and acquiring the card-based background area corresponding to the second button includes: According to the target channel information identifier, jump from the first user interface to the second user interface, and obtain the position of the card corresponding to the second button; According to the position, a cardized background area corresponding to the position is obtained.

7. The method according to claim 1, characterized in that At least one third button is displayed in the second user interface, and a card of the third button is adjacent to a card of the second button. Jumping from the first user interface to the second user interface according to the target channel information identifier and acquiring a cardized background area corresponding to the second button includes: According to the target channel information identifier, jump from the first user interface to the second user interface, and obtain card background information corresponding to the second button, wherein the card background information includes a cardized background area corresponding to the second button and a card dividing line corresponding to the second button, wherein the card dividing line is located between the card of the second button and the card of the third button; The cardized background area corresponding to the second button is called from the card background information corresponding to the second button.

8. The method according to any one of claims 2 to 4, characterized in that: The color table includes at least one of a red, green, and blue (RGB) color table and a red, green, and blue (ARGB) color table with transparency.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the steps of a card background processing method as described in any one of claims 1-8 according to the instructions in the program code.

10. 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 a processor, the steps of a card background processing method as described in any one of claims 1 to 8 are implemented.