Method for displaying functional control on user interface, and electronic device

By detecting conditions in the user interface to determine the display position and shape of functional controls, the problem of fixed display of functional controls is solved, and flexible display and hiding of controls are realized, thus improving the user experience.

WO2026081345A1PCT designated stage Publication Date: 2026-04-23HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-12-23
Publication Date
2026-04-23

AI Technical Summary

Technical Problem

In existing technologies, functional controls are displayed fixedly in the user interface, lacking flexibility and unable to adapt to changes in the scenario, resulting in a poor user experience.

Method used

The display position and form of functional controls are determined by detecting different conditions. Controls are displayed flexibly according to the availability and priority of their positions, thus realizing conditional display and hiding of controls.

Benefits of technology

It improves the flexibility of the user interface and the user experience, ensures that controls are displayed in the appropriate positions, reduces conflicts and interference between controls, and provides a more intuitive and efficient interface interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024141597_23042026_PF_FP_ABST
    Figure CN2024141597_23042026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method for displaying a functional control on a user interface, and an electronic device. In the method, a plurality of control positions for displaying "conditionally displayed functional controls" are set on a user interface, and the control positions have different priorities. When the electronic device displays the user interface, upon detecting a display condition of a certain "conditionally displayed functional control", the electronic device selects a control position having the highest priority among idle control positions, and displays the "conditionally displayed functional control" at the selected control position. In this way, the "conditionally displayed functional controls" can no longer be displayed only at fixed positions, but can be flexibly displayed on the basis of the idle state and priority of a current control position.
Need to check novelty before this filing date? Find Prior Art

Description

Methods for displaying functional controls in a user interface, electronic devices

[0001] This application claims priority to Chinese Patent Application No. 202411437982.0, filed on October 15, 2024, with the China National Intellectual Property Administration, entitled “Method for displaying functional controls in a user interface, electronic device”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a method and electronic device for displaying functional controls in a user interface. Background Technology

[0003] In the user interfaces of electronic devices such as mobile phones and tablets, some functional controls can be displayed when display conditions are met and disappear when display conditions are not met. These functional controls are always displayed in a fixed position in the user interface, which is not flexible enough. Summary of the Invention

[0004] This application provides a method and an electronic device for displaying functional controls in a user interface, which can flexibly display controls according to the current availability of the control's position.

[0005] In a first aspect, a method for displaying a functional control in a user interface is provided, applied to an electronic device. The method may include: detecting that a first condition is met, displaying a first functional control at a first position in a first user interface, the first condition being a display condition for the first functional control; detecting that a second condition is met, displaying a second functional control at a second position in the first user interface, the second condition being a display condition for the second functional control; detecting that the first condition is not met, stopping the display of the first functional control at the first position; detecting that the second condition is not met, stopping the display of the second functional control at the second position; and detecting that the second condition is met again, displaying the second functional control at the first position.

[0006] Implementing the first aspect of the method, the electronic device can display different controls at the same location on the user interface in different scenarios. For example, the first location can display either a first functional control or a second functional control. Furthermore, the electronic device can display the same control at different locations on the user interface in different scenarios; for example, the second functional control can be displayed at either the first or the second location. Essentially, functional controls are no longer limited to fixed locations but can be flexibly displayed based on the availability of the current control location.

[0007] In conjunction with the first aspect, in some embodiments, the method may further include: detecting that a third condition is met, and displaying a third functional control at a second location, wherein the third condition is the display condition for the third functional control. In this way, the electronic device can display different controls at the same location on the user interface in different scenarios; for example, the second location can display either a second functional control or a third functional control.

[0008] In conjunction with the first aspect, in some embodiments, displaying the second function control at the first position includes: displaying the second function control in a first form, wherein the second function control in the first form indicates that the second function corresponding to the second function control is enabled; correspondingly, after displaying the second function control at the first position, the method may further include: in response to the operation of disabling the second function, disabling the second function and changing the second function control from the first form to the second form; detecting that the second condition is not met, stopping the display of the second function control in the second form at the first position; detecting that the second condition is met again, displaying the second function control in the second form.

[0009] In the above implementation method, when the electronic device displays the function control again after stopping the display of the function control, the function control is kept in the latest state recorded during the current shooting process. This can continue to meet the user's needs and preferences and provide the user with a better user experience.

[0010] In conjunction with the previous embodiment, in some embodiments, the first form includes a white background color, and the second form includes a black background color.

[0011] In conjunction with the first aspect, in some embodiments, the second function control corresponds to the second function. After the second function control is displayed at the first position, the method may further include: receiving a first operation or detecting that a fourth condition is met, changing the second function control from a third form to a fourth form, wherein the second function control in the third form indicates the second function, and the second function control in the fourth form indicates the first sub-function of the second function.

[0012] The first operation could be a zoom operation, such as increasing the zoom magnification, and the fourth condition could be, for example, an automatic zoom condition. Through the above implementation, the electronic device can activate a sub-function of the second function and can prompt the user about the currently activated function through the form of the second function control.

[0013] In conjunction with the previous embodiment, in some embodiments, after changing the second functional control from the third form to the fourth form, the method may further include: receiving a second operation applied to the second functional control, expanding the second functional control into a subset bar of the second function, the subset bar of the second function including a first option and a second option, the first option indicating a first sub-function of the second function, and the second option indicating a second sub-function of the second function; receiving a third operation applied to the second option, collapsing the subset bar of the second function into a second functional control in a fifth form, and activating the second sub-function.

[0014] With the above implementation method, the electronic device can switch the desired sub-function in a subset of a certain function.

[0015] In conjunction with the previous implementation method, in some implementation methods, the second function is a macro function, the first sub-function based on the second function is a main subject highlighting function, and the second sub-function based on the second function is a panoramic clarity function.

[0016] In conjunction with the first aspect, in some embodiments, the positions of the first position and the second position in the first user interface are fixed, and the first position and the second position are displayed centered horizontally in the first user interface.

[0017] In conjunction with the first aspect, in some embodiments, when both the first position and the second position display functional controls, the first position and the second position are located vertically centered in the first user interface; when the first position displays functional controls but the second position does not display functional controls, the first position is located vertically centered in the first user interface; when the second position displays functional controls but the first position does not display functional controls, the second position is located vertically centered in the first user interface.

[0018] Both of the above implementation methods can ensure that the functional controls displayed in the first and second positions are centered in the user interface, which can present a symmetrical aesthetic to the user.

[0019] In conjunction with the first aspect, in some implementations, the first user interface is a photo preview interface provided by a camera application in photo mode.

[0020] In conjunction with the previous embodiment, in some embodiments, the photo preview interface displays a zoom control, with a first position located to the right of the zoom control and a second position located to the left of the zoom control. Alternatively, the photo preview interface displays a photo capture control, with the first and second positions located to the left of the photo capture control.

[0021] In conjunction with the first aspect, in some implementations, the first functional control and the second functional control are both one of the following: macro functional control, night scene enhancement functional control, moon viewing functional control, food functional control, blue sky functional control, sunrise and sunset functional control, and portrait functional control; the first functional control and the second functional control are different.

[0022] In conjunction with the first aspect, in some implementations, the first functional control is a night scene enhancement function control, and the first condition is that the brightness of the image captured by the camera activated by the electronic device is less than or equal to a second value, or the ambient light intensity after the camera is activated by the electronic device is less than or equal to a third value; the second functional control is a macro function control, and the second condition is that when the focal length of the camera activated by the electronic device is 1x zoom, the distance between the camera and the subject is less than or equal to a first value.

[0023] Secondly, a method for displaying functional controls in a photo preview interface is provided, characterized in that it is applied to an electronic device, and the method includes: displaying a photo preview interface; when a first condition is detected, displaying a functional control of a first form at a first position on the photo preview interface, the first condition being a display condition for the functional control; when a focal length change is detected and a second condition is met, displaying a functional control of a second form at the first position on the photo preview interface, the functional control of the second form being used to indicate the activation of a first sub-function corresponding to the functional control; responding to an operation applied to the functional control of the second form, expanding the functional control into a functional subset bar, the functional subset bar including a first option and a second option, the first option indicating the first sub-function and the second option indicating the second sub-function; receiving an operation applied to the second option; collapsing the functional subset bar into a functional control of a third form and activating the second sub-function.

[0024] By implementing the second approach, electronic devices can change the display form of functional controls in the user interface according to the actual scenario, and can also enable some sub-functions of functions according to the actual situation.

[0025] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement a method as described in the first aspect, or any embodiment of the first aspect, or the second aspect, or any embodiment of the second aspect.

[0026] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method as described in the first aspect, or any embodiment of the first aspect, or the second aspect, or any embodiment of the second aspect.

[0027] Fifthly, a computer program product is provided, the computer program product including a computer program, which, when executed by a processor, implements a method as described in the first aspect, or any implementation of the first aspect, or the second aspect, or any implementation of the second aspect.

[0028] In a sixth aspect, a chip system is provided, the chip system including a processing circuit and an interface circuit, the interface circuit being used to receive computer instructions and transmit them to the processing circuit, the processing circuit being used to execute the computer instructions to implement the method as described in the first aspect, or any embodiment of the first aspect, or the second aspect, or any embodiment of the second aspect. Attached Figure Description

[0029] Figures 1 and 2 show the camera preview interface displayed on an electronic device 100 with a small screen aspect ratio, such as a regular mobile phone (e.g., a non-foldable screen phone), according to an embodiment of this application.

[0030] Figures 3 and 4 show the camera preview interface displayed on an electronic device 200 with a large screen aspect ratio, such as a foldable screen phone or tablet computer, according to an embodiment of this application.

[0031] Figure 5 is a flowchart of a method for displaying functional controls in a user interface according to an embodiment of this application;

[0032] Figure 6 is a flowchart of a method for displaying functional controls in a photo preview interface according to an embodiment of this application;

[0033] Figure 7 is a hardware structure diagram of the electronic device provided in an embodiment of this application;

[0034] Figure 8 is a software structure diagram of the electronic device provided in an embodiment of this application. Detailed Implementation

[0035] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings.

[0036] The user interface (UI), also known as the user interface, is the medium through which an application or operating system interacts and exchanges information with the user. A user interface can include visible interface elements displayed on the screen of an electronic device, such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0037] Functional controls are interactive controls displayed in the user interface. They can receive user actions (such as clicks, long presses, etc.), and the electronic device can respond to these actions by executing corresponding functions. Functional controls can be implemented in various forms, including but not limited to one or more of the following: text, icons, buttons, menus, tabs, text boxes, dialog boxes, widgets, etc.

[0038] The following embodiments of this application primarily focus on "conditional display function controls," whose display and hiding can be performed based on certain conditions. When the display conditions are met, the electronic device displays the function control in the user interface; when the display conditions are not met, the electronic device hides the function control, i.e., the function control disappears. Therefore, the state (i.e., displayed or hidden) of the "conditional display function control" can dynamically change with user operations, data changes in the electronic device, or other events. By changing its state based on conditions, the "conditional display function control" can provide users with a simpler, more intuitive, and efficient interface experience, reducing the cognitive burden on users.

[0039] Each conditional display control has a corresponding display condition, and different conditional display controls can correspond to different display conditions. A user interface can contain one or more conditional display controls, and different user interfaces can contain different conditional display controls. Whether a user interface contains conditional display controls, which conditional display controls are included, and the display conditions of these conditional display controls are specifically set by the developer of the application to which that user interface belongs.

[0040] "Conditional display function control" is merely one term used in this application's embodiment, and its definition has been clearly explained above. In other embodiments, "conditional display function control" may also be called "dynamic display function control" or other names, and this application is not limited to these.

[0041] The following example uses the photo preview interface provided by a camera application on an electronic device to introduce several types of "conditional display function controls" that may appear on this interface. The "conditional display function controls" in the photo preview interface can appear dynamically according to the content being framed.

[0042] 1. Macro function control

[0043] The macro function control is the on / off switch for the macro function.

[0044] The macro function is also known as the super macro function, or extended depth of field (EDOF) macro.

[0045] The macro function is a shooting mode specifically designed for photographing tiny objects. It allows electronic devices to capture minute subjects, such as dewdrops, leaf veins, insects, jewelry, and handicrafts, at close range, revealing fine details and textures to make these small objects clearly visible in the photograph. In macro mode, the electronic device can automatically identify the subject and adjust the aperture, shutter speed, and exposure value accordingly. It can also autofocus and optimize the image using artificial intelligence (AI) algorithms.

[0046] During shooting, when the camera's focal length is "1X" (1x zoom), the electronic device will automatically activate the macro function and display the macro function controls when the distance between the camera and the subject is less than or equal to a first value. When the distance between the camera and the subject is greater than the first value, the electronic device will deactivate the macro function and stop displaying the macro function controls. In other words, the macro function controls are displayed when the distance between the camera and the subject is less than or equal to the first value. The first value can be set as needed, for example, it can be 2.5cm; there is no limitation here. The electronic device can identify the shooting distance through data collected by the distance sensor, or it can identify the shooting distance by analyzing the image captured by the camera.

[0047] Based on the macro function, additional functions can be layered to create other macro-based functions. This collection of other macro-based functions can be called a macro function subset. The macro function subset may include: subject highlighting function and panoramic clarity function. These will be discussed in more detail below.

[0048] (1) The main body highlights the function

[0049] When the electronic device activates its macro function, it will initiate the subject highlighting function if it receives a zoom operation (e.g., zooming from "1X" to "3.5X") or detects that the auto zoom conditions are met. When the electronic device deactivates the macro function, it also deactivates the subject highlighting function. The zoom operation can be either increasing or decreasing the focal length. Auto zoom conditions can include, for example, the subject moving away from the camera or other conditions; there are no restrictions here. Additionally, after the electronic device activates a function within the macro function subset, the user can input an operation to activate the macro function subset and then select the subject highlighting function within it, which will also trigger the electronic device to activate the subject highlighting function.

[0050] The subject highlighting function enables electronic devices to recognize the subject of the image displayed in the photo preview interface after the macro function is turned on, and automatically blur the background and highlight the subject.

[0051] (2) Panoramic clarity function

[0052] After the electronic device activates the macro function subset, the user can input an operation to open the macro function subset and select the panoramic clarity function within the macro function subset, which will trigger the electronic device to activate the panoramic clarity function.

[0053] The panoramic clarity feature allows electronic devices to optimize the entire image in the photo preview interface after macro mode is enabled, resulting in a clear panoramic view. In some implementations, if the electronic device receives user input to the camera control, it can capture multiple images and merge them into a single photo where both the foreground and background are clear.

[0054] 2. Night Scene Enhancement Function Controls

[0055] The Night Scene Enhancement control is the on / off switch for the Night Scene Enhancement feature.

[0056] Night Scene Enhancement is a shooting mode specifically designed for low-light environments. It allows electronic devices to automatically adjust camera parameters such as exposure time and ISO (e.g., extending exposure time) to capture more light and detail. It also supports multi-frame synthesis technology, combining multiple photos to reduce noise, improve brightness and clarity. Furthermore, it uses algorithms to optimize color and contrast, resulting in more vibrant colors and sharper contrast in night scene photos. Ultimately, Night Scene Enhancement enables electronic devices to capture bright and clear night scene images.

[0057] During shooting, when the brightness of the image captured by the camera is less than or equal to the second value, or when the ambient light intensity is less than or equal to the third value, the electronic device will automatically activate the night scene enhancement function and display the night scene enhancement function control. When the brightness of the image captured by the camera is greater than the second value, or when the ambient light intensity is greater than the third value, the electronic device will deactivate the night scene enhancement function and stop displaying the night scene enhancement function control. That is, the display conditions for the night scene enhancement function control are that the brightness of the image captured by the camera is less than or equal to the second value, or the ambient light intensity is less than or equal to the third value. The second and third values ​​can be set as needed and are not limited here. The electronic device can analyze the image captured by the camera to identify the image brightness, and can identify the ambient light intensity through the light captured by the ambient light sensor.

[0058] After enabling the Night Scene Enhancement control, the electronic device can determine the exposure time based on the current shooting scene, such as 1 second, 2 seconds, 3 seconds, etc. The darker the shooting scene, the longer the exposure time. The icon of the Night Scene Enhancement control can display the currently used exposure time.

[0059] 3. Moon Gazing Function Controls

[0060] The Moon Gazing function control is used to toggle the Moon Gazing function on and off.

[0061] The Moon Viewing function is a shooting mode specifically designed for photographing the moon. It allows electronic devices to optimize camera settings, such as ISO, exposure time, focus mode, and zoom level, and also allows electronic devices to optimize photos through algorithms, thereby capturing clear and bright photos of the moon.

[0062] During filming, when the electronic device detects that the image captured by the camera contains the moon, it will activate the "Moon Viewing" function and display the control. When the electronic device detects that the image captured by the camera does not contain the moon, it will deactivate the "Moon Viewing" function and stop displaying the control. In other words, the "Moon Viewing" control is displayed only when the electronic device detects that the image captured by the camera contains the moon.

[0063] 4. Food Function Controls

[0064] The food function control is the on / off switch for the food function.

[0065] The Food mode is a shooting mode specifically designed for food photography. It allows electronic devices to enhance the gloss of food or simulate different lighting environments by adjusting color saturation and contrast, adding filters, etc. It also allows electronic devices to optimize photos through algorithms, thereby capturing brightly colored food photos that make the food look fresher and more delicious.

[0066] During filming, when the electronic device detects that the image captured by the camera contains food, it will activate the food function and display the food function controls; when the electronic device detects that the image captured by the camera does not contain food, it will deactivate the food function and stop displaying the food function controls. In other words, the display condition for the food function controls is that the electronic device detects that the image captured by the camera contains food.

[0067] 5. Blue Sky Function Controls

[0068] The Blue Sky function control is the on / off switch for the Blue Sky function.

[0069] The Blue Sky function is a shooting mode designed specifically for food photography. It allows electronic devices to adjust parameters such as camera sensitivity, shutter speed, focus mode, and white balance (e.g., lowering sensitivity and increasing shutter speed) to capture clear, bright, and layered photos of blue skies and white clouds.

[0070] During shooting, when the electronic device detects that the image captured by the camera contains the sky, it will activate the blue sky function and display the blue sky function control; when the electronic device detects that the image captured by the camera does not contain the sky, it will deactivate the blue sky function and stop displaying the blue sky function control. In other words, the blue sky function control is displayed only when the electronic device detects that the image captured by the camera contains the sky.

[0071] 6. Sunrise and Sunset Function Controls

[0072] The sunrise / sunset function control is the switch for the sunrise / sunset function.

[0073] The sunrise and sunset function is a shooting mode specifically designed for shooting sunrises and sunsets. It allows electronic devices to adjust parameters such as camera sensitivity, shutter speed, focus mode, and white balance (e.g., increasing sensitivity and decreasing shutter speed) to capture clear sunrise or sunset photos.

[0074] During shooting, when the electronic device detects that the image captured by the camera contains the sun, it will activate the sunrise / sunset function and display the sunrise / sunset function control; when the electronic device detects that the image captured by the camera does not contain the sun, it will deactivate the sunrise / sunset function and stop displaying the sunrise / sunset function control. In other words, the sunrise / sunset function control is displayed only when the electronic device detects that the image captured by the camera contains the sun.

[0075] 7. Portrait Function Controls

[0076] The portrait function control is the on / off switch for the portrait function.

[0077] Portrait mode is a shooting mode designed specifically for shooting portraits. It allows electronic devices to process skin through automatic beautification algorithms and achieve background blurring effects through background blurring algorithms, thereby making the skin tone of the person more natural, making the subject stand out more, and reducing background interference.

[0078] During shooting, when the electronic device detects that the image captured by the camera contains a person, it will activate the portrait mode and display the portrait mode controls; when the electronic device detects that the image captured by the camera does not contain a person, it will deactivate the portrait mode and stop displaying the portrait mode controls. In other words, the display condition for the portrait mode controls is that the electronic device detects that the image captured by the camera contains a person.

[0079] The names of the various "conditional display function controls" described above are merely examples, and their functions have been clearly explained above. In other implementations, the names of the various "conditional display function controls" described above may also be changed to other names.

[0080] The "conditional display function control" described above differs from the shooting modes provided in the mode selector of the photo preview interface. Specifically, this difference may lie in the shooting parameters and image processing algorithms. For example, the mode selector in the photo preview interface may offer a night scene mode, which is different from the night scene enhancement function; the mode selector in the photo preview interface may offer a portrait mode, which is different from the portrait function provided by the portrait function control; the mode selector in the photo preview interface may offer a moon mode, which is different from the moon gazing function provided by the moon gazing function control.

[0081] The previous section introduced several "conditional display function controls" using the photo preview interface. Other "conditional display function controls" can also be found in other user interfaces, which will not be introduced one by one here.

[0082] The "conditional display function control" mentioned in the embodiments of this application can be implemented as a combination of icons and text, or as an icon-only form, or as an icon-only form; there is no limitation here. The icon of the "conditional display function control" can be a circle, a direction, or other shapes; this application does not limit this.

[0083] This application provides a method for flexibly displaying "conditional display function controls" in a user interface. In this method, the user interface has multiple control positions for displaying "conditional display function controls," each with a different priority. When the electronic device displays the user interface, after detecting a display condition for a "conditional display function control," it selects the highest-priority control position from the available control positions and displays the "conditional display function control" at that position. Once a higher-priority control position becomes available, the already displayed "conditional function control" remains displayed in its current position without needing to be moved to another higher-priority control position. In this way, each "conditional display function control" is no longer limited to a fixed position but is flexibly displayed based on the availability and priority of the current control position.

[0084] The following uses the photo preview interface provided by a camera application in an electronic device as an example to introduce the method for displaying functional controls in a user interface provided in the embodiments of this application.

[0085] Figures 1 and 2 exemplarily illustrate a camera preview interface displayed on an electronic device 100 with a small screen aspect ratio, such as a regular mobile phone (e.g., a non-foldable phone).

[0086] Figure 1 illustrates an example of an electronic device 100 displaying a photo preview interface for a "conditional display function control".

[0087] Referring to Figure 1(a), the electronic device 100 displays a photo preview interface 10 provided by a camera application. This camera application can be a system application or a third-party application. The photo preview interface 10 can be displayed by the electronic device 100 after receiving a user operation (such as a click or touch) on the camera application icon on the desktop, or it can be displayed by the electronic device 100 after launching the camera application through other means. When the electronic device 100 displays the photo preview interface 10, it simultaneously launches a camera, which can be a rear camera, a front camera, or another type of camera.

[0088] As shown in Figure 1(a), the photo preview interface 10 displays: a mode selector 101, a playback control 102, a photo control 103, a switching control 104, a preview window 105, a zoom control 106, and a quick function area 107. Among these:

[0089] The mode selector 101 may include multiple shooting mode options, such as "Night Scene," "Portrait," "Photo," and "Video." Different shooting modes can provide users with different shooting effects. Users can select any of the multiple shooting modes to take photos according to different needs. For example, "Photo" can be the default shooting mode for taking photos. "Video" is used for recording videos. The "Night Scene" mode is suitable for shooting scenes with low light, such as at night. The "Portrait" mode is suitable for shooting scenes where the subject is a person. The electronic device 100 can detect user operations that switch modes, such as swiping left / right in the mode selector 101, and change the currently used shooting mode according to the operation. By default, the electronic device 100 first uses the "Photo" mode. As shown in Figure 1(a), the electronic device 100 is currently using the "Photo" mode.

[0090] The playback control 102 can be used to display thumbnails of recently taken photos or videos. When a user action is detected on the playback control 102, the electronic device 100 can display the image corresponding to the thumbnail.

[0091] The camera control 103 is used to trigger a photo capture. The electronic device 100 can detect whether there is a user operation on the camera control 103, such as a click operation. When a user operation on the camera control 103 is detected, the electronic device 100 can generate a photo capture command. The electronic device 100 can acquire the image reported by the currently activated camera according to the photo capture command, and then save it as a still photo or a video photo. The camera control 103 is located in the lower middle position of the photo preview interface 10, and its distance from the left and right edges of the display screen is the same.

[0092] The switching control 104 is used to switch the camera used by the electronic device 100.

[0093] The preview window 105 is used to display images captured by the camera activated by the electronic device 100 in real time. In different shooting modes, the electronic device 100 can process the images reported by the camera to improve the image display effect. For example, in "portrait" mode, the electronic device 100 can blur the background in the image reported by the camera to highlight the portrait. Here, the preview window 105 can display images processed by image processing algorithms corresponding to different shooting modes in real time, allowing users to perceive the shooting effects corresponding to different shooting modes in real time. The images in the preview window 105 can also be called preview images.

[0094] The zoom control 106 displays multiple selectable focal lengths. The zoom control 106 can be implemented as a ring or other styles; no limitation is made here. The electronic device 100 can receive sliding operations on the zoom control 106 or click operations to select a specific focal length, and adjust the focal length accordingly. In the zoom control 106, "W" indicates wide-angle capability, and the remaining numbers represent the zoom capability in multiples of that number. The currently selected focal length in the zoom control 106 is 1x zoom.

[0095] The quick access area 107 may include flash function options, live photo function options, high dynamic range (HDR) image function options, settings function options, etc.

[0096] As shown in Figure 1(a), the photo preview interface 10 includes two control positions for displaying the "conditional display function control": a first priority position 108 and a second priority position 109. The first priority position 108 is located to the right of the zoom control 106, and the second priority position 109 is located to the left of the zoom control 106. The first priority position 108 and the second priority position 109 are symmetrical about the photo control 103, and the distance between the first priority position 108 and the right edge of the display screen and the distance between the second priority position 109 and the left edge of the display screen are the same. The priority of the first priority position 108 is higher than that of the second priority position 109.

[0097] Referring to Figures 1(a)-1(b), when the user moves the electronic device 100, the viewfinder displayed in the preview window 105 changes. As shown in Figure 1(b), when the brightness of the image captured by the camera is less than or equal to the second value, or when the ambient light intensity is less than or equal to the third value, the electronic device 100 detects that the display conditions for the night scene enhancement function control are met, and displays the night scene enhancement function control 110 in the idle and highest priority control position, that is, displays the night scene enhancement function control 110 in the first priority position 108, and simultaneously turns on the night scene enhancement function. At this time, the display mode of the night scene enhancement function control 110 can also indicate to the user whether the electronic device 100 has the night scene enhancement function turned on. For example, a white background of the night scene enhancement function control 110 can indicate that the night scene enhancement function is turned on, and a black background of the night scene enhancement function control 110 can indicate that the night scene enhancement function is turned off. The white background of the night scene enhancement function control shown in Figure 1(b) indicates that the electronic device 100 has the night scene enhancement function turned on. The display methods of other functional controls mentioned later can also indicate to the user whether the corresponding function is enabled, and will not be mentioned one by one in the following introduction.

[0098] Referring to Figures 1(b)-1(c), when the user brings the electronic device 100 close to the subject, the viewfinder displayed in the preview window 105 changes. As shown in Figure 1(c), when the camera's focal length is "1X" (1x zoom), and the distance between the camera and the subject is less than or equal to a first value, the electronic device 100 detects that the display conditions for the macro function control are met. It then displays the macro function control 111 in the idle and highest priority control position, specifically in the second priority position 109, and simultaneously activates the macro function. The background color of the macro function control 111 is white, indicating that the electronic device 100 has activated the macro function. At this time, the icon of the macro function control 111 is a small flower, and its text is "Macro". In some embodiments, after detecting the display conditions for the macro function, the electronic device 100 can also display a prompt message 112 in the photo preview interface 10. The prompt message 112 is used to inform the user that the electronic device 100 has activated the macro function. The message 112 can disappear automatically after being displayed for a period of time without user interaction.

[0099] Referring to Figure 1(c), when the electronic device 100 detects that the display conditions of the macro function control are met, and the currently activated camera supports focal lengths other than the recommended 1x zoom, the electronic device 100 can change the icon of the recommended macro focal length in the zoom control 106 to a flower style. The recommended macro focal length could be, for example, 3.5x to 4x zoom.

[0100] Referring to Figures 1(c)-1(d), when the ambient light intensity increases, the electronic device 100 detects that the display conditions for the night scene enhancement function control are not met. Therefore, the electronic device 100 stops displaying the night scene enhancement function control 110 and simultaneously disables the night scene enhancement function. At this time, the first priority bit 108 is idle. Since other shooting conditions remain unchanged, the electronic device 100 still displays the macro function control 111 in the second priority bit 109.

[0101] Referring to Figures 1(d)-1(e), when the user moves the electronic device 100 away from the subject, the viewfinder image displayed in the preview window 105 changes. As shown in Figure 1(e), when the distance between the camera and the subject is greater than a first value, the electronic device 100 detects that the display conditions for the macro function control are not met, therefore it stops displaying the macro function control 111 in the second priority position 109 and simultaneously turns off the macro function. At this time, the second priority position 109 is idle.

[0102] Referring to Figures 1(e)-1(f), when the user moves the electronic device 100 closer to the subject, the viewfinder displayed in the preview window 105 changes. As shown in Figure 1(f), when the camera's focal length is "1X" (1x zoom), and the distance between the camera and the subject is less than or equal to a first value, the electronic device 100 detects that the display conditions for the macro function control are met. It then displays the macro function control 111 in the available and highest priority control position, i.e., in the first priority position 108, and simultaneously activates the macro function. As shown in Figure 1(f), the electronic device 100 can also display the prompt message 112 again.

[0103] Referring to Figures 1(f)-1(g), when the user moves the electronic device 100 without changing the shooting distance or the camera's focal length, the viewfinder image displayed in the preview window 105 changes. As shown in Figure 1(g), when the image captured by the camera contains food, the electronic device 100 detects that the display conditions for the food function control are met, and displays the food function control 113 in the idle and highest priority control position, that is, displays the food function control 113 in the second priority position 109, and simultaneously activates the food function.

[0104] Referring to Figures 1(d)-1(h), when the user moves the electronic device 100 without changing the shooting distance or the camera's focal length, the viewfinder image displayed in the preview window 105 changes. As shown in Figure 1(h), when the image captured by the camera contains food, the electronic device 100 detects that the display conditions for the food function control are met, and displays the food function control 113 at the idle and highest priority control position, i.e., the first priority position 108, and simultaneously activates the food function.

[0105] In some implementations, when other functions such as night scene enhancement and food function are enabled, the electronic device 100 may also display a prompt message, which is not limited here.

[0106] Comparing Figure 1(b) and Figure 1(f), it can be seen that in different scenarios, the electronic device 100 can display different "conditional display function controls" in the first priority position 108. Comparing Figure 1(c) and Figure 1(g), it can be seen that in different scenarios, the electronic device 100 can display different "conditional display function controls" in the second priority position 109.

[0107] Comparing Figure 1(c) and Figure 1(f), it can be seen that the same "conditional display function control" (such as macro function control 111) can be displayed in different control positions in different scenarios. Comparing Figure 1(g) and Figure 1(h), it can be seen that the same "conditional display function control" (such as food function control 113) can be displayed in different control positions in different scenarios.

[0108] As can be seen from the user interface shown in Figure 1, in the method provided in this embodiment, the electronic device 100 can flexibly display the "conditional display function control" in multiple control positions, rather than rigidly using a fixed position to display the "conditional display function control". In this way, when the display conditions of the "conditional display function control" are met, as long as there is still a free control position, the "conditional display function control" can be displayed and the corresponding function can be activated, without the problem of two or more "conditional display function controls" occupying the same position, causing some "conditional display function controls" to be unable to be displayed.

[0109] Figure 2 illustrates an example of an electronic device 100 displaying a photographic preview interface containing a subset of "conditional display function controls".

[0110] Referring to Figure 2(a), the electronic device 100 displays a photo preview interface 10. This photo preview interface 10 can be referenced to Figure 1(g), which displays a preview window 105, a macro function control 111 in the first priority position 108, and a food function control 113 in the second priority position 109.

[0111] Referring to Figures 2(a) and 2(b), when the electronic device 100 receives a user operation to zoom to the flower-shaped macro focal length in the zoom control 106, the electronic device 100 responds by activating the subject highlighting function in the macro function subset and changes the text in the macro function control 111 in the first priority position 108 from "macro" to "subject highlighting," thereby prompting the user that the subject highlighting function in the macro function subset has been activated. As shown in Figure 2(b), after receiving the zoom operation, the electronic device 100 can also highlight the flower-shaped macro focal length in the zoom control 106, for example, by adding a border around the flower-shaped macro focal length. In some embodiments, after the electronic device 100 activates the subject highlighting function, it can also display a prompt message 115 in the photo preview interface 10. The prompt message 115 is used to prompt the user that the electronic device 100 has activated the subject highlighting function. The prompt message 115 can disappear automatically after being displayed for a period of time without user interaction.

[0112] Referring to Figures 2(b)-2(d), when the electronic device 100 receives a user operation applied to the macro function control 111 in the first priority position 108, the electronic device 100 responds to the operation by gradually stopping the display of the food function control 113, gradually retracting the zoom control 106 to the left, and gradually expanding the macro function control 111 to the left into a macro function subset bar 114. The macro function subset bar 114 includes the following options: subject highlighting function option 114A, panoramic clarity function option 114B, and macro function off option 114C. The subject highlighting function option 114A has a border, which highlights the subject to indicate to the user that the electronic device 100 has enabled the subject highlighting function in the macro function subset.

[0113] If electronic device 100 receives a user operation on macro function control 111 in the first priority bit 108 of Figure 2(a), since electronic device 100 has not enabled any functions in the macro function subset at this time, electronic device 100 will respond to the operation by not expanding the macro function subset bar 114, but instead closing the macro function. At this time, the display style of macro function control 111 indicates that the macro function has been closed, and its specific display method can be referred to later.

[0114] After receiving the user operation shown in Figure 2(b), referring to Figures 2(c) and 2(d), the food function control 113 displayed in the photo preview interface 10 gradually disappears; the left side of the zoom control 106 remains stationary and gradually shortens and retracts to the left until it disappears. During this process, the text of each focal length displayed in the zoom control 106 gradually becomes smaller and moves to the left; the icon in the macro function control 111 gradually moves to the left and gradually disappears, and the text "Subject Prominence" in the macro function control 111 gradually moves to the left to become Subject Prominence function option 114A. During this process, the electronic device 100 gradually displays the panorama clarity function option 114B and the macro function off option 114C.

[0115] Referring to Figures 2(d) and 2(e), when the electronic device 100 receives a user operation on the panoramic clarity function option 114B, the electronic device 100 responds to the operation, activates the panoramic clarity function within the macro function subset, and highlights the panoramic clarity function option 114B. In some embodiments, after the electronic device 100 activates the panoramic clarity function, a prompt message 116 can also be displayed in the photo preview interface 10. The prompt message 116 is used to inform the user that the electronic device 100 has activated the panoramic clarity function. The prompt message 116 can disappear automatically after being displayed for a period of time without user interaction.

[0116] Referring to Figures 2(e), 2(f), and 2(g), after receiving a user operation on the panoramic clarity function option 114B, the electronic device 100, after a period of time or after receiving a click operation on a blank area (no control area), gradually displays the food function control 113 in the second priority position 109, gradually expands the zoom control 106 to the right, and gradually collapses the macro function subset bar 114 to the right to display the macro function control 111 in the first priority position 108. At this time, the icon of the macro function control 111 is two small flowers, and its text is "panoramic clarity".

[0117] During the above transformation process, the food function control 113 displayed in the photo preview interface 10 gradually appears; the zoom control 106 gradually appears, and its left side remains stationary while gradually lengthening and expanding to the right until it is fully displayed. During this process, the text of each focal length displayed in the zoom control 106 gradually increases in size and moves to the right; the macro function subset bar 114 gradually moves to the right and gradually disappears; the panorama clarity function option 114B gradually moves to the right and becomes the text "panorama clarity" of the macro function control 111. During this process, the electronic device 100 gradually displays the icon of the macro function control 111.

[0118] Referring to Figures 2(g) and 2(h), when the electronic device 100 receives a user operation applied to the macro function control 111, in response to the operation, the electronic device 100 gradually stops displaying the food function control 113, gradually retracts the zoom control 106 to the left, and gradually expands the macro function control 111 to the left into a macro function subset bar 114. The animation effects in this process can be found in the previous description of the animation effects in Figures 2(b)-2(d).

[0119] Referring to Figures 2(h) and 2(i), when the electronic device 100 receives a user operation targeting the macro function option 114C, the electronic device 100 responds to the operation by disabling the panoramic clarity function and the macro function, and highlights the macro function disabling option 114C. Referring to Figures 2(i) and 2(j), after a period of time or after the electronic device 100 receives a click operation targeting a blank area (where there are no controls), the electronic device 100 gradually displays the food function control 113 in the second priority position 109, gradually expands the zoom control 106 to the right, and gradually collapses the macro function subset bar 114 to the right to display the macro function control 111 in the first priority position 108. At this time, the icon of the macro function control 111 is a small flower with a slash, its background color is black, and its text is "Macro Disabling", indicating that the electronic device 100 has currently disabled the macro function. The animation effects in this process can be referred to in the previous description of the animation effects in Figures 2(e)-2(g).

[0120] Referring to Figures 2(j) and 2(k), when the user moves the electronic device 100 away from the subject, the viewfinder image displayed in the preview window 105 changes. As shown in Figure 2(k), when the distance between the camera and the subject exceeds a first value, the electronic device 100 detects that the display conditions for the macro function control are not met. Therefore, it stops displaying the macro function control 111 in the first priority position 108 and simultaneously disables the macro function, leaving the first priority position 108 idle. Furthermore, since the electronic device 100 has disabled the macro function, the zoom control 106 displayed by the electronic device 100 no longer shows the recommended macro focal length in a flower pattern, but instead displays the focal length in a numerical pattern.

[0121] Referring to Figure 2(k), the user adjusts the focal length to 1x zoom. If the user moves the electronic device 100 close to the subject, as shown in Figure 2(l), when the camera's focal length is "1X" (1x zoom), and the distance between the camera and the subject is less than or equal to the first value, the electronic device 100 detects that the display conditions for the macro function control are met. Therefore, it displays the macro function control 111 in the first priority position 108. Since the user's latest operation on the macro function during this shooting process is to turn it off, the icon of the macro function control 111 displayed in the first priority position 108 is a small flower with a slash, its background is black, and its text is "Macro Off," indicating that the electronic device 100 has turned off the macro function. Essentially, the electronic device 100 can record the state of each function control adjusted by the user (including on and off states) during a single shooting process. When the function control is displayed again after being stopped, it maintains the latest recorded state of the function control during this shooting process. The positions of the functional controls can be the same or different in the two displays, depending on the availability of each control. A shooting process can refer to the period from when the electronic device 100 launches the camera application until it is closed or brought to the background, or it can refer to a period of time after the electronic device 100 launches the camera application, during which the camera application can be opened or closed multiple times.

[0122] Referring to Figure 2(a), when the electronic device receives a user operation on the macro function control 111 while displaying Figure 2(a), it can respond to the operation by turning off the macro function and displaying the macro function control 111 in a closed style in the photo preview interface 10, as shown in Figure 2(j). The difference is that the focal length selected in the zoom control 106 is 1x zoom at this time. Afterwards, the electronic device moves away from the subject and then displays Figure 2(k). Then it can move closer to the subject and display Figure 2(l). For details, please refer to the previous description.

[0123] In the user interface shown in Figure 2, the macro function control 111 is located at the first priority position 108 to the right of the zoom control 106. Therefore, the zoom control 106 collapses to the left and expands to the right, the macro function control 111 expands to the left, and the macro function subset bar 114 collapses to the right. In other embodiments, for example referring to (h) of Figure 2, when the macro function control 111 is located at the second priority position 109 to the left of the zoom control 106, the zoom control 106 collapses to the right and expands to the left, the macro function control 111 expands to the right, and the macro function subset bar 114 collapses to the left.

[0124] Figures 3 and 4 exemplarily illustrate a camera preview interface displayed on an electronic device 200 with a large screen aspect ratio, such as a foldable phone or tablet.

[0125] For electronic devices 200 with a larger screen width and height, the width is wider, and the layout of the various elements in the user interface displayed is somewhat different compared to electronic devices 100 with a smaller screen width and height.

[0126] Figure 3 illustrates, for example, the camera preview interface of the electronic device 200 displaying the "Conditional Display Function Control".

[0127] Referring to Figure 3(a), the electronic device 200 displays a camera preview interface 20 provided by a camera application. This camera application can be a system application or a third-party application. Both the camera application in electronic device 200 and the camera app in electronic device 200 are used to achieve the same function, and both can be provided by the same developer, but they are not exactly the same. The camera application in electronic device 200 is adapted to electronic device 200, and the camera app in electronic device 200 is adapted to electronic device 200.

[0128] As shown in Figure 3(a), the photo preview interface 20 displays the following: mode selector 201, playback control 202, photo control 203, switching control 204, preview window 205, zoom control 206, and quick access area 207. The functions of each control can be found in the description in Figure 3(a). Compared to Figure 3(a), the quick access area 207 and zoom control 206 are located on the left side of the screen, while the mode selector 201, playback control 202, photo control 203, and switching control 204 are located on the right side of the screen. The photo control 203 is located in the middle right of the photo preview interface 20, equidistant from the top and bottom edges of the screen.

[0129] As shown in Figure 3(a), the photo preview interface 20 includes a first priority position 208 and a second priority position 209. The first priority position 208 has a higher priority than the second priority position 209. The function of the first priority position 208 can be referred to as the function of the first priority position 108 in Figures 1-2, and the function of the second priority position 209 can be referred to as the function of the second priority position 109 in Figures 1-2. Essentially, rotating the photo preview interface 10 counterclockwise by 90° results in an interface similar to the photo preview interface 20 in Figures 3-4.

[0130] When two "conditional display function controls" need to be displayed in the photo preview interface 20, the electronic device uses the first priority position 208 and the second priority position 209 to display these two "conditional display function controls". In this case, the first priority position 208 is located above the second priority position 209, and the two are positioned in the middle of the left side of the photo control 203. The first priority position 208 and the second priority position 209 are symmetrical about the photo control 203. The distance between the first priority position 208 and the top edge of the display screen, and the distance between the second priority position 209 and the bottom edge of the display screen are the same. In this way, the two "conditional display function controls" displayed in the photo preview interface 20 are positioned in the middle of the left side of the photo control 203, which can present a symmetrical aesthetic to the user.

[0131] When only one "conditional display function control" needs to be displayed in the user interface, the electronic device uses either the first priority bit 208 or the second priority bit 209 to display that single "conditional display function control." In this case, the first priority bit 208 or the second priority bit 209 is located in the middle position on the left side of the camera control 203, and its distance from the top and bottom edges of the display screen is the same. Thus, the "conditional display function control" displayed in the camera preview interface 20 is positioned in the middle position on the left side of the camera control 203, presenting the user with a sense of symmetry.

[0132] Referring to Figures 3(a)-3(b), when the user moves the electronic device 200, the viewfinder displayed in the preview window 205 changes. As shown in Figure 3(b), when the brightness of the image captured by the camera is less than or equal to the second value, or when the ambient light intensity is less than or equal to the third value, the electronic device 200 detects that the display conditions for the night scene enhancement function control are met, and displays the night scene enhancement function control 210 in the idle and highest priority control position, that is, displays the night scene enhancement function control 210 in the first priority position 208, and simultaneously activates the night scene enhancement function. At this time, the electronic device only needs to display the night scene enhancement function control 210, and only one control position is needed. Therefore, the first priority position 208 is located in the middle position to the left of the camera control 203. The display method of the night scene enhancement function control 210 can be referred to the relevant description in Figure 3.

[0133] Referring to Figures 3(b)-3(c), when the user brings the electronic device 200 close to the subject, the viewfinder displayed in the preview window 205 changes. As shown in Figure 3(c), when the camera's focal length is "1X" (1x zoom), and the distance between the camera and the subject is less than or equal to a first value, the electronic device 200 detects that the display conditions for the macro function control are met. It displays the macro function control 211 in the available and highest priority control position, specifically in the second priority position 209, and simultaneously activates the macro function. At this time, the electronic device needs to display both the night scene enhancement function control 210 and the macro function control 211, requiring two control positions. Therefore, the first priority position 208 is located above the second priority position 209, and both the first priority position 208 and the second priority position 209 are positioned in the middle of the left side of the shooting control 203. In some implementations, after the electronic device 200 detects the display conditions for the macro function, it can also display a prompt message 212 in the photo preview interface 20. The prompt message 212 is used to inform the user that the electronic device 200 has enabled the macro function. The prompt message 212 can disappear automatically after being displayed for a period of time without user interaction. The display method of the macro function control 211 and the changes of the zoom control 206 can be referred to the relevant description in Figure 3.

[0134] Referring to Figures 3(c)-3(d), when the ambient light intensity increases, the electronic device 200 detects that the display conditions for the night scene enhancement function control are not met. Therefore, the electronic device 200 stops displaying the night scene enhancement function control 210 and simultaneously disables the night scene enhancement function. At this time, the first priority position 208 is idle. Other shooting conditions remain unchanged, so the electronic device 200 still displays the macro function control 211 in the second priority position 209. At this time, the electronic device only needs to display the macro function control 211, requiring only one control position. Therefore, the second priority position 209 is located in the middle position to the left of the shooting control 203.

[0135] Referring to Figures 3(d)-3(e), when the user moves the electronic device 200 away from the subject, the viewfinder image displayed in the preview window 205 changes. As shown in Figure 3(e), when the distance between the camera and the subject is greater than a first value, the electronic device 200 detects that the display conditions for the macro function control are not met, therefore it stops displaying the macro function control 211 in the second priority position 209 and simultaneously disables the macro function.

[0136] Referring to Figures 3(e)-3(f), when the user moves the electronic device 200 closer to the subject, the viewfinder displayed in the preview window 205 changes. As shown in Figure 3(f), when the camera's focal length is "1X" (1x zoom), and the distance between the camera and the subject is less than or equal to a first value, the electronic device 200 detects that the display conditions for the macro function control are met. It displays the macro function control 211 in the available and highest priority control position, specifically in the first priority position 208, and simultaneously activates the macro function. At this time, the electronic device only needs to display the macro function control 211, requiring only one control position; therefore, the first priority position 208 is located in the middle position to the left of the shutter control 203. As shown in Figure 3(f), the electronic device 200 can also display the prompt message 212 again.

[0137] Referring to Figures 3(f)-3(g), when the user moves the electronic device 200 without changing the shooting distance or the camera's focal length, the viewfinder image displayed in the preview window 205 changes. As shown in Figure 3(g), when the image captured by the camera contains food, the electronic device 200 detects that the display conditions for the food function control are met. It displays the food function control 213 in the available and highest priority control position, i.e., in the second priority position 209, and simultaneously activates the food function. At this time, the electronic device needs to display both the macro function control 211 and the food function control 213, requiring two control positions. Therefore, the first priority position 208 is located above the second priority position 209, and both the first priority position 208 and the second priority position 209 are positioned in the middle left of the camera control 203.

[0138] Referring to Figures 3(d)-3(h), when the user moves the electronic device 200 without changing the shooting distance or the camera's focal length, the viewfinder image displayed in the preview window 205 changes. As shown in Figure 3(h), when the image captured by the camera contains food, the electronic device 200 detects that the display conditions for the food function control are met. It displays the food function control 213 in the available and highest priority control position, i.e., in the first priority position 208, and simultaneously activates the food function. At this time, the electronic device needs to display both the macro function control 211 and the food function control 213, requiring two control positions. Therefore, the first priority position 208 is located above the second priority position 209, and both the first priority position 208 and the second priority position 209 are positioned in the middle left of the camera control 203.

[0139] Comparing Figure 3(b) and Figure 3(f), it can be seen that in different scenarios, the electronic device 200 can display different "conditional display function controls" in the first priority position 208. Comparing Figure 3(c) and Figure 3(g), it can be seen that in different scenarios, the electronic device 200 can display different "conditional display function controls" in the second priority position 209.

[0140] Comparing Figure 3(c) and Figure 3(f), it can be seen that the same "conditional display function control" (such as macro function control 211) can be displayed in different control positions in different scenarios. Comparing Figure 3(g) and Figure 3(h), it can be seen that the same "conditional display function control" (such as food function control 213) can be displayed in different control positions in different scenarios.

[0141] Figure 4 illustrates an example of an electronic device 200 displaying a photographic preview interface containing a subset of "conditional display function controls".

[0142] The explanation of the user interface in Figure 4 can be found in the related description in Figure 2. The difference between Figure 4 and Figure 2 is that there is sufficient space between the zoom control 206 and the first priority position 208 and the second priority position 209, providing enough space for the macro function control 211 when expanded. Therefore, when expanding the macro function control 211, there is no need to collapse the zoom control 206. Furthermore, the macro function control 211 can be expanded both upwards and downwards simultaneously to form a macro function subset bar 214. When collapsing the macro function subset bar 214, it can be collapsed both upwards and downwards simultaneously to form the macro function control 211.

[0143] Other implementation methods

[0144] For the camera preview interface 20 displayed on the electronic device 200 with a large screen aspect ratio, as shown in Figures 3 and 4, when the electronic device switches from displaying "conditional display function controls" in one control position to displaying "conditional display function controls" in two control positions, the function control whose display condition is met earlier can always be displayed in the first priority position 208, while the function control whose display condition is met later can be displayed in the second priority position 209. For example, referring to Figures 3(d)-3(g), if the user moves the electronic device 200 without changing the shooting distance and the focal length of the camera, the viewfinder image displayed by the electronic device 200 in the preview window 205 changes. As shown in Figure 3(g), when the image captured by the camera contains food, the electronic device 200 detects that the display condition of the food function control is currently met, displays the macro function control 211 whose condition is met earlier in the first priority position 208, and displays the food function control 213 whose condition is met later in the second priority position 209.

[0145] Figures 1-4 exemplarily illustrate the positions of two controls. When the display conditions of multiple "conditional display function controls" are met, the electronic device can prioritize displaying the two "conditional display function controls" whose conditions are met first at these two control positions, and temporarily not display the other "conditional display function controls" whose display conditions are met.

[0146] The two control positions shown in Figures 1-4 are merely examples. In some implementations, there can be three, four, or more control positions in the photo preview interface. For example, in the photo preview interface 10 shown in Figures 1-2, there can be a control position above the first priority position 108 and another control position above the second priority position 109. Similarly, in the photo preview interface 20 shown in Figures 3-4, there can be a control position above the first priority position 208 and another control position below the second priority position 209. Furthermore, in the photo preview interface 20 shown in Figures 3-4, when the number of control positions used in the photo preview interface 20 decreases (e.g., from four to three), the currently used control positions are all centered on the left side of the photo control 203, thus presenting a symmetrical aesthetic.

[0147] The element layout and control positions shown in Figures 1-4 are only examples. In other embodiments, the photo preview interface may present other element layouts, and the control positions may be in other locations within the photo preview interface.

[0148] The camera preview interface includes which "conditional display controls" (number and type), and the display conditions of these controls can be set by the camera app developer or made available to the user for user customization. The number of controls and their specific locations within the preview interface can also be set by the camera app developer or made available to the user for user customization.

[0149] The priority relationship between the positions of two controls in the photo preview interface shown in Figures 1-4 is only an example. In some implementations, the priority relationship between the positions of each control in the photo preview interface can be set by the camera application developer or can be made available to the user for user customization.

[0150] Not limited to the macro function subset shown in Figures 2 and 4, other functions can also include function subsets, allowing these other function controls to expand or collapse according to user operations. The logic for expanding and collapsing other function controls can be found in the preceding description. Whether other functions provided in the photo preview interface include function subsets can be set by the camera application developer or left to the user for customization.

[0151] The macro function shown in Figures 2 and 4 can be turned off, and the state of the macro function control can be maintained during a single shooting process. The functions corresponding to other "conditional display function controls" can also be turned off in response to user operations, and the states of other "conditional display function controls" can also be maintained during a single shooting process. For example, referring to Figure 1(b), if the electronic device receives a user operation on the night scene enhancement function control 110 displayed in the first priority bit 108, the electronic device responds to the operation by turning off the night scene enhancement function and adjusting the style of the night scene enhancement function control 110 to a closed style, such as adjusting its icon to a black background and adding a slash to its icon. Then, if the electronic device detects that the display conditions of the night scene enhancement function control are not currently met, it stops displaying the night scene enhancement function control 110. Then, if it detects again that the display conditions of the night scene enhancement function control are met, it re-displays the night scene enhancement function control 110, maintaining the night scene enhancement function in a closed state, and the night scene enhancement function control 110 is in a closed style.

[0152] The method for displaying functional controls in photo preview mode, as described above in the embodiments of this application, is not limited to the photo preview interface shown in Figures 1-2. Other user interfaces can also provide "conditional display function controls" and their positions. This method can also be applied to other user interfaces, and the user interfaces for which this method is applied are not limited here. For example, the recording interface in the recording mode provided by a camera application can use the method provided by this application. The method provided by this application can also be used in the user interfaces provided by instant messaging applications, video applications, music applications, and other applications. The number, type, position of the controls in the user interface, and priority relationship between the positions of the controls can vary in different user interfaces.

[0153] Figure 5 is a flowchart of a method for displaying functional controls in a user interface according to an embodiment of this application.

[0154] This method is performed by an electronic device, which can be either electronic device 100 or electronic device 200 mentioned above. As shown in Figure 5, the method may include the following steps:

[0155] S101, when the first condition is detected to be met, the first functional control is displayed at the first position in the first user interface, where the first condition is the display condition of the first functional control.

[0156] The primary user interface can be the photo preview interface provided by the camera application in photo mode. The camera application can be a system application or a third-party application. However, it is not limited to this; the primary user interface can also be other user interfaces, such as the video recording interface provided by the camera application in video recording mode, or the user interface provided by instant messaging applications / video applications / music applications, etc. There are no restrictions here.

[0157] For example, the first user interface can refer to the photo preview interface 10 shown in FIG1 and the photo preview interface 20 shown in FIG3. The first position can refer to the first priority position 108 shown in FIG1, and the first functional control can refer to the night scene enhancement function control 110 in FIG1. ​​Alternatively, the first position can refer to the first priority position 208 shown in FIG3, and the first functional control can refer to the night scene enhancement function control 210 in FIG3. The first condition can be the display condition of the night scene enhancement function control, as detailed above.

[0158] S102, if the second condition is detected, the second function control is displayed at the second position in the first user interface, and the second condition is the display condition of the second function control.

[0159] For example, the second position can refer to the second priority bit 109 shown in FIG1, and the second functional control can refer to the macro function control 111 in FIG1. ​​Alternatively, the second position can refer to the second priority bit 109 shown in FIG3, and the second functional control can refer to the macro function control 111 in FIG3. The second condition can be the display condition of the macro function control, as detailed above.

[0160] For example, S101-S102 can refer to Figure 1(b)-Figure 1(c) or Figure 3(b)-Figure 3(c).

[0161] S103, it is detected that the first condition is not met, so stop displaying the first function control at the first position.

[0162] S104, it was detected that the second condition is not met, so the display of the second function control in the second position is stopped.

[0163] For example, S103-S104 can refer to Figure 1(d)-Figure 1(e), or Figure 3(d)-Figure 3(e).

[0164] S105, the second condition is detected to be met again, and the second function control is displayed in the first position.

[0165] For example, S105 may refer to (f) of Figure 1 or (f) of Figure 3.

[0166] Through the aforementioned steps, the electronic device can display different controls at the same location on the user interface in different scenarios. For example, the first location can display a first functional control or a second functional control.

[0167] Through the aforementioned steps, electronic devices can display the same control in different locations on the user interface in different scenarios. For example, the second function control can be displayed in either the first or the second location.

[0168] Optionally, in step S106, if the third condition is detected, the third function control is displayed in the second position, where the third condition is the display condition for the third function control.

[0169] For example, the second functional control can refer to the food function control 113 in Figure 1. S106 can refer to (g) in Figure 1. Also for example, the second functional control can refer to the food function control 213 in Figure 4. S106 can refer to (g) in Figure 3. The third condition is, for example, the display condition of the food function control, as detailed above.

[0170] Through S106, the electronic device can display different controls at the same location on the user interface in different scenarios. For example, the second location can display a second function control or a third function control.

[0171] In some embodiments, the electronic device may also perform the following optional steps S107-S109 (not shown in Figure 5):

[0172] S107, in response to the operation of turning off the second function, the second function is turned off and the second function control is changed from the first form to the second form.

[0173] When the electronic device displays the second function control in the first position, it can display the second function control in a first form, indicating that the second function corresponding to the second function control is enabled. For example, referring to Figure 2(a), the display form of the macro function control 111 at this time indicates that the current electronic device has enabled the macro function. For example, referring to Figure 4(a), the display form of the macro function control 211 at this time indicates that the current electronic device has enabled the macro function.

[0174] The operation to disable the second function can be, for example, a user operation acting on the macro function control 111 in Figure 2(a), or a user operation acting on the macro function control 211 in Figure 4(a). The second function control in the second form indicates that the second function corresponding to the second function control is disabled. The second function control in the second form can be, for example, the macro function control 111 shown in Figure 2(j), or the macro function control 211 shown in Figure 4(j).

[0175] For example, the first form includes a white background color, and the second form includes a black background color.

[0176] S108, if the second condition is not met, stop displaying the second function control in the second form at the first position.

[0177] For example, S110 may refer to (k) of Figure 2 or (k) of Figure 4.

[0178] S109, if the second condition is detected to be met again, the second function control in the second form is displayed.

[0179] For example, S110 may refer to (l) of Figure 2 or (l) of Figure 4.

[0180] With S107-S109, when an electronic device displays a function control again after stopping its display, it maintains the function control in the latest recorded state during the shooting process. This allows the device to continue to meet the user's needs and preferences, providing a better user experience.

[0181] In some implementations, if the function corresponding to the second function control includes sub-functions, the method shown in FIG5 may further include the following optional steps S110-S112 (not shown in FIG5):

[0182] S110, upon receiving the first operation or detecting that the fourth condition is met, the second function control is changed from the third form to the fourth form. The second function control in the third form indicates the second function, and the second function control in the fourth form indicates the first sub-function of the second function.

[0183] The second functional control could be, for example, the macro function control 111 shown in Figure 2(a), and the first operation could be, for example, the user-input zoom operation shown in Figure 2(a). Alternatively, the second functional control could be, for example, the macro function control 211 shown in Figure 4(a), and the first operation could be, for example, the user-input zoom operation shown in Figure 4(a). The fourth condition could be, for example, an auto-zoom condition, as detailed above.

[0184] The second function control in the third form indicates the second function. The second function control in the fourth form indicates the first sub-function of the second function.

[0185] The second functional control of the third form can be, for example, the macro function control 111 shown in Figure 2(a), and the second functional control of the fourth form can be, for example, the macro function control 111 shown in Figure 2(b). Alternatively, the second functional control of the third form can be, for example, the macro function control 211 shown in Figure 4(a), and the second functional control of the fourth form can be, for example, the macro function control 211 shown in Figure 4(b). The first sub-function can be, for example, the main body highlighting function shown in Figure 2(b) or Figure 4(b).

[0186] The functional controls in the third and fourth forms may differ in one or both of the following: different icons or different text.

[0187] Through S110, the electronic device can activate a sub-function of the second function and can prompt the user about the currently activated function through the form of the second function control.

[0188] S111, receiving a second operation applied to the second function control, expanding the second function control into a subset bar of the second function. The subset bar of the second function includes a first option and a second option. The first option indicates a first sub-function of the second function, and the second option indicates a second sub-function of the second function. The first sub-function may be, for example, a subject highlighting function, and the second sub-function may be, for example, a panoramic clarity function.

[0189] The second operation can be seen, for example, in the user operation applied to the macro function control 111 in Figure 2(b). The process of expanding the second function control can be seen in Figure 2(c) and the preceding description. The subset bar of the second function can be seen in the macro function subset bar 114 shown in Figure 2(d), with the first option being, for example, the subject highlighting function option 114A shown in Figure 2(d). The second option can be seen, for example, the panoramic clarity function option 114B shown in Figure 2(d).

[0190] Alternatively, the second operation can be seen, for example, in the user operation applied to the macro function control 211 in Figure 4(b). The process of expanding the second function control can be seen in Figure 4(c) and the preceding description. The subset bar of the second function can be seen in the macro function subset bar 214 shown in Figure 4(d), with the first option being, for example, the subject highlighting function option 214A shown in Figure 4(d). The second option can be seen, for example, the panoramic clarity function option 214B shown in Figure 4(d).

[0191] S112, receiving the third operation applied to the second option, collapsing the subset bar of the second function into the fifth form of the second function control, and activating the second sub-function.

[0192] The third operation can be referenced, for example, the user operation applied to the panoramic clarity function option 114B in Figure 2(d), or the user operation applied to the panoramic clarity function option 214B in Figure 4(d). The process of collapsing the subset bar of the second function into the second function control can be referenced in Figure 2(f) or Figure 4(f) and the above description.

[0193] The second function control in the fifth form indicates a second sub-function of the second function. The second function control in the fifth form can be exemplified by the macro function control shown in Figure 2(g) or Figure 4(g). The function controls in the fifth form and the fourth form may differ in one or both of the following: different icons or different text.

[0194] S107-S109 and S110-S112 can be two branches implemented in parallel or simultaneously. For example, the electronic device can execute S110-S112 first, and then execute S107-S109, so that the second function control of the fifth form is the second function control of the first form.

[0195] In some implementations, the positions of the first position and the second position in the first user interface are fixed, and the first position and the second position are displayed horizontally centered in the first user interface. This horizontally centered display can also be referred to as a horizontally centered display. Here, the first position can be referred to as the first priority bit 108 shown in Figures 1-2, and the second position can be referred to as the second priority bit 109 shown in Figures 1-2.

[0196] In some implementations, when both the first and second positions display functional controls, the first and second positions are centered vertically within the first user interface; when the first position displays functional controls but the second position does not, the first position is centered vertically within the first user interface; when the second position displays functional controls but the first position does not, the second position is centered vertically within the first user interface. Here, the first position can be referred to as the first priority bit 208 shown in Figures 3-4, and the second position can be referred to as the second priority bit 209 shown in Figures 3-4.

[0197] When the primary user interface is the photo preview interface, the photo preview interface displays zoom controls, with the first position located to the right of the zoom controls and the second position located to the left of the zoom controls. See Figure 2 for reference in this case.

[0198] When the primary user interface is a camera preview interface, the camera preview interface displays camera controls, with the first and second positions located to the left of the camera controls. See Figure 4 for reference in this case.

[0199] Both of the above implementation methods can ensure that the functional controls displayed in the first and second positions are centered in the user interface, which can present a symmetrical aesthetic to the user.

[0200] The first and second function controls are both one of the following: macro function control, night scene enhancement function control, moon viewing function control, food function control, blue sky function control, sunrise and sunset function control, portrait function control; the first and second function controls are different.

[0201] Figure 6 is a flowchart of a method for displaying functional controls in a photo preview interface according to an embodiment of this application.

[0202] This method is performed by an electronic device, which can be either electronic device 100 or electronic device 200 mentioned above. As shown in Figure 6, the method may include the following steps:

[0203] S201, displays the photo preview interface.

[0204] For example, S201 may refer to Figure 1(a) or Figure 3(a).

[0205] S202, when the first condition is detected, the first form of the function control is displayed in the first position of the photo preview interface, and the first condition is the display condition of the function control.

[0206] The functional control here could be, for example, the macro function control 111 in Figures 1-2, and the first position could be the first priority bit 108 in Figures 1-2. Alternatively, the functional control could be the macro function control 211 in Figures 3-4, and the first position could be the first priority bit 208 in Figures 3-4. The first condition could be, for example, the display condition of the macro function control, as detailed above.

[0207] For example, the macro function control 111 shown in Figure 1 and Figure 2(a) can be used as a reference for the first type of function control. Alternatively, the macro function control 211 shown in Figure 3 and Figure 4(a) can be used as a reference for the first type of function control.

[0208] S203, when the change in focal length is detected to meet the second condition, the second form of the function control is displayed in the first position of the photo preview interface. The second form of the function control is used to indicate the activation of the first sub-function corresponding to the function control.

[0209] The second condition could be, for example, increasing the zoom ratio. The first sub-function could be, for example, highlighting the main subject.

[0210] The second type of functional control can be seen, for example, as the macro function control 111 shown in Figure 2(b). Alternatively, the second type of functional control can be seen, for example, as the macro function control 111 shown in Figure 4(b).

[0211] The second form of the function control indicates the first sub-function. The second form and the first form of the function control may differ in one or both of the following: different icons, different text.

[0212] S204, in response to an operation on the function control in the second form, expand the function control into a function subset bar, the function subset bar including a first option and a second option, the first option indicating a first sub-function and the second option indicating a second sub-function.

[0213] The operation of the function control in the second form can be seen, for example, in the user operation of the macro function control 111 in Figure 2(b). The process of expanding the function control can be seen in Figure 2(c) and the above description. The function subset bar can be seen in the macro function subset bar 114 shown in Figure 2(d). The first option can be seen, for example, in the subject highlighting function option 114A shown in Figure 2(d). The second option can be seen, for example, in the panoramic clarity function option 114B shown in Figure 2(d).

[0214] The operation of the function control in the second form can be seen, for example, in the user operation of the macro function control 211 in Figure 4(b). The process of expanding the function control can be seen in Figure 4(c) and the above description. The function subset bar can be seen in the macro function subset bar 214 shown in Figure 4(d). The first option can be seen, for example, in the subject highlighting function option 214A shown in Figure 4(d). The second option can be seen, for example, in the panoramic clarity function option 214B shown in Figure 4(d).

[0215] S205, upon receiving the operation applied to the second option, collapse the function subset bar into a third-form function control and activate the second sub-function.

[0216] For example, the operation applied to the second option can be referred to in Figure 2(d) for the user operation applied to the panoramic clarity function option 114B, or in Figure 4(d) for the user operation applied to the panoramic clarity function option 214B. The process of collapsing the subset bar of the second function into the second function control can be referred to in Figure 2(f) or Figure 4(f) and the above description.

[0217] The third form of the function control indicates the second sub-function. The third form of the function control can be exemplified by the macro function control shown in Figure 2(g) or Figure 4(g). The third and fourth forms of the function control may differ in one or both of the following: different icons or different text.

[0218] Using the method shown in Figure 6, electronic devices can change the display form of functional controls in the user interface according to the actual scenario, and can also enable some sub-functions of functions according to the actual situation.

[0219] The electronic device provided in the embodiments of this application is described below.

[0220] The electronic devices in this application are smart terminal devices, which can be of various types, and this application does not limit their specific types. For example, the electronic devices can be non-foldable screen mobile phones, foldable screen mobile phones, and can also include tablet computers, cameras, desktop computers, desktop computers with touch-sensitive surfaces or touch panels, laptop computers, handheld computers, smart screens, wearable devices (such as smartwatches, smart bracelets, etc.), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, in-vehicle systems, smart headphones, game consoles, and can also be Internet of Things (IoT) devices or smart home devices such as smart water heaters, smart lights, smart air conditioners, etc.

[0221] Referring to Figure 7, which is a hardware structure diagram of an electronic device provided in an embodiment of this application, the electronic device may be the aforementioned electronic device 100 or electronic device 200.

[0222] As shown in Figure 7, the electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A and a touch sensor 180K.

[0223] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0224] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0225] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0226] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0227] The charging management module 140 is used to receive charging input from the charger.

[0228] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, display 194, camera 193, and wireless communication module 160, etc.

[0229] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0230] 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 one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0231] The mobile communication module 150 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G, in electronic devices.

[0232] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0233] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0234] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0235] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0236] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-oled, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, the electronic device may include one or N displays 194, where N is a positive integer greater than 1.

[0237] Electronic devices can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0238] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0239] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device may include one or N cameras 193, where N is a positive integer greater than 1.

[0240] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device is selecting a frequency, a DSP can perform a Fourier transform on the frequency energy.

[0241] Video codecs are used to compress or decompress digital video. Electronic devices can support one or more video codecs. This allows the electronic device to play or record video in various encoded formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0242] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0243] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0244] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0245] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.

[0246] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, the electronic device detects the intensity of the touch operation based on pressure sensor 180A. The electronic device can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0247] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of the electronic device, in a different position than display screen 194.

[0248] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The electronic device can receive button input and generate key signal inputs related to user settings and function control of the electronic device.

[0249] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback.

[0250] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0251] In this embodiment, the internal memory 121 stores a computer program for implementing the method of displaying functional controls in a user interface provided in this embodiment, and the processor 110 executes the computer program to implement the method provided in this embodiment. Specifically, the display screen 194 displays various user interfaces provided in this embodiment, and the processor 110 determines whether the display conditions for "conditionally displaying functional controls" in the user interface displayed on the display screen 194 are met, and controls the display and hiding of the "conditional functional controls" in the user interface displayed on the display screen 194. The functions of each module in the electronic device can be referred to the above description, and will not be listed one by one here.

[0252] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses a layered mobile operating system as an example to illustrate the software structure of an electronic device.

[0253] Figure 8 is a software structure diagram of the electronic device provided in an embodiment of this application.

[0254] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, a mobile operating system is divided into four layers, from top to bottom: the application layer, the application framework / core service layer, the underlying libraries and runtime, and the kernel layer.

[0255] The application layer can include a series of application packages.

[0256] As shown in Figure 8, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0257] The program framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The program framework layer includes some predefined functions.

[0258] As shown in Figure 8, the program framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0259] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0260] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0261] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0262] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0263] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0264] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0265] Runtime can refer to all the code libraries, frameworks, etc., required for a program to run. For example, for the C language, the runtime includes a series of function libraries required for C programs to run. For the Java language, in addition to the core libraries, the runtime also includes the virtual machine required for Java programs to run. The aforementioned core libraries can include the functionalities that the Java language needs to call.

[0266] The underlying library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0267] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0268] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0269] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0270] A 2D graphics engine is a graphics engine for 2D drawing.

[0271] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0272] The following example, using a scene of capturing a photograph, illustrates the workflow of the electronic device's software and hardware.

[0273] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a touch click as an example, where the corresponding control is the camera application icon, the camera application calls the application framework layer's interface to launch the camera application, and then calls the kernel layer to launch the camera driver, capturing still images or videos through camera 193.

[0274] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0275] This application also provides an electronic device that may include a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method executed on the electronic device side as in any of the above embodiments.

[0276] This application also provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method executed on the electronic device side as in any of the above embodiments.

[0277] This application also provides a chip system including at least one processor for implementing the methods executed on the electronic device side in any of the above embodiments. In one possible design, the chip system further includes a memory for storing program instructions and data, the memory being located within or outside the processor.

[0278] A chip system can consist of chips or include chips and other discrete components.

[0279] Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0280] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or disposed separately; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.

[0281] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0282] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method executed on the electronic device side in any of the above embodiments.

[0283] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method executed on the electronic device side as in any of the above embodiments.

[0284] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0285] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0286] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0287] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0288] The terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0289] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.

Claims

1. A method for displaying functional controls in a user interface, characterized in that, Applied to electronic devices, the method includes: If a first condition is detected, a first functional control is displayed at a first position in the first user interface, wherein the first condition is the display condition of the first functional control; If the second condition is detected, the second functional control is displayed at the second position in the first user interface, where the second condition is the display condition for the second functional control; If the first condition is not met, stop displaying the first functional control at the first position; If the second condition is not met, stop displaying the second function control at the second position; If the second condition is detected to be met again, the second function control is displayed at the first position.

2. The method according to claim 1, characterized in that, The method further includes: If the third condition is detected, the third function control is displayed at the second position. The third condition is the display condition for the third function control.

3. The method according to claim 1 or 2, characterized in that, The step of displaying the second function control at the first position includes: displaying the second function control in a first form, wherein the second function control in the first form indicates that the second function corresponding to the second function control is enabled; Accordingly, after displaying the second functional control at the first position, the method further includes: In response to the operation of turning off the second function, the second function is turned off, and the second function control is changed from the first form to the second form; If the second condition is not met, stop displaying the second function control in the second form at the first position; If the second condition is detected to be met again, the second function control in the second form is displayed.

4. The method according to claim 3, characterized in that, The first form includes a white background, and the second form includes a black background.

5. The method according to claim 1 or 2, characterized in that, The second functional control corresponds to a second function. After displaying the second functional control at the first position, the method further includes: Upon receiving the first operation or detecting that the fourth condition is met, the second function control is changed from the third form to the fourth form. The second function control in the third form indicates the second function, and the second function control in the fourth form indicates the first sub-function of the second function.

6. The method according to claim 5, characterized in that, After changing the second functional control from the third form to the fourth form, the method further includes: Upon receiving a second operation applied to the second function control, the second function control is expanded into a subset bar of the second function. The subset bar of the second function includes a first option and a second option. The first option indicates the first sub-function of the second function, and the second option indicates the second sub-function of the second function. Upon receiving a third operation applied to the second option, the subset bar of the second function is collapsed into the second function control in its fifth form, and the second sub-function is activated.

7. The method according to claim 6, characterized in that, The second function is the macro function, the first sub-function based on the second function is the subject highlighting function, and the second sub-function based on the second function is the panoramic clarity function.

8. The method according to any one of claims 1-7, characterized in that, The positions of the first position and the second position in the first user interface are fixed, and the first position and the second position are displayed centered horizontally in the first user interface.

9. The method according to any one of claims 1-7, characterized in that, When both the first position and the second position display functional controls, the first position and the second position are located vertically centered in the first user interface. When a functional control is displayed at the first position and no functional control is displayed at the second position, the first position is located in the vertical center of the first user interface. When the second position displays a functional control while the first position does not display a functional control, the second position is located in the vertical center of the first user interface.

10. The method according to any one of claims 1-9, characterized in that, The first user interface is the photo preview interface provided by the camera application in the photo shooting mode.

11. The method according to claim 10, characterized in that, The photo preview interface displays a zoom control, with the first position located to the right of the zoom control and the second position located to the left of the zoom control.

12. The method according to claim 10, characterized in that, The photo preview interface displays a photo control, with the first position and the second position located to the left of the photo control.

13. The method according to any one of claims 1-12, characterized in that, The first functional control and the second functional control are both one of the following: macro functional control, night scene enhancement functional control, moon viewing functional control, food functional control, blue sky functional control, sunrise and sunset functional control, and portrait functional control; the first functional control and the second functional control are different.

14. The method according to any one of claims 1-13, characterized in that, The first functional control is a night scene enhancement function control. The first condition is that the brightness of the image captured by the camera activated by the electronic device is less than or equal to the second value, or the ambient light intensity after the camera is activated by the electronic device is less than or equal to the third value. The second function control is a macro function control, and the second condition is that when the focal length of the camera activated by the electronic device is 1x zoom, the distance between the camera and the subject is less than or equal to the first value.

15. A method for displaying functional controls in a photo preview interface, characterized in that, Applied to electronic devices, the method includes: Displays the camera preview interface; When the first condition is detected, a first-form function control is displayed at a first position on the photo preview interface, wherein the first condition is the display condition of the function control; When the change in focal length is detected to meet the second condition, the function control in the second form is displayed at the first position of the photo preview interface. The function control in the second form is used to indicate the activation of the first sub-function corresponding to the function control. In response to an operation on the function control in the second form, the function control is expanded into a function subset bar, the function subset bar including a first option and a second option, the first option indicating the first sub-function and the second option indicating the second sub-function; Received an operation applied to the second option; Collapse the function subset bar into the function control in its third form and activate the second sub-function.

16. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the method as described in any one of claims 1-15.

17. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1-15.

18. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-15.

19. A chip system comprising a processing circuit and an interface circuit, the interface circuit being configured to receive computer instructions and transmit them to the processing circuit, the processing circuit being configured to execute the computer instructions to implement the method as described in any one of claims 1-15.

Citation Information

Patent Citations

  • Terminal video streaming processing method and terminal video streaming processing module

    CN102591586A

  • Notification message display method and electronic equipment

    CN113722027A

  • Display method and device of operation control, equipment, medium and program product

    CN118467081A

  • Display controller, display control method, and program

    JP2014096821A