Method for displaying function controls in a user interface, electronic device

By detecting conditional display of functional controls in the user interface, the problem of fixed display of functional controls is solved, enabling flexible display and hiding of controls in different scenarios, thus improving the simplicity of the user interface and the user experience.

CN119536583BActive Publication Date: 2026-05-12HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-10-15
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In user interfaces, functional controls are usually displayed in a fixed manner, lacking flexibility and unable to adapt to changes in the scenario.

Method used

By detecting different conditions, functional controls can be flexibly shown and hidden. The display position and shape of controls in the user interface can be dynamically adjusted according to the availability of the control position. It supports conditional display and hiding of various functional controls.

Benefits of technology

It enables flexible display and hiding of functional controls in different scenarios, improves the simplicity and intuitiveness of the user interface, reduces the cognitive burden on users, and provides a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536583B_ABST
    Figure CN119536583B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method for displaying a function control in a user interface, and an electronic device. In the method, a plurality of control positions for displaying a "conditionally displayed function control" are provided in the user interface, and each control position has a different priority. When the electronic device displays the user interface, after detecting a display condition of a certain "conditionally displayed function control", the highest-priority control position is selected from the idle control positions, and the "conditionally displayed function control" is displayed at the control position. In this way, each "conditionally displayed function control" is no longer displayed only at a fixed position, but is displayed flexibly according to the idle condition and priority of the current control position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] 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

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

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

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

[0006] 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 may display either a second functional control or a third functional control.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0027] 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

[0028] Figure 1 and Figure 2 This application provides a photo 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).

[0029] Figure 3 and Figure 4 This application provides a photo preview interface displayed on an electronic device 200 with a large screen aspect ratio, such as a foldable phone or tablet.

[0030] Figure 5 A flowchart illustrating a method for displaying functional controls in a user interface, as provided in an embodiment of this application;

[0031] Figure 6 A flowchart illustrating a method for displaying functional controls in a photo preview interface, as provided in an embodiment of this application;

[0032] Figure 7 A hardware structure diagram of the electronic device provided in the embodiments of this application;

[0033] Figure 8 A software structure diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

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

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

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

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

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

[0039] "Conditional display function control" is merely one term used in an embodiment of this application, and its definition has been clearly described 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 this.

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

[0041] 1. Macro function control

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

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

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

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

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

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

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

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

[0050] (2) Panoramic clarity function

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

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

[0053] 2. Night Scene Enhancement Function Controls

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

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

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

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

[0058] 3. Moon Gazing Function Controls

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

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

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

[0062] 4. Food Function Controls

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

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

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

[0066] 5. Blue Sky Function Controls

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

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

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

[0070] 6. Sunrise and Sunset Function Controls

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

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

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

[0074] 7. Portrait Function Controls

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

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

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

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

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

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

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

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

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

[0084] Figure 1 and Figure 2 An example is shown of 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).

[0085] Figure 1 An example is shown of an electronic device 100 displaying a photo preview interface with a "conditional display function control".

[0086] refer 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.

[0087] like Figure 1 As shown in (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:

[0088] 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. Figure 1 As shown in (a), the electronic device 100 is currently in "photo mode".

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

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

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

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

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

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

[0095] like Figure 1 As shown in (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 first priority position 108 has a higher priority than the second priority position 109.

[0096] refer to Figure 1 (a)- Figure 1 (b) When the user moves the electronic device 100, the viewfinder displayed in the preview window 105 changes. For example... Figure 1As shown in (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 of 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 prompt 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. Figure 1 (b) shows that the background color of the night scene enhancement function control is white, indicating that the night scene enhancement function is currently enabled on the electronic device 100. The display methods of other function controls mentioned later can also indicate to the user whether the corresponding function is enabled through the display method, which will not be mentioned one by one in the following descriptions.

[0097] refer to Figure 1 (b)- Figure 1 (c) When the user brings the electronic device 100 close to the subject, the viewfinder displayed in the preview window 105 of the electronic device 100 changes. For example... Figure 1 As shown in (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 prompt message 112 can automatically disappear after a period of time without user interaction.

[0098] refer 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 can be, for example, 3.5x to 4x zoom.

[0099] refer to Figure 1 (c)- Figure 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 turns off the night scene enhancement function. At this time, the first priority bit 108 is idle. Other shooting conditions remain unchanged, so the electronic device 100 still displays the macro function control 111 in the second priority bit 109.

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

[0101] refer to Figure 1 (e)- Figure 1 (f) When the user brings the electronic device 100 closer to the subject again, the viewfinder displayed in the preview window 105 of the electronic device 100 changes. For example... Figure 1 As shown in (f), when the camera's focal length is "1X", i.e., 1x zoom, and when 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, and displays the macro function control 111 in the idle and highest priority control position, i.e., displays the macro function control 111 in the first priority position 108, and simultaneously activates the macro function. Figure 1 As shown in (f), the electronic device 100 can also display the prompt message 112 again.

[0102] refer to Figure 1 (f)- Figure 1 (g) The user moves the electronic device 100, but without changing the shooting distance or the camera's focal length, and the viewfinder image displayed in the preview window 105 by the electronic device 100 changes. For example... Figure 1 As shown in (g), when the image captured by the camera contains food, the electronic device 100 detects that the display conditions of 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.

[0103] refer to Figure 1 (d)- Figure 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 by the electronic device 100 changes. For example... Figure 1 As shown in (h), when the image captured by the camera contains food, the electronic device 100 detects that the display conditions of the food function control are met, displays the food function control 113 at the idle and highest priority control position, that is, the first priority position 108, and simultaneously activates the food function.

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

[0105] contrast Figure 1 (b) and Figure 1 As can be seen from (f), in different scenarios, the electronic device 100 can display different "conditional display function controls" in the first priority position 108. (Comparison) Figure 1 (c) and Figure 1 As can be seen from (g), in different scenarios, the electronic device 100 can display different "conditional display function controls" in the second priority position 109.

[0106] contrast Figure 1 (c) and Figure 1 As shown in (f), the same "conditional display function control" (such as macro function control 111) can be displayed in different control positions in different scenarios. (Comparison) Figure 1 (g) and Figure 1 As can be seen from (h), the same "conditional display function control" (such as food function control 113) can be displayed in different control positions in different scenarios.

[0107] pass Figure 1 As can be seen from the user interface shown, in the method provided in this application 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.

[0108] Figure 2 An example is shown of an electronic device 100 displaying a photograph preview interface that includes a subset of functional "conditional display function controls".

[0109] refer to Figure 2(a) The electronic device 100 displays a photo preview interface 10. This photo preview interface 10 can be referenced... Figure 1 (g) shows 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.

[0110] refer to Figure 2 (a) and Figure 2 (b) When the electronic device 100 receives a user operation to zoom to the macro focal length of the flower pattern in the zoom control 106, the electronic device 100 responds to the operation 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. Figure 2 As shown in (b), after receiving a 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 inform 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.

[0111] refer to Figure 2 (b)- Figure 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 collapsing 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. Among them, the subject highlighting function option 114A has a border, and this highlighting method can prompt the user that the electronic device 100 has enabled the subject highlighting function in the macro function subset.

[0112] If electronic device 100 receives an action Figure 2 In (a), when a user operates the macro function control 111 in the first priority position 108, since the electronic device 100 has not enabled any functions in the macro function subset at this time, the 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 the macro function control 111 indicates that the macro function has been closed, and its specific display method can be referred to later.

[0113] Electronic device 100 received Figure 2 After the user action shown in (b), refer to Figure 2 (c) and Figure 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 still 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. The text "Subject Prominence" in the macro function control 111 gradually moves to the left and becomes 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.

[0114] refer to Figure 2 (d) and Figure 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, it can also display a prompt message 116 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.

[0115] refer to Figure 2 of (e) Figure 2 (f) and Figure 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".

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

[0117] refer to Figure 2 (g) and Figure 2 (h) When the electronic device 100 receives a user operation on 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 referenced in the previous section. Figure 2 (b)- Figure 2 The introduction of motion effects in (d).

[0118] refer to Figure 2 (h) and Figure 2 (i) When electronic device 100 receives a user operation to disable the macro function option 114C, electronic device 100 responds to the operation by disabling the panoramic clarity function and the macro function, and highlights the disable macro function option 114C. (See reference) Figure 2 (i) and Figure 2 (j) After a period of time, or after the electronic device 100 receives a click operation applied to a blank area (area without 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 "Turn off macro", indicating that the electronic device 100 has turned off the macro function. The animation effect in this process can be referred to in the previous section. Figure 2 (e)- Figure 2 Introduction to motion effects in (g).

[0119] refer to Figure 2 (j) and Figure 2 (k) When the user moves the electronic device 100 away from the subject, the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. For example... Figure 2As shown in (k), 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 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 digital format.

[0120] refer to Figure 2 (k) At this time, the user also adjusts the focus to 1x zoom. If the user brings the electronic device 100 close to the subject, such as Figure 2 As shown in (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 a first value, the electronic device 100 detects that the display conditions for the macro function control are met, and therefore 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 a "close" operation, the icon of the macro function control 111 displayed in the first priority position 108 is a small flower with a slash, its background color is black, and its text is "Close Macro," indicating that the electronic device 100 has currently closed 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, and when the function control is displayed again after being stopped, it maintains the latest recorded state from the current shooting process. The positions of the function controls displayed twice can be the same or different, depending on the availability of each control's position. A shooting process can refer to the process from when the electronic device 100 starts the camera application until it closes the camera application or sends it to the background, or it can refer to the process within a certain period of time after the electronic device 100 starts the camera application, during which the camera application can be opened or closed multiple times.

[0121] refer to Figure 2 (a) When the electronic device is displaying Figure 2 When a user operation is received on the macro function control 111 in (a), the macro function can be turned off in response to the operation, and the macro function control 111 can be displayed in a closed style in the photo preview interface 10, such as... Figure 2 As shown in (j), the difference is that the focal length selected in 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 you can get close to the subject and display. Figure 2 For details regarding (l), please refer to the previous introduction.

[0122] exist Figure 2In the illustrated set of user interfaces, the macro function control 111 is located in 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, refer to... Figure 2 When the macro function control 111 is located in 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.

[0123] Figure 3 and Figure 4 An example is shown of a camera preview interface displayed on an electronic device 200 with a large screen aspect ratio, such as a foldable phone or tablet.

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

[0125] Figure 3 An example is shown of an electronic device 200 displaying a photo preview interface with a "conditional display function control".

[0126] refer to Figure 3 (a) The electronic device 200 displays a photo 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 the electronic device 200 and the camera app in the electronic device 200 are used to achieve the same function; they can be provided by the same developer, but they are not exactly the same. The camera application in the electronic device 200 is adapted to the electronic device 200.

[0127] like Figure 3 As shown in (a), the photo preview interface 20 displays: a mode selector 201, a playback control 202, a photo control 203, a switching control 204, a preview window 205, a zoom control 206, and a quick function area 207. The functions of each control can be found in [reference needed]. Figure 3 The relevant information regarding (a). Figure 3 Compared to (a), the quick access area 207 and zoom control 206 are located on the left side of the display screen, while the mode selector 201, playback control 202, camera control 203, and switching control 204 are located on the right side of the display screen. The camera control 203 is located in the middle right of the camera preview interface 20, and its distance from the top and bottom edges of the display screen is the same.

[0128] like Figure 3As shown in (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 found in [reference needed]. Figures 1-2 The functions of the first priority bit 108 and the second priority bit 209 can be found in [reference]. Figures 1-2 The second priority position 109 in the image is equivalent to rotating the camera preview interface 10 counterclockwise by 90°, resulting in an interface similar to... Figures 3-4 The photo preview interface 20.

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

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

[0131] refer to Figure 3 (a)- Figure 3 (b) When the user moves the electronic device 200, the viewfinder displayed in the preview window 205 changes. For example... Figure 3As shown in (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 required. 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 Figure 3 Related information.

[0132] refer to Figure 3 (b)- Figure 3 (c) When the user brings the electronic device 200 close to the subject, the viewfinder displayed in the preview window 205 of the electronic device 200 changes. For example... Figure 3 As shown in (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 then displays the macro function control 211 in the idle 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 left of the photo capture control 203. In some embodiments, after detecting the display conditions for the macro function, the electronic device 200 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 activated the macro function. The prompt message 212 can automatically disappear after a period of time without user interaction. For details on the display method of macro function control 211 and the changes to zoom control 206, please refer to [reference needed]. Figure 3 Related information.

[0133] refer to Figure 3 (c)- Figure 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 turns off 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, which only requires one control position. Therefore, the second priority position 209 is located in the middle position to the left of the shooting control 203.

[0134] refer to Figure 3 (d)- Figure 3 (e) When the user moves the electronic device 200 away from the subject, the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. For example... Figure 3 As shown in (e), when the distance between the camera and the subject is greater than the first value, the electronic device 200 detects that the display conditions of the macro function control are not met, so it stops displaying the macro function control 211 in the second priority position 209 and turns off the macro function.

[0135] refer to Figure 3 (e)- Figure 3 (f) When the user brings the electronic device 200 closer to the subject again, the viewfinder displayed in the preview window 205 of the electronic device 200 changes. For example... Figure 3 As shown in (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 then displays the macro function control 211 in the idle 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 camera control 203. Figure 3 As shown in (f), the electronic device 200 can also display the prompt message 212 again.

[0136] refer to Figure 3 (f)- Figure 3 (g) The user moves the electronic device 200, but does not change the shooting distance or the camera's focal length, and the viewfinder image displayed in the preview window 205 by the electronic device 200 changes. For example... Figure 3As shown in (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, and displays the food function control 213 in the idle and highest priority control position, that is, displays the food function control 213 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 the first priority position 208 and the second priority position 209 are located in the middle position to the left of the camera control 203.

[0137] refer to Figure 3 (d)- Figure 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 by the electronic device 200 changes. For example... Figure 3 As shown in (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, and displays the food function control 213 in the idle and highest priority control position, that is, displays the food function control 213 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 the first priority position 208 and the second priority position 209 are located in the middle position to the left of the camera control 203.

[0138] contrast Figure 3 (b) and Figure 3 As can be seen from (f), in different scenarios, the electronic device 200 can display different "conditional display function controls" in the first priority position 208. (Comparison) Figure 3 (c) and Figure 3 As can be seen from (g), in different scenarios, the electronic device 200 can display different "conditional display function controls" in the second priority position 209.

[0139] contrast Figure 3 (c) and Figure 3 As shown in (f), the same "conditional display function control" (such as macro function control 211) can be displayed in different control positions in different scenarios. (Comparison) Figure 3 (g) and Figure 3 As can be seen from (h), the same "conditional display function control" (such as food function control 213) can be displayed in different control positions in different scenarios.

[0140] Figure 4An example is shown of an electronic device 200 displaying a photograph preview interface that includes a subset of functional "conditional display function controls".

[0141] Figure 4 For an explanation of this set of user interfaces, please refer to [link / reference]. Figure 2 Related information. Figure 4 and Figure 2 The difference lies in the fact that there is sufficient space between the zoom control 206 and the first priority position 208 and the second priority position 209, and there are enough controls when the macro function control 211 is expanded. Therefore, when the macro function control 211 is expanded, there is no need to collapse the zoom control 206. Furthermore, the macro function control 211 can be expanded both upwards and downwards simultaneously into a macro function subset bar 214. When collapsing the macro function subset bar 214, it can be collapsed both upwards and downwards simultaneously into the macro function control 211.

[0142] Other implementation methods

[0143] for Figures 3-4 The camera preview interface 20 shown on an electronic device 200 with a large screen aspect ratio can, 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, always display the function control whose display condition is met earlier in the first priority position 208, and display the function control whose display condition is met later in the second priority position 209. For example, see reference. Figure 3 (d)- Figure 3 (g) The user moves the electronic device 200, but does not change the shooting distance or the camera's focal length, and the viewfinder image displayed in the preview window 205 by the electronic device 200 changes. For example... Figure 3 As shown in (g), when the image captured by the camera contains food, the electronic device 200 detects that the display conditions of the food function control are currently met, displays the macro function control 211 whose conditions are met earlier in the first priority position 208, and displays the food function control 213 whose conditions are met later in the second priority position 209.

[0144] Figures 1-4 The example shows two control positions. 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.

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

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

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

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

[0149] Not limited to Figure 2 and Figure 4 The macro function subset shown can be expanded or collapsed according to user actions. Other functions can also include subsets of functions, allowing these other function controls to expand or collapse as the user interacts with them. The logic for expanding and collapsing other function controls can be found in the previous section. Whether other functions provided in the photo preview interface include subsets of functions can be set by the camera application developer or left to the user for customization.

[0150] Not limited to Figure 2 and Figure 4 The macro function shown can be turned off, and the state of the macro function control can be maintained during a single shooting session. The functions corresponding to other "conditional display function controls" can also be turned off in response to user operation, and the states of other "conditional display function controls" can also be maintained during a single shooting session. For example, see reference... 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 the off 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 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 redisplays the night scene enhancement function control 110 and keeps the night scene enhancement function in the off state, and the night scene enhancement function control 110 is in the off style.

[0151] Not limited to Figures 1-2 The photo preview interface shown in photo mode can be used in other user interfaces to provide "conditional display function controls" and their positions. The method for displaying function controls described above for the photo preview interface in this application can also be applied to other user interfaces, and the user interfaces for which this application's 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 in this application, and the method provided in 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 each control can differ between different user interfaces.

[0152] Figure 5 A flowchart illustrating a method for displaying functional controls in a user interface, as provided in an embodiment of this application.

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

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

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

[0156] For example, the first user interface may refer to Figure 1 The photo preview interface shown is 10. Figure 3 The shown photo preview interface 20. The first position can, for example, refer to Figure 1 The first priority position 108 shown, and the first function control can, for example, refer to Figure 1 The night scene enhancement function control 110. Or, the first position can, for example, refer to Figure 3 The first priority position 208 shown, and the first function control can, for example, refer to Figure 3 The night scene enhancement function control 210. The first condition can be the display condition of the night scene enhancement function control. For details, please refer to the previous text.

[0157] S102, when it is detected that the second condition is met, display the second function control at the second position in the first user interface. The second condition is the display condition of the second function control.

[0158] Exemplarily, the second position can, for example, refer to Figure 1 The second priority position 109 shown, and the second function control can, for example, refer to Figure 1 The macro function control 111. Or, the second position can, for example, refer to Figure 3 The second priority position 109 shown, and the second function control can, for example, refer to Figure 3 The macro function control 111. The second condition can be the display condition of the macro function control. For details, please refer to the previous text.

[0159] Exemplarily, S101 - S102 can refer to Figure 1 of (b)- Figure 1 of (c), or Figure 3 of (b)- Figure 3 of (c).

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

[0161] S104, when it is detected that the second condition is not currently met, stop displaying the second function control at the second position.

[0162] Exemplarily, S103 - S104 can refer to Figure 1 of (d)- Figure 1 of (e), or Figure 3 of (d)- Figure 3 of (e).

[0163] S105, when it is detected that the second condition is met again, display the second function control at the first position.

[0164] Exemplarily, S105 can refer to Figure 1 of (f), or Figure 3 of (f).

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

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

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

[0168] For example, the second functional control may refer to Figure 1 The food function control 113. S106 can be referenced. Figure 1 (g). As an example, the second functional control may refer to, for instance... Figure 4 Food function control 213. S106 can be referenced. Figure 3 (g). The third condition is, for example, the display condition of the food function control, which can be referred to in the previous text for details.

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

[0170] In some implementations, the electronic device may also perform the following optional steps S107-S109 ( Figure 5 (Not shown in the image):

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

[0172] When an electronic device displays a second function control in a first position, it can display a second function control in a first form, whereby the second function control in the first form indicates whether the second function corresponding to the second function control is activated. For example, refer to... Figure 2 (a) The display mode of the macro function control 111 at this time indicates that the current electronic device has the macro function enabled. For example, refer to Figure 4 (a) The display mode of the macro function control 211 at this time indicates that the current electronic device has enabled the macro function.

[0173] The operation to disable the second function could be applied to, for example, the action of... Figure 2 (a) User operation of the macro function control 111, or its effect on Figure 4The user operation of the macro function control 211 in (a). The second function control in the second form indicates the closing of the second function corresponding to the second function control. The second function control in the second form can be, for example, referred to as the macro function control 111 shown in Figure 2 (j) of, or Figure 4 the macro function control 211 shown in (j) of

[0174] Exemplarily, the first form includes a white background color, and the second form includes a black background color.

[0175] S108, detecting that the second condition is not satisfied, stop displaying the second function control in the second form at the first position.

[0176] Exemplarily, S110 can be referred to as Figure 2 (k) of, or Figure 4 (k) of

[0177] S109, detecting that the second condition is satisfied again, display the second function control in the second form.

[0178] Exemplarily, S110 can be referred to as Figure 2 (l) of, or Figure 4 (l) of

[0179] Through S107 - S109, when the electronic device stops displaying the function control and then displays the function control again, keep the function control in the latest state recorded during the current shooting process, so as to continue the user's needs and preferences and provide a better user experience.

[0180] In some embodiments, if the function corresponding to the second function control includes sub - functions, then Figure 5 the method shown in Figure 5 may further include the following optional steps S110 - S112 (

[0181] not shown in

[0182] S110, receiving a first operation or detecting that the fourth condition is satisfied, change the second function control 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. Figure 2 The second function control can be, for example, the macro function control 111 shown in (a) of Figure 2 , and the first operation can be, for example, the zoom operation input by the user shown in (a) of Figure 4 . Or, the second function control can be, for example, the macro function control 211 shown in (a) of Figure 4 , and the first operation can be, for example, the zoom operation input by the user shown in (a) of

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

[0184] For example, the second functional control in the third form can be referenced. Figure 2 The macro function control 111 shown in (a) is an example of the second function control in the fourth form, which can be referenced for example. Figure 2 (b) shows the macro function control 111. Alternatively, the second function control in the third form can be seen, for example, by referring to Figure 4 The macro function control 211 shown in (a) is an example of the second function control in the fourth form, which can be referenced for example. Figure 4 (b) shows the macro function control 211. The first sub-function could be, for example, Figure 2 (b) or Figure 4 (b) shows the main prominent function.

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

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

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

[0188] For the second step, please refer to the example. Figure 2 The user operation applied to the macro function control 111 in (b) is described. The process of expanding the second function control can be found in [reference needed]. Figure 2 (c) and the preceding introduction. For the subset section of the second function, please refer to... Figure 2 (d) shows the macro function subset bar 114, the first option of which can be seen for example, as shown in the reference bar 114. Figure 2 (d) shows the main highlighted function option 114A. A second option can be found, for example, in reference... Figure 2 (d) shows the panoramic clarity function option 114B.

[0189] Alternatively, the second operation can be referred to as follows: Figure 4 The user operation applied to the macro function control 211 in (b) is described. The process of expanding the second function control can be found in [reference needed]. Figure 4 (c) and the preceding introduction. For the subset section of the second function, please refer to... Figure 4(d) shows the macro function subset bar 214, the first option of which can be seen for example, in reference to Figure 4 (d) shows the main highlighted function option 214A. A second option can be found, for example, in reference... Figure 4 (d) shows the panoramic clarity function option 214B.

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

[0191] For example, the third step can be referred to Figure 2 For user operations related to the Panoramic Clarity function option 114B in (d), or refer to [the relevant documentation] Figure 4 (d) refers to the user operation applied to the panoramic clarity function option 214B. The process of collapsing the subset bar of the second function into a second function control can be found in [reference needed]. Figure 2 (f) or Figure 4 (f) and the previous introduction.

[0192] The second function control in the fifth form indicates the second sub-function of the second function. For example, the second function control in the fifth form can be found in [reference needed]. Figure 2 of (g) or Figure 4 (g) shows the macro function controls. The function controls in the fifth and fourth forms may differ in one or both of the following: different icons or different text.

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

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

[0195] 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... Figures 3-4 The first priority bit is shown as 208; the second position can be referenced. Figures 3-4 The second priority bit 209 is shown.

[0196] When the primary user interface is the photo preview screen, the photo preview screen 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. This situation can be referenced. Figure 2 .

[0197] When the primary user interface is the camera preview interface, the camera preview interface displays camera controls, with the first and second positions located to the left of the camera controls. This situation can be referenced. Figure 4 .

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

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

[0200] Figure 6 A flowchart illustrating a method for displaying functional controls in a photo preview interface, as provided in an embodiment of this application.

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

[0202] S201, displays the photo preview interface.

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

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

[0205] The functional controls here could be, for example, Figures 1-2 The macro function control 111 in the middle, the first position can be Figures 1-2 The first priority bit is 108. Alternatively, the functional control could be... Figures 3-4 The macro function control 211 in the middle, the first position can be Figures 3-4 The first priority bit is 208. The first condition is, for example, the display condition of the macro function control; please refer to the previous text for details.

[0206] For example, the functional controls in the first form can be referenced. Figure 1 The macro function control 111 shown in the figure, Figure 2 (a) shows the macro function control 111. Alternatively, the function control of the first form can be seen, for example, by referring to Figure 3 The macro function control 211 shown in the figure, Figure 4 (a) shows the macro function control 211.

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

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

[0209] For example, the second type of functional controls can be referenced. Figure 2 (b) shows the macro function control 111. Alternatively, the second form of the function control can be seen, for example, by referring to Figure 4 (b) shows the macro function control 111.

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

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

[0212] For example, the operation of the functional control in the second form can be referred to Figure 2 (b) describes the user operation applied to the macro function control 111. The process of expanding the function control can be found in [reference needed]. Figure 2 (c) and the preceding introduction. For the feature subset section, please refer to... Figure 2 (d) shows the macro function subset bar 114, the first option of which can be seen for example, as shown in the reference bar 114. Figure 2 (d) shows the main highlighted function option 114A. A second option can be found, for example, in reference... Figure 2 (d) shows the panoramic clarity function option 114B.

[0213] For example, the operation of the functional control in the second form can be referred to Figure 4 (b) describes the user operation applied to the macro function control 211. The process of expanding the function control can be found in [reference needed]. Figure 4 (c) and the preceding introduction. For the feature subset section, please refer to... Figure 4 (d) shows the macro function subset bar 214, the first option of which can be seen for example, in reference to Figure 4 (d) shows the main highlighted function option 214A. A second option can be found, for example, in reference... Figure 4 (d) shows the panoramic clarity function option 214B.

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

[0215] For example, the operation applied to the second option can be found in the following example. Figure 2 (d) refers to the user operation of the panoramic clarity function option 114B, or refer to Figure 4 (d) refers to the user operation applied to the panoramic clarity function option 214B. The process of collapsing the subset bar of the second function into a second function control can be found in [reference needed]. Figure 2 (f) or Figure 4 (f) and the previous introduction.

[0216] The third-form function control indicates the second sub-function. For example, the third-form function control can be found in [reference needed]. Figure 2 of (g) or Figure 4 (g) shows the macro function controls. The function controls in the third and fourth forms may differ in one or both of the following: different icons, different text.

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

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

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

[0220] refer to Figure 7 , Figure 7 This is a hardware structure diagram of an electronic device provided in an embodiment of this application. The electronic device may be either the aforementioned electronic device 100 or electronic device 200.

[0221] like Figure 7 As shown, 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.

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

[0223] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

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

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

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

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

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

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

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

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

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

[0233] 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).

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

[0235] 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-OLEDs, 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0252] Figure 8 A software structure diagram of the electronic device provided in the embodiments of this application.

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

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

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

[0256] The program framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The program framework layer includes some predefined functions.

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

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

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

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

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

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

[0263] 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 download completion 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0284] 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)).

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

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

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

[0288] 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 of displaying a function control in a user interface, characterized by, Applied to electronic devices, the method includes: The first user interface is displayed, which is a camera preview interface; If a first condition is detected, a first functional control is displayed at a first position in the first user interface, where the first condition is the display condition for the first functional control. After the first functional control is displayed, if the second condition is detected, the second functional control is displayed at the second position in the first user interface. The second condition is the display condition for the second functional control. The first condition was not met. The first function control is stopped from being displayed 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, and the first function control is not displayed. After the second functional control is displayed at the first position, if a third condition is detected, the third functional control is displayed at the second position. The third condition is the display condition for the third functional control.

2. The method according to claim 1, 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.

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

4. The method according to claim 1, 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.

5. The method according to claim 4, 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.

6. The method according to claim 5, 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.

7. The method according to any one of claims 1-6, 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.

8. The method according to any one of claims 1-6, 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.

9. The method according to claim 1, 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.

10. The method according to claim 1, 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.

11. The method according to any one of claims 1-6, 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.

12. The method according to any one of claims 1-6, 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.

13. 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.

14. 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-13.

15. 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-13.

16. 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-13.

17. 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-13.