Screen status bar display processing method and device, equipment and storage medium
By hiding and displaying status bar icons in response to user operations and dynamically adjusting their position, the error touch problem caused by the overlap of Android's native status bar and application interface is solved, reducing development costs and improving user experience and security.
Patent Information
- Application Number
- CN202411116322.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-13
AI Technical Summary
In the car screen, the overlap of Android's native status bar and application interface content makes it easy for users to touch it by mistake. The existing technology requires adaptation to each application, which is costly to develop and may affect security.
By responding to user actions, the status bar icons are hidden and displayed, and the user can dynamically adjust the position and content of the status bar to avoid mist touching, and use touch pressure values and animation hiding time to control the icon hiding speed.
Reduces user mistouching, reduces development workload, improves user experience, and improves security without affecting the display of important status information.
Smart Images

Figure CN119127026A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a display processing method, device, equipment and storage medium for a screen status bar. Background Art
[0002] With the development of vehicle technology, many operating functions are operated through the car screen, such as opening video applications or music applications on the car screen.
[0003] For the Android native status bar window, the status bar window is displayed at the top of the screen by default. When the screen height is limited, the touch interaction of the application interface will be relatively high. When the user wants to trigger the content of the application interface, because the status bar and the application interface content overlap or are close, the interaction of the status bar is actually triggered.
[0004] Therefore, how to design and manage the status bar to prevent users from accidentally touching it is an urgent problem to be solved. Summary of the invention
[0005] One of the purposes of the present invention is to provide a display processing method for a screen status bar to solve the problem of users accidentally touching the status bar and application interface content during the interaction process; the second purpose is to provide a display processing device for a screen status bar; the third purpose is to provide a terminal device; and the fourth purpose is to provide a storage medium.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, the present invention provides a display processing method of a screen status bar, wherein a display interface of the screen is provided with a status bar, and the method comprises:
[0008] In response to a first touch operation of a user on any target icon in the status bar, icons on the left and / or right of the target icon are controlled to be hidden and displayed.
[0009] According to the above technical means, the icons in the status bar can be partially or completely hidden, which can reduce the phenomenon of accidental touches during user interaction. In addition, the hiding method of this technical means does not require adaptation for each application, is more applicable, and reduces development workload.
[0010] Furthermore, the method further comprises:
[0011] In response to a second touch operation of the user on the status bar behind the hidden icon, the hidden icon is displayed in the status bar.
[0012] Through the above technical means, a simple interaction method can be provided when the user needs to view the status bar icon.
[0013] Furthermore, the method further comprises:
[0014] In response to a third touch operation performed by the user on the status bar behind the hidden icon, the status bar behind the hidden icon is controlled to move to a position indicated by the third touch operation.
[0015] Through the above-mentioned technical means, some icons in the screen status bar can be folded and moved to other locations to further avoid obstruction and accidental touches.
[0016] Furthermore, before controlling the icons on the left and / or right of the target icon to be hidden and displayed in response to the user's first touch operation on any target icon in the status bar, the method further includes:
[0017] In response to a fourth touch operation performed by the user on the status bar in front of the hidden icon, the status bar in front of the hidden icon is controlled to move to a position indicated by the fourth touch operation.
[0018] Through the above technical means, the user can move the status bar to any position on the screen, which can prevent the status bar from blocking the content or avoid accidental touches caused by the status bar being too close to the content.
[0019] Further, the controlling the hiding of icons on the left and / or right of the target icon includes:
[0020] If the first touch operation is a left sliding operation, the icon on the right side of the target icon is controlled to be hidden and displayed below the target icon;
[0021] If the first touch operation is a right sliding operation, the icon on the left side of the target icon is controlled to be hidden and displayed below the target icon;
[0022] If the first touch operation is a long press operation, the icons on the left and the icons on the right of the target icon are controlled to be hidden and displayed below the target icon.
[0023] Through the above technical means, a method is provided for users to freely choose which icons to hide, thereby improving user experience.
[0024] Further, controlling the icons on the left and / or right of the target icon to be hidden and displayed includes:
[0025] Acquire a pressure value of the first touch operation;
[0026] Determining the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table, wherein the standard force level comparison table includes a mapping relationship between the pressure value and the animation hiding time;
[0027] According to the animation hiding time, the icons on the left and / or right of the target icon are controlled to be hidden and displayed.
[0028] Through the above technical means, through the relationship between the touch pressure value and the hiding time, the user can change the speed of the hiding animation through the touch pressure, which can provide a variety of user experiences for the hiding animation.
[0029] Further, if the first touch operation is a left sliding operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes:
[0030] Get the target distance from the target icon to the right border of the status bar;
[0031] Determine the animation hiding speed according to the target distance and the animation hiding time;
[0032] The icon on the right side of the target icon is controlled to hide and display according to the animation hiding speed.
[0033] Through the above technical means, the animation hiding speed is determined according to the distance of the icon to be hidden, so the number of hidden icons also determines the hiding speed, thereby providing users with an interactive experience.
[0034] Further, if the first touch operation is a right sliding operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes:
[0035] Get the target distance from the target icon to the left border of the status bar;
[0036] Determine the animation hiding speed according to the target distance and the animation hiding time;
[0037] The icon on the left side of the target icon is controlled to hide and display according to the animation hiding speed.
[0038] Through the above technical means, the animation hiding speed is determined according to the distance of the icon to be hidden, so the number of hidden icons also determines the hiding speed, thereby providing users with an interactive experience.
[0039] Further, if the first touch operation is a long press operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes:
[0040] Obtain a first distance from the target icon to the left border of the status bar, and a second distance from the target icon to the right border of the status bar;
[0041] Determine a first animation hiding speed according to the first distance and the animation hiding time;
[0042] Determine a second animation hiding speed according to the second distance and the animation hiding time;
[0043] The icon on the left side of the target icon is hidden and displayed according to the first animation hiding speed, and the icon on the right side of the target icon is hidden and displayed according to the second animation hiding speed.
[0044] Through the above technical means, the animation hiding speed is determined according to the distance of the icon to be hidden, so the number of hidden icons also determines the hiding speed, thereby providing users with an interactive experience.
[0045] Further, determining the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table includes:
[0046] According to the pressure value obtained in real time and the preset standard force level comparison table, the animation hiding time of the icon shrinking to the bottom of the target icon is updated in real time.
[0047] Through the above technical means, the hiding speed can be changed according to the force applied by the user during the touch process, thereby providing the user with a variety of hiding interaction methods. When quick hiding is required, it can be achieved by simply increasing the force.
[0048] In a second aspect, the present invention further provides a display processing device for a screen status bar, the device comprising:
[0049] The control module is used to control the icons on the left and / or right of any target icon in the status bar to hide in response to a first touch operation of the user on the target icon.
[0050] In a third aspect, the present invention further provides a terminal device, comprising: a memory, a processor and a display;
[0051] The memory stores computer-executable instructions;
[0052] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method as described in any one of the first aspects.
[0053] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.
[0054] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method as described in any one of the first aspects.
[0055] In a sixth aspect, the present application also provides a car, comprising a terminal device that implements the above first aspect and / or various possible implementations of the first aspect.
[0056] Beneficial effects of the present invention:
[0057] (1) The present invention can partially hide the icons in the status bar according to the user's interactive operation, thereby reducing the phenomenon of accidental touches during user interaction.
[0058] (2) The present invention designs a hiding method for icons on the terminal device side, which does not require each application to be adapted separately. The hiding operation can be implemented in any scenario, which is more applicable and reduces the development workload.
[0059] (3) Users can dynamically adjust the status bar position and displayed content at will to further avoid accidental touches.
[0060] (4) When the user hides the icon through interaction, the hiding speed can be further adjusted according to the pressure during the interaction to enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 A schematic diagram of the display of the screen status bar provided by the present invention;
[0063] Figure 2 A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 1 ;
[0064] Figure 3 A schematic diagram of a display processing method of a screen status bar provided by the present invention;
[0065] Figure 4 A schematic diagram of another method for displaying a screen status bar provided by the present invention;
[0066] Figure 5 A schematic diagram of another method for displaying a screen status bar provided by the present invention;
[0067] Figure 6 A schematic diagram of another method for displaying a screen status bar provided by the present invention;
[0068] Figure 7 A schematic diagram of another method for displaying a screen status bar provided by the present invention;
[0069] Figure 8A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 2 ;
[0070] Fig. 9 A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 3 ;
[0071] Fig.10 A schematic diagram of the structure of a display processing device for a screen status bar provided by the present invention;
[0072] Fig.11 A schematic diagram of the structure of the terminal device provided by the present invention.
[0073] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0074] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0075] In vehicles, the vehicle operating system is mainly through the Android operating system, and for the Android native status bar window displayed on the vehicle screen, the status bar window is displayed at the top of the screen by default. However, since the status bar and the application interface are similar in content, users are prone to accidental touches, such as touching the application interface instead of the status bar when they want to touch the status bar, or touching the application interface instead of the status bar.
[0076] Figure 1 Schematic diagram of the display of the screen status bar provided by the present invention. Figure 1 As shown, a status bar is provided at the top of the display interface of the screen, and there are multiple icons in the status bar, four of which are shown in the figure. The status bar is close to the top of the application interface and is easy to be accidentally touched.
[0077] Therefore, how to avoid user accidental touches in interface management is an urgent problem to be solved.
[0078] Currently, the Android system provides an interface for hiding the status bar window for application adaptation. However, each application needs to be adapted, which is costly to develop. In addition, the information displayed in the status bar is generally important information (related to the vehicle status). Since the status bar of some interfaces is hidden, users cannot see the corresponding status information, which may pose a potential security risk.
[0079] In view of this, the inventor discovered during research in this field that the icons in the status bar can be folded under the icons required by the user and hidden for display. In this way, the number of icons in the status bar is reduced, which can prevent users from accidentally touching the icons, and no application adaptation is required.
[0080] The present invention can be used not only for car screens, but also for status bars in display screens of other devices to prevent users from accidentally touching them. For example, it can be used for mobile phone screens, tablet screens, screens of virtual reality devices, and screens of augmented reality devices.
[0081] It should be noted that the status bar can be located at the top, bottom, sides, or corners of the display interface. No matter where the status bar is set, as long as it is close to the application content and can easily cause accidental touches, the display processing method of the screen status bar proposed in this application can be applied.
[0082] The technical solution of the present invention is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0083] Figure 2 A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 1 ,like Figure 2 As shown, the following steps are included:
[0084] S10. In response to a first touch operation of the user on a target icon, control the icons on the left and / or right of the target icon to be hidden and displayed.
[0085] In this step, the user performs a first touch operation on any icon in the status bar on the screen. For the convenience of subsequent description, the icon touched by the first touch operation is referred to as the target icon in this solution. The first touch operation can be a click, a slide, a long press, etc. In response to the user's first touch operation on the target icon, the device controls the icons on the left and / or right of the target icon to hide and display. Among them, which icons are controlled to be hidden is determined according to a pre-designed rule.
[0086] The following describes how to hide the display icon with a specific embodiment.
[0087] In some embodiments, the first touch operation may be a long press operation. Figure 3 A schematic diagram of a display processing method of a screen status bar provided by the present invention, such as Figure 3 As shown, the user performs a first touch operation on the target icon, and the icons on both sides of the target icon in the status bar are hidden and displayed below the target icon.
[0088] In some embodiments, the user long presses the target icon to hide and display all icons to the left of the target icon in the status bar below the target icon.
[0089] In some embodiments, the user long presses the target icon to hide and display all icons to the right of the target icon in the status bar below the target icon.
[0090] In some embodiments, the user long presses the target icon to hide and display a specified number of icons on the left and / or right side of the target icon in the status bar below the target icon. For example, hide two icons on the left side of the target icon and / or hide two icons on the right side of the target icon. After hiding once, the user may feel that there are still too many remaining icons, and can long press the target icon again to hide and display the two icons on the left and / or right side of the target icon in the status bar again.
[0091] In some embodiments, the first touch operation may be sliding to the right. Figure 4 A schematic diagram of another method for displaying a screen status bar provided by the present invention is shown in FIG. Figure 4 As shown, when the user presses and holds the target icon and slides to the right, all icons on the left side of the target icon are moved to the right below the target icon to be hidden and displayed.
[0092] In some embodiments, the first touch operation is sliding to the left. Figure 5 A schematic diagram of another method for displaying a screen status bar provided by the present invention is shown in FIG. Figure 5 As shown, when the user presses and holds the target icon and slides to the left, all icons on the right side of the target icon are moved to the left below the target icon to be hidden and displayed.
[0093] In some embodiments, the first touch operation may be a double-click operation, where the user double-clicks the target icon to hide and display icons on both sides of the target icon in the status bar below the target icon.
[0094] After hiding the status bar icon, if the user needs to expand and display the icon, the user needs to perform a second touch operation on the hidden status bar.
[0095] It should be noted that the first touch operation of the user is performed on the target icon, and the display operation can be performed on the target icon or on the status bar.
[0096] In some embodiments, when the first touch operation to hide the icon is sliding to the left, the second touch operation to expand the icon is sliding to the right. Figure 6 A schematic diagram of another method for displaying a screen status bar provided by the present invention is shown in FIG. Figure 6 As shown, after hiding all icons to the right of the target icon under the target icon, when the user presses the target icon and slides to the right, the icons hidden under the target icon are sequentially expanded to the right. It should be noted that the pressing and sliding are continuous, and the time interval between them must be less than the preset interval, otherwise it is determined that the user triggers a long press operation.
[0097] In some embodiments, when the first touch operation to hide the icon is sliding to the right, the second touch operation to expand the icon is sliding to the left.
[0098] In some embodiments, when the first touch operation to hide the icons is a long press operation, the second touch operation to expand the icons is a long press operation, that is, the first long press collects all icons, and the second long press expands all icons.
[0099] In some embodiments, when the first touch operation to hide the icon is a double-click operation, the second touch operation to expand the icon may be a double-click operation or a triple-click operation.
[0100] Figure 7 A schematic diagram of another method for displaying a screen status bar provided by the present invention is shown in FIG. Figure 7 As shown, after hiding the status bar, the user can drag the hidden status bar to any position on the screen. In one implementation, the user long presses the status bar through the third touch operation to make the status bar movable and then moves it. The long press operation when moving the status bar needs to be at a different position from the operation of the user long pressing the target icon, and the long press operation when moving the status bar needs to operate the status bar.
[0101] In addition to long pressing and dragging, the third touch operation can also be performed through other operation methods, such as long pressing to make the status bar movable, and then clicking the target position to move the status bar to the target position, or long pressing to make the status bar movable, and then inputting the target position by voice. Exemplarily, the user inputs "move to the lower left corner" by voice; in another exemplary embodiment, the user inputs "hide the status bar" by voice.
[0102] In some embodiments, the user can move the status bar without hidden icons to a preset position through a fourth touch operation. The implementation method of the fourth touch operation is similar to the implementation method of the third touch operation, which can be direct dragging, long pressing and dragging, long pressing and clicking the target position, or triggering voice input. According to the specific implementation method of the fourth touch operation, the status bar before the hidden icon is controlled to move to the position indicated by the fourth touch operation.
[0103] The above embodiments introduce how to process the status bar by interacting with the user. Through the above solution, the icons in the status bar can be partially hidden to reduce the accidental touch phenomenon during the user interaction; the user can also dynamically adjust the status bar position and display content at will to further avoid the occurrence of accidental touch phenomenon. Compared with the method of hiding the status bar completely, the status bar of this application can be fully or partially displayed. Since the status bar information is generally more important (related to the status of the vehicle computer), it is more secure and has a better user experience.
[0104] The following is a specific example of how the device identifies user operations and how to control the status bar. In the following example, swiping right to move all icons on the left side of the target icon to the bottom of the target icon for hiding, swiping left to move all icons on the right side of the target icon to the bottom of the target icon for hiding, and long pressing to move all icons on the left and right sides of the target icon to the bottom of the target icon for hiding. The following method can be used not only for the above operation rules, but also for other icon operation rules. The specific principle is introduced in the following example.
[0105] Figure 8 A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 2 ,like Figure 8 As shown, the method comprises the following steps:
[0106] S101 . In response to a user's touch operation on any target icon in a status bar, obtain a position and time of the touch operation.
[0107] In this step, the screen is divided into countless points. For example, a resolution of 1080*720 can divide the screen into 1080*720 points. The horizontal axis is recorded as x and the vertical axis is recorded as y, and each point and time manipulated by the user is recorded.
[0108] S102: Determine the type of the touch operation according to the position and time of the touch operation.
[0109] Among them, the types of touch operations include sliding to the left, sliding to the right, and long pressing operations.
[0110] According to the position point touched by the user, if the position movement range of the touch point does not exceed the preset position range, it can be considered that the user has not moved, and the duration exceeds the preset time, then the type of touch operation is considered to be a long press operation. Among them, the preset time can be 1 second, 1.5 seconds, or 2 seconds. The preset position range can be set to within the distance of two position points around the center of the touch point, or within the distance of three position points around it, or within the distance of five points around it.
[0111] If the position of the touch point moves to the right, it means that the touch operation position slides to the right.
[0112] If the position of the touch point moves to the left, it means that the touch operation position slides to the left.
[0113] S103: Execute a corresponding action on the icon according to the type of touch operation.
[0114] Swipe right to move all icons on the left side of the target icon to below the target icon for hiding. Swipe left to move all icons on the right side of the target icon to below the target icon for hiding. Long press to move all icons on the left and right side of the target icon to below the target icon for hiding.
[0115] In some embodiments, before executing the corresponding action, it is necessary to obtain the hidden state of the status bar, and if the status bar does not have a hidden icon, the corresponding hiding operation is performed according to the type of touch operation. If the status bar is in the hidden icon state, the corresponding expansion operation is performed according to the type of touch operation.
[0116] This embodiment provides a display processing method for the screen status bar, which determines the type of touch operation by changing the user's touch position, thereby executing the corresponding operation. The status bar is designed in the operating system, and each application no longer needs to be adapted, thereby avoiding accidental touches when the user is using the application.
[0117] When hiding an icon, the hiding speed of the icon will affect the user's perception and experience. Therefore, based on the above embodiment, the icon hiding process is introduced below.
[0118] Fig. 9 A schematic diagram of a display processing method for a screen status bar provided by the present invention Figure 3 ,like Fig. 9 As shown, the method comprises the following steps:
[0119] S201 . In response to a user's touch operation on any target icon in a status bar, obtain a position, time, and pressure value of the touch operation.
[0120] In this step, the screen is divided into countless points. For example, a resolution of 1080*720 can divide the screen into 1080*720 points, with the horizontal axis being x and the vertical axis being y, recording each point and time manipulated by the user. For obtaining pressure values, the touch screen hardware itself supports pressure detection, and pressure data can be directly obtained through the hardware driver or the underlying API.
[0121] S202: Determine the type of the touch operation according to the position and time of the touch operation.
[0122] This step is the same as S102 and will not be described again here.
[0123] S203: Determine the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table.
[0124] In this step, the preset standard force level comparison table includes the mapping relationship between pressure value and animation hiding time, and different pressure levels represent different hiding speeds. As the pressure changes, it will affect the speed of the icon's translation animation display during the folding (expanding) process, that is, the greater the pressure, the faster the folding (expanding), and the smaller the pressure, the slower the folding (expanding).
[0125] For example, if the force is less than 1N, it is considered as force level 1; if the force is between 1N and 2N, it is considered as force level 2; if the force is between 2N and 3N, it is considered as force level 3; and so on. Generally, there are no more than 10 status bar icons, and the standard animation hiding time for folding (expanding) can be defined as 2 seconds (the time corresponding to the maximum force level), and the time corresponding to each additional level decreases accordingly.
[0126] In one implementation, the animation hiding time is also related to the number of status bar icons. The more the number, the slower the folding speed. Exemplarily, the number of status bar icons is num (the number of status bar icons changes dynamically according to user settings, and num also changes dynamically), and the intensity level is divided into num levels. The animation hiding speed level is also divided into num levels. The intensity level and the animation hiding speed correspond one to one. Intensity level 1 is used as the standard intensity level, and the standard time for folding (expanding) the standard intensity level is defined as (num / 2) seconds. There are num levels in total, so the time difference for each level is 1 / 2 second.
[0127] In some embodiments, only the pressure of the user's initial touch operation is obtained to determine the animation hiding time.
[0128] In some embodiments, the pressure value is obtained in real time, that is, the animation hiding time is calculated in real time, and the subsequent hiding speed also changes in real time.
[0129] S204: Control the icons on the left and / or right of the target icon to hide and display according to the animation hiding time.
[0130] After determining the animation hiding time, you can control the hiding and display of the icons on the left and / or right side of the target icon according to the animation hiding time. However, the hiding process is different from the touch operation type. Hiding only one side of the icon is different from hiding both sides of the icon. It is also related to the position of the target icon touched by the user. Therefore, the hiding speed on both sides needs to be calculated separately.
[0131] In some embodiments, if the first touch operation is a left sliding operation, the specific calculation is as follows:
[0132] Step 1: Get the target distance from the target icon to the right border of the status bar.
[0133] In this step, if the touch operation is sliding to the left, all icons on the right side of the target icon need to be hidden, so first obtain how many icons are on the right side of the target icon, that is, the target distance from the position of the target icon to the right border of the status bar.
[0134] Step 2: Determine the animation hiding speed according to the target distance and the animation hiding time.
[0135] After determining the target distance, the animation hiding speed on one side can be calculated based on the determined animation hiding time.
[0136] Step 3: Control the hiding and display of the icon on the right side of the target icon according to the animation hiding speed.
[0137] In some embodiments, if the first touch operation is a right sliding operation, the specific calculation is as follows:
[0138] Step 1: Get the target distance from the target icon to the left border of the status bar.
[0139] Step 2: Determine the animation hiding speed according to the target distance and the animation hiding time.
[0140] Step 3: Control the hiding and display of the icon on the left side of the target icon according to the animation hiding speed.
[0141] In some embodiments, if the first touch operation is a long press operation, the specific calculation is as follows:
[0142] Step 1: Get a first distance from the target icon to the left border of the status bar, and a second distance from the target icon to the right border of the status bar;
[0143] Step 2: determining the first animation hiding speed according to the first distance and the animation hiding time.
[0144] Step 3: Determine the second animation hiding speed according to the second distance and the animation hiding time.
[0145] Step 4: Control the icon on the left side of the target icon to hide and display according to the first animation hiding speed, and control the icon on the right side of the target icon to hide and display according to the second animation hiding speed.
[0146] This embodiment provides a display processing method for a screen status bar, which can change the hiding speed of icons according to the touch pressure of the user, thereby improving the user's perception and experience.
[0147] Based on the above embodiment, when the user drags to change the position of the status bar, the moving speed can also be determined according to the touch pressure value. Similarly, the expansion speed of the hidden icon can also be determined according to the touch pressure value.
[0148] The following example shows how to calculate the animation hiding speed.
[0149] Assume that the collapse (expand) distance is x, and the current pressing index is 0, 1, 2, etc. from left to right. If a single icon is pressed vertically, in this example, the hiding speed on both sides is set to the same speed, then the maximum distance from the left and right sides needs to be determined. The maximum distance between the left and right icons is used as the collapse (expand) distance.
[0150] distancex = Math.max(index, num-index-1);
[0151] Among them, x is the distance, Math.max() is the maximum value function, index is the target icon pressed by the user, and num is the total number of icons.
[0152] If you slide left and press a single icon, the distance on the far right is used as the target distance.
[0153] x = num-index-1;
[0154] If you slide right and press a single icon, the distance to the leftmost edge is used as the target distance.
[0155] x = index;
[0156] After determining the target distance, the hiding speed is determined according to the force level and animation time. The greater the force, the shorter the animation time.
[0157] For example, when the force is less than 1N, the folding (expanding) time is num / 2; the folding (expanding) speed is x / num / 2;
[0158] When the force is between 1N and 2N, the time for folding (expanding) is num / 2–1 / 2 (level time difference); the speed for folding (expanding) is x / (num / 2–1 / 2).
[0159] The force is between 2N and 3N, and the folding (expanding) time is num / 2–1 / 2 (level time difference)–1 / 2 (level time difference);
[0160] When the force is greater than (num-1)N, the folding (expanding) time is num / 2–(1 / 2(level time difference)*(num-1)); the folding (expanding) speed is x / (num / 2–(1 / 2(level time difference)*(num-1)))
[0161] Summarize:
[0162] Under the condition of uniform pressing speed, the animation folding (expanding) time t = num / 2-(num / 2 / num)*Math.floor(Math.min(N, num-1));
[0163] Folding (unfolding) speed = x / folding (unfolding) time;
[0164] If the pressure becomes greater and greater during the same operation, the folding (expanding) time will become shorter and shorter; conversely, if the pressure becomes less and less, the folding (expanding) time will become longer and longer.
[0165] The specific calculation method is:
[0166] Take 100 milliseconds as a unit of time, and divide (pressing force at the end – pressing force at the start) by 100 milliseconds to get the pressing force level. Different forces correspond to different time consumptions, and thus to different speeds.
[0167] Fig.10 A schematic diagram of the structure of a display processing device for a screen status bar provided by the present invention, such as Fig.10 As shown, the display processing device 90 of the screen status bar includes:
[0168] The control module 901 is used to control the icons on the left and / or right of any target icon in the status bar to hide in response to a first touch operation performed by a user on the target icon.
[0169] Optionally, the control module 901 is further used for:
[0170] In response to a second touch operation of the user on the status bar behind the hidden icon, the hidden icon is displayed in the status bar.
[0171] Optionally, the control module 901 is further used for:
[0172] In response to a third touch operation performed by the user on the status bar behind the hidden icon, the status bar behind the hidden icon is controlled to move to a position indicated by the third touch operation.
[0173] Optionally, the control module 901 is further used for:
[0174] In response to a fourth touch operation performed by the user on the status bar in front of the hidden icon, the status bar in front of the hidden icon is controlled to move to a position indicated by the fourth touch operation.
[0175] Optionally, the control module 901 is further used for:
[0176] If the first touch operation is a left sliding operation, the icon on the right side of the target icon is controlled to be hidden and displayed below the target icon;
[0177] If the first touch operation is a right sliding operation, the icon on the left side of the target icon is controlled to be hidden and displayed below the target icon;
[0178] If the first touch operation is a long press operation, the icons on the left and the icons on the right of the target icon are controlled to be hidden and displayed below the target icon.
[0179] Optionally, the display processing device 90 for the screen status bar further includes an acquisition module 902 and a determination module 903:
[0180] The acquisition module 902 is used to acquire the pressure value of the first touch operation;
[0181] The determining module 903 is used to determine the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table, wherein the standard force level comparison table includes a mapping relationship between the pressure value and the animation hiding time;
[0182] The control module 901 is used to control the hiding and display of the icons on the left and / or right of the target icon according to the animation hiding time.
[0183] If the first touch operation is a left sliding operation, the control module 901 is further configured to:
[0184] Get the target distance from the target icon to the right border of the status bar;
[0185] Determine the animation hiding speed according to the target distance and the animation hiding time;
[0186] The icon on the right side of the target icon is controlled to hide and display according to the animation hiding speed.
[0187] If the first touch operation is a right sliding operation, the control module 901 is further configured to:
[0188] Get the target distance from the target icon to the left border of the status bar;
[0189] Determine the animation hiding speed according to the target distance and the animation hiding time;
[0190] The icon on the left side of the target icon is controlled to hide and display according to the animation hiding speed.
[0191] If the first touch operation is a long press operation, the control module 901 is further configured to:
[0192] Obtain a first distance from the target icon to the left border of the status bar, and a second distance from the target icon to the right border of the status bar;
[0193] Determine a first animation hiding speed according to the first distance and the animation hiding time;
[0194] determining a second animation hiding speed according to the second distance and the animation hiding time;
[0195] The icon on the left side of the target icon is hidden and displayed according to the first animation hiding speed, and the icon on the right side of the target icon is hidden and displayed according to the second animation hiding speed.
[0196] Optionally, the determining module 903 is further configured to:
[0197] According to the pressure value obtained in real time and the preset standard force level comparison table, the animation hiding time of the icon shrinking to the bottom of the target icon is updated in real time.
[0198] The device provided in this embodiment can be used to execute the technical solution of any of the above-mentioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0199] Fig.11 This is a schematic diagram of the structure of the terminal device provided by the present invention. The terminal device can be a vehicle computer, a mobile phone, or a computer. Fig.11 As shown, the terminal device 50 provided in this embodiment includes: at least one processor 501, a memory 502 and a display 505. Optionally, the device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0200] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0201] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0202] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0203] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0204] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present invention is not limited to only one bus or one type of bus.
[0205] The present invention also provides a vehicle, comprising the above-mentioned terminal device.
[0206] The present invention also provides a computer program product, comprising a computer program, and the computer program implements the above method when executed by a processor.
[0207] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0208] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0209] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0210] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0211] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0212] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0213] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0214] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0215] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A display processing method for a screen status bar, characterized in that: The display interface of the screen is provided with a status bar, and the method comprises: In response to a first touch operation of a user on any target icon in the status bar, icons on the left and / or right of the target icon are controlled to be hidden and displayed.
2. The method according to claim 1, characterized in that The method further comprises: In response to a second touch operation of the user on the status bar behind the hidden icon, the hidden icon is displayed in the status bar.
3. The method according to claim 1, characterized in that The method further comprises: In response to a third touch operation performed by the user on the status bar behind the hidden icon, the status bar behind the hidden icon is controlled to move to a position indicated by the third touch operation.
4. The method according to any one of claims 1 to 3, characterized in that: Before controlling the icons on the left and / or right of the target icon to be hidden and displayed in response to the user's first touch operation on any target icon in the status bar, the method further includes: In response to a fourth touch operation performed by the user on the status bar in front of the hidden icon, the status bar in front of the hidden icon is controlled to move to a position indicated by the fourth touch operation.
5. The method according to any one of claims 1 to 3, characterized in that: The controlling the hiding of icons on the left and / or right of the target icon comprises: If the first touch operation is a left sliding operation, the icon on the right side of the target icon is controlled to be hidden and displayed below the target icon; If the first touch operation is a right sliding operation, the icon on the left side of the target icon is controlled to be hidden and displayed below the target icon; If the first touch operation is a long press operation, the icons on the left and the icons on the right of the target icon are controlled to be hidden and displayed below the target icon.
6. The method according to claim 1, characterized in that The controlling the icons on the left and / or right of the target icon to be hidden and displayed includes: Acquire a pressure value of the first touch operation; Determining the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table, wherein the standard force level comparison table includes a mapping relationship between the pressure value and the animation hiding time; According to the animation hiding time, the icons on the left and / or right of the target icon are controlled to be hidden and displayed.
7. The method according to claim 6, characterized in that If the first touch operation is a left sliding operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes: Get the target distance from the target icon to the right border of the status bar; Determine the animation hiding speed according to the target distance and the animation hiding time; The icon on the right side of the target icon is controlled to hide and display according to the animation hiding speed.
8. The method according to claim 6, characterized in that If the first touch operation is a rightward sliding operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes: Get the target distance from the target icon to the left border of the status bar; Determine the animation hiding speed according to the target distance and the animation hiding time; The icon on the left side of the target icon is controlled to hide and display according to the animation hiding speed.
9. The method according to claim 6, characterized in that If the first touch operation is a long press operation, controlling the icons on the left and / or right of the target icon to hide and display according to the animation hiding time includes: Obtain a first distance from the target icon to the left border of the status bar, and a second distance from the target icon to the right border of the status bar; Determine a first animation hiding speed according to the first distance and the animation hiding time; Determine a second animation hiding speed according to the second distance and the animation hiding time; The icon on the left side of the target icon is hidden and displayed according to the first animation hiding speed, and the icon on the right side of the target icon is hidden and displayed according to the second animation hiding speed.
10. The method according to any one of claims 6 to 9, characterized in that: The step of determining the animation hiding time of the icon shrinking to the bottom of the target icon according to the pressure value and a preset standard force level comparison table includes: According to the pressure value obtained in real time and the preset standard force level comparison table, the animation hiding time of the icon shrinking to the bottom of the target icon is updated in real time.
11. A display processing device for a screen status bar, characterized in that: The device comprises: The control module is used to control the icons on the left and / or right of any target icon in the status bar to hide in response to a first touch operation of the user on the target icon.
12. A terminal device, characterized in that: include: Memory, processor and display; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.
14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.
Citation Information
Cited By
Display method, electronic equipment and vehicle
CN121092015A
