Method for displaying function control in user interface and electronic equipment

By detecting display conditions in the user interface and flexibly adjusting the display position of the functional controls, the problem of displaying fixed positions of functional controls in the prior art is solved, and the dynamicity and user experience of the interface are improved.

CN119536583AActive Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411437982.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-28
Estimated Expiration
2044-10-15

AI Technical Summary

Technical Problem

Functional controls are displayed in fixed positions in the user interface of existing electronic devices, which lacks flexibility and cannot display and adjust according to the idle status of the current control position.

Method used

By detecting that different display conditions are met, functional controls are flexibly displayed at different locations in the user interface, allowing the same control to be displayed in different locations in the user interface in different scenarios, and adjusted according to the idle situation of the control position.

Benefits of technology

It realizes flexible display of functional controls, improves the dynamicity and user experience of the user interface, and avoids the interface stiffness caused by the fixed position of the control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536583A_ABST
    Figure CN119536583A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for displaying a function control in a user interface and electronic equipment. According to the method, a plurality of control positions used for displaying conditional display function controls are arranged in a user interface, and the control positions have different priorities. When the electronic equipment displays the user interface, after the display condition of a certain conditional display function control is detected, the control position with the highest priority is selected from the idle control positions, and the conditional display function control is displayed at the control position. Therefore, each conditional display function control is not only displayed at a fixed position any more, but is flexibly displayed according to the idle condition and the priority of the current control position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method and electronic device for displaying function controls in a user interface. Background Art

[0002] In the user interface displayed by electronic devices such as mobile phones and tablet computers, some functional controls can be displayed when display conditions are met, and disappear when the display conditions are not met. These functional controls are always displayed in fixed positions in the user interface, which is not flexible enough. Summary of the invention

[0003] The embodiments of the present application provide a method and an electronic device for displaying functional controls in a user interface, which can flexibly display controls according to the idle situation of the current control position.

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

[0005] By implementing the method of the first aspect, the electronic device can display different controls at the same position of the user interface in different scenarios, such as the first position can display the first function control or the second function control. Furthermore, the electronic device can display the same control at different positions of the user interface in different scenarios, such as the second function control can be displayed at the first position or at the second position. This means that the function control is no longer limited to being displayed at a fixed position, but can be flexibly displayed according to the idle situation of the current control position.

[0006] In combination with the first aspect, in some embodiments, the method may further include: when a third condition is detected to be satisfied, displaying a third function control at the second position, where the third condition is a display condition of the third function control. In this way, the electronic device can display different controls at the same position of the user interface in different scenarios, such as the second position can display the second function control or the third function control.

[0007] In combination with the first aspect, in some embodiments, displaying the second function control in the first position includes: displaying the second function control in a first form, the second function control in the first form indicating turning on the second function corresponding to the second function control; accordingly, after displaying the second function control in the first position, the method may further include: in response to an operation to turn off the second function, turning off 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 displaying the second function control in the second form in the first position; detecting that the second condition is met again, displaying the second function control in the second form.

[0008] Through the previous implementation, when the electronic device displays the function control again after stopping displaying the function control, the function control is kept in the latest state of the latest record during the shooting process, which can continue the user's needs and preferences and provide the user with a better user experience.

[0009] In combination 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 combination 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: upon receiving the first operation or detecting that a fourth condition is satisfied, changing the second function control from the third form to a fourth form, the third form of the second function control indicating the second function, and the fourth form of the second function control indicating the first sub-function of the second function.

[0011] The first operation may be a zoom operation such as increasing the zoom ratio, and the fourth condition may be an automatic zoom condition. Through the above embodiment, the electronic device may activate a sub-function of the second function and prompt the user of the currently activated function through the form of the second function control.

[0012] In combination with the previous embodiment, in some embodiments, after the second function control is changed from the third form to the fourth form, the method may further include: receiving a second operation acting on the second function control, expanding the second function 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 acting on the second option, collapsing the subset bar of the second function into a second function control of the fifth form, and starting the second sub-function.

[0013] Through the above implementation, the electronic device can switch the required sub-function in the subset column of a certain function.

[0014] In combination with the previous embodiment, in some embodiments, the second function is a macro function, the first sub-function based on the second function is a subject highlighting function, and the second sub-function based on the second function is a panoramic clarity function.

[0015] In combination 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 in the center of the first user interface.

[0016] In combination with the first aspect, in some embodiments, when function controls are displayed in both the first position and the second position, the first position and the second position are located as a whole in the vertical center of the first user interface; when function controls are displayed in the first position and no function controls are displayed in the second position, the first position is located in the vertical center of the first user interface; when function controls are displayed in the second position and no function controls are displayed in the first position, the second position is located in the vertical center of the first user interface.

[0017] The above two implementations can ensure that the functional controls displayed at the first position and the second position are displayed in the center of the user interface as a whole, which can present a symmetrical aesthetic feeling to the user.

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

[0019] In combination with the previous embodiment, in some embodiments, the photo preview interface displays a zoom control, the first position is located on the right side of the zoom control, and the second position is located on the left side of the zoom control. Alternatively, the photo preview interface displays a photo control, and the first position and the second position are located on the left side of the photo control.

[0020] In combination with the first aspect, in some embodiments, the first function control and the second function control are each 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 function control and the second function control are different.

[0021] In combination with the first aspect, in some embodiments, the first function 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 the second value, or the intensity of the external ambient light after the electronic device activates the camera is less than or equal to a 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.

[0022] In a second aspect, a method for displaying a function control in a photo preview interface is provided, characterized in that it is applied to an electronic device, and the method includes: displaying the photo preview interface; when it is detected that a first condition is met, displaying a first form of function control at a first position of the photo preview interface, the first condition being a display condition of the function control; when it is detected that a focal length change satisfies a second condition, displaying a second form of function control at a first position of the photo preview interface, the second form of function control being used to indicate the start of a first sub-function corresponding to the function control; in response to an operation acting on the second form of function control, expanding the function control 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; receiving an operation acting on the second option; folding the function subset bar into a third form of function control, and starting the second sub-function.

[0023] By implementing the method of the second aspect, the electronic device can change the display form of the function controls in the user interface according to the actual scenario, and can also enable sub-functions of some functions according to the actual situation.

[0024] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement a method as in the first aspect, or any one of the embodiments of the first aspect, or the second aspect, or any one of the embodiments of the second aspect.

[0025] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect, or any one of the embodiments of the first aspect, or the second aspect, or any one of the embodiments of the second aspect is implemented.

[0026] In a fifth aspect, a computer program product is provided, which includes a computer program. When the computer program is executed by a processor, it implements the method of the first aspect, or any one of the embodiments of the first aspect, or the second aspect, or any one of the embodiments of the second aspect.

[0027] In a sixth aspect, a chip system is provided, the chip system comprising 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 run the computer instructions to implement a method as in the first aspect, or any one of the embodiments of the first aspect, or the second aspect, or any one of the embodiments of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 and Figure 2 A photo preview interface provided in an embodiment of the present application and displayed on an electronic device 100 with a relatively small screen aspect ratio, such as an ordinary mobile phone (such as a non-folding screen mobile phone);

[0029] Figure 3 and Figure 4 A photo preview interface provided in an embodiment of the present application and displayed on an electronic device 200 with a large screen aspect ratio, such as a foldable screen mobile phone and a tablet computer;

[0030] Figure 5 A flowchart of a method for displaying a function control in a user interface provided by an embodiment of the present application;

[0031] Figure 6 A flowchart of a method for displaying function controls in a photo preview interface provided by an embodiment of the present application;

[0032] Figure 7 A hardware structure diagram of an electronic device provided in an embodiment of the present application;

[0033] Figure 8 A software structure diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0035] User interface, also known as user interface (UI), is a medium interface for interaction and information exchange between applications or operating systems and users. User interface may include visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of electronic devices.

[0036] Functional controls refer to controls displayed in the user interface that can interact with the user, which can receive user operations (such as click operations, long press operations, etc.), and the electronic device can respond to the user operation to perform the corresponding function. The implementation form of functional controls may include but is not limited to a combination of one or more of the following: text, icon, button, menu, tab, text box, dialog box, widget, etc.

[0037] The following embodiments of the present application mainly 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, that is, the function control disappears. Therefore, the state of the "conditional display function control" (i.e. display or hide) can change dynamically with user operations, data changes in the electronic device, or other events. "Conditional display function controls" change states through conditions, which can provide users with a more concise, intuitive and efficient interface experience, reducing the cognitive burden of users.

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

[0039] "Conditional display function control" is only a term used in the embodiment of the present application, and its definition has been clearly introduced in the previous text. In other embodiments, "conditional display function control" may also be called "dynamic display function control" or other names, which is not limited in the present application.

[0040] The following takes the photo preview interface provided by the camera application in the electronic device as an example to introduce several "conditional display function controls" that may appear in the interface. The "conditional display function controls" in the photo preview interface can appear dynamically according to the framing content.

[0041] 1. Macro function controls

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

[0043] The macro function is also called a super macro function, and may also be called an extended depth of field (EDOF) macro.

[0044] The macro function is a shooting mode designed for shooting tiny objects. It supports electronic devices to shoot tiny objects at close range, such as dewdrops, leaf patterns, insects, jewelry, handicrafts, etc., to capture small details and textures, making the tiny objects in the photo clearly visible. In the macro function, the electronic device can automatically identify the subject and adjust the aperture, shutter speed, exposure value, etc. according to the subject. It can also automatically focus and optimize the captured image through artificial intelligence (AI) algorithms.

[0045] During shooting, when the focal length of the camera is "1X", i.e., 1x zoom, when the distance between the camera and the subject is less than or equal to a first value, the electronic device will automatically turn on the macro function and display the macro function control; when the distance between the camera and the subject is greater than the first value, the electronic device will turn off the macro function and stop displaying the macro function control. That is, the display condition of the macro function control is that the distance between the camera and the subject during shooting is less than or equal to the first value. The first value can be set as needed, for example, it can be 2.5cm, which is not limited here. The electronic device can identify the shooting distance through the data collected by the distance sensor, or it can identify the shooting distance by analyzing the image collected by the camera.

[0046] Some functions can be superimposed on the macro function to obtain other functions based on the macro function. The set of other functions based on the macro function can be called a macro function subset. The macro function subset may include: subject highlighting function and panoramic clarity function. The following is an introduction.

[0047] (1) Main body highlighting function

[0048] After the electronic device turns on the macro function, if it receives a zoom operation (such as zooming from "1X" to "3.5X") or detects that the automatic zoom condition is met, the subject highlighting function will be activated; when the electronic device turns off the macro function, the subject highlighting function is also turned off. The zoom operation here can be an operation to increase the focal length or an operation to reduce the focal length. The automatic zoom condition can be, for example, that the subject is far away from the camera or other conditions, which are not limited here. In addition, after the electronic device activates the functions in the macro function subset, the user can input an operation to the electronic device to turn on the macro function subset, and select the subject highlighting function in the macro function subset, which can also trigger the electronic device to activate the subject highlighting function.

[0049] The subject highlighting function enables electronic devices to identify 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 Clear Function

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

[0052] The panoramic clarity function supports the electronic device to optimize the entire content of the image in the photo preview interface after the macro function is turned on to present a clear panoramic content. In some embodiments, if the electronic device receives a user operation on the photo control, the electronic device can take multiple pictures and merge the multiple pictures into a photo with a clear foreground and background.

[0053] 2. Night scene enhancement function controls

[0054] The Night View Enhancement function control is the switch for the Night View Enhancement function.

[0055] The night scene enhancement function is a shooting mode designed for low-light environments. The night scene enhancement function supports electronic devices to automatically adjust the camera's exposure time and sensitivity and other parameters (such as extending the exposure time) to capture more light and details. It also supports electronic devices to use multi-frame synthesis technology to reduce noise, improve brightness and clarity by taking multiple photos and synthesizing them. It also supports electronic devices to optimize the color and contrast of photos through algorithms to make the colors of night scene photos more vivid and the contrast more distinct. The night scene enhancement function supports 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 intensity of the ambient light is less than or equal to the third value, the electronic device will automatically turn on 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 intensity of the ambient light is greater than the third value, the electronic device will turn off the night scene enhancement function and stop displaying the night scene enhancement function control. That is, the display condition of the night scene enhancement function control is 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 value and the third value 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 collected by the ambient light sensor.

[0057] After turning on the night scene enhancement function control, the electronic device can also determine the exposure time according to the current photo scene, such as 1S, 2S, 3S, etc. The darker the photo scene, the longer the exposure time. The icon of the night scene enhancement function control can display the currently used exposure time.

[0058] 3. Moon-watching function controls

[0059] The Moon-Watching function control is the switch of the Moon-Watching function.

[0060] The Moon-Looking function is a shooting mode designed specifically for photographing the moon. It supports electronic devices to optimize camera settings, such as sensitivity, exposure time, focus mode, zoom ratio, etc. It can also support electronic devices to optimize photos through algorithms, thereby taking clear and bright photos of the moon.

[0061] During shooting, when the electronic device recognizes that the image captured by the camera contains the moon, the electronic device will turn on the moon-gazing function and display the moon-gazing function control; when the electronic device recognizes that the image captured by the camera does not contain the moon, the electronic device will turn off the moon-gazing function and stop displaying the moon-gazing function control. That is, the display condition of the moon-gazing function control is that the electronic device recognizes that the image captured by the camera contains the moon.

[0062] 4. Food function controls

[0063] The gourmet function control is the switch of the gourmet function.

[0064] The food function is a shooting mode designed specifically for food photography. It supports electronic devices to increase the glossiness of food or simulate different lighting environments by adjusting color saturation and contrast, adding filters, etc. It can also support electronic devices to optimize photos through algorithms to take colorful food photos, making the food look fresher and more delicious.

[0065] During shooting, when the electronic device recognizes that the image captured by the camera contains food, the electronic device will turn on the gourmet function and display the gourmet function controls; when the electronic device recognizes that the image captured by the camera does not contain food, the electronic device will turn off the gourmet function and stop displaying the gourmet function controls. That is, the display condition of the gourmet function controls is that the electronic device recognizes that the image captured by the camera contains food.

[0066] 5. Blue Sky Function Controls

[0067] The Blue Sky function control is the switch of the Blue Sky function.

[0068] The Blue Sky function is a shooting mode designed specifically for food photography. It supports electronic devices to adjust the camera's sensitivity, shutter speed, focus method, white balance and other parameters (such as lowering the sensitivity and increasing the shutter speed) to take clear, bright and layered photos of the blue sky and white clouds.

[0069] During shooting, when the electronic device recognizes that the image captured by the camera contains the sky, the electronic device will turn on the blue sky function and display the blue sky function control; when the electronic device recognizes that the image captured by the camera does not contain the sky, the electronic device will turn off the blue sky function and stop displaying the blue sky function control. That is, the display condition of the blue sky function control is that the electronic device recognizes that the image captured by the camera contains the sky.

[0070] 6. Sunrise and sunset function controls

[0071] The sunrise and sunset function control is the switch of the sunrise and sunset function.

[0072] The sunrise and sunset function is a shooting mode designed specifically for capturing sunrise and sunset. It supports electronic devices to take clear sunrise or sunset photos by adjusting the camera's sensitivity, shutter speed, focus mode, white balance and other parameters (such as increasing sensitivity and reducing shutter speed).

[0073] During shooting, when the electronic device recognizes that the image captured by the camera contains the sun, the electronic device will turn on the sunrise and sunset function and display the sunrise and sunset function controls; when the electronic device recognizes that the image captured by the camera does not contain the sun, the electronic device will turn off the sunrise and sunset function and stop displaying the sunrise and sunset function controls. That is, the display condition of the sunrise and sunset function controls is that the electronic device recognizes that the image captured by the camera contains the sun.

[0074] 7. Portrait function controls

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

[0076] The portrait function is a shooting mode designed specifically for taking portraits. It supports electronic devices to process the skin through an automatic beauty algorithm and to achieve a background blur effect through a background blur algorithm, thereby making the character's skin color more natural, making the character's main body more prominent, and reducing background interference.

[0077] During shooting, when the electronic device recognizes that the image captured by the camera contains a person, the electronic device will turn on the portrait function and display the portrait function control; when the electronic device recognizes that the image captured by the camera does not contain a person, the electronic device will turn off the portrait function and stop displaying the portrait function control. That is, the display condition of the portrait function control is that the electronic device recognizes that the image captured by the camera contains a person.

[0078] The names of the above-mentioned "conditional display function controls" are only examples, and their functions have been clearly described in the previous text. In other embodiments, the names of the above-mentioned "conditional display function controls" can also be changed to other names.

[0079] The "conditional display function control" introduced above is different from the shooting mode provided in the mode selector in the photo preview interface, and specifically, the shooting parameters and image processing algorithms are different. For example, the mode selector in the photo preview interface can provide a night scene mode, which is different from the night scene enhancement function; the mode selector in the photo preview interface can provide a portrait mode, which is different from the portrait function provided by the portrait function control; the mode selector in the photo preview interface can provide a moon mode, which is different from the moon gazing function provided by the moon gazing function control.

[0080] The previous article introduced several "conditional display function controls" using the photo preview interface. In other user interfaces, there may be other "conditional display function controls", which are not introduced one by one here.

[0081] The "conditional display function control" mentioned in the embodiment of the present application can be implemented as a combination of icons and text, or as only icons, or as only icons, which is not limited here. The icon of the "conditional display function control" can be circular, directional or other shapes, which is not limited in the present application.

[0082] An embodiment of the present application provides a method for flexibly displaying a "conditional display function control" in a user interface. In this method, a plurality of control positions for displaying a "conditional display 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 the display condition of a "conditional display function control", the control position with the highest priority is selected from the idle control positions, and the "conditional display function control" is displayed at the control position. After a control position with a higher priority becomes idle, the "conditional function control" that has been displayed remains displayed at the current control position, without having to be moved to other control positions with higher priorities. In this way, each "conditional display function control" is no longer limited to being displayed at a fixed position, but is flexibly displayed according to the idle situation and priority of the current control position.

[0083] The following takes the photo preview interface provided by the camera application in the electronic device as an example to introduce the method for displaying function controls in the user interface provided by the embodiment of the present application.

[0084] Figure 1 and Figure 2 The example shows a photo preview interface displayed on an electronic device 100 with a relatively small screen aspect ratio, such as an ordinary mobile phone (such as a non-folding screen mobile phone).

[0085] Figure 1 The example shows that the electronic device 100 displays a photo preview interface of 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. The 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 operation or a touch operation) on the icon of the camera application on the desktop, or it can also be displayed after the electronic device 100 starts the camera application in other ways. When the electronic device 100 displays the photo preview interface 10, the camera is started at the same time, and the camera can be a rear camera, a front camera or other cameras.

[0087] like Figure 1 As shown in (a), the photo preview interface 10 displays: a mode selector 101, a review control 102, a photo control 103, a switch control 104, a preview window 105, a zoom control 106, and a shortcut function area 107. Among them:

[0088] The mode selector 101 may include multiple camera mode options, such as "night scene", "portrait", "photo", "video recording", etc. Different camera modes can provide users with camera services with different effects. Users can select any of the multiple camera modes to take photos according to different needs. For example, "photo recording" may be the default camera mode, which is used to take photos. "Video recording" is used to record videos. The "night scene" mode is suitable for photo scenes with dim light, such as at night. The "portrait" mode is suitable for photo scenes where the subject is a person. The electronic device 100 can detect the user operation of switching modes, such as swiping left / right in the mode selector 101, and change the currently used camera mode according to the operation. By default, the electronic device 100 first uses the "photo recording" mode. Figure 1 As shown in (a), the electronic device 100 is currently in the "photographing" mode.

[0089] The review control 102 may be used to display thumbnails of recently taken photos or videos. When a user operation acting on the review control 102 is detected, the electronic device 100 may display an image corresponding to the thumbnail.

[0090] The photo control 103 is used to trigger photo taking. The electronic device 100 can detect whether there is a user operation acting on the photo control 103, such as a click operation. When a user operation acting on the photo control 103 is detected, the electronic device 100 can generate a photo taking instruction. The electronic device 100 can obtain the image reported by the currently activated camera according to the photo taking instruction, and then save it as a static photo or a dynamic photo. The photo control 103 is located in the lower middle position of the photo preview interface 10, and its distance from the left edge and the right edge of the display screen is the same.

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

[0092] The preview window 105 is used to display in real time the image captured by the camera activated by the electronic device 100. In different shooting modes, the electronic device 100 can process the image reported by the camera to improve the display effect of the image. For example, in the "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 in real time the image processed by the image processing algorithm corresponding to the different shooting modes, so that the user can perceive the shooting effect corresponding to the different shooting modes in real time. The image in the preview window 105 can also be called a preview image.

[0093] A plurality of optional focal lengths are displayed in the zoom control 106. The zoom control 106 can be implemented in a ring shape or in other styles, which are not limited here. The electronic device 100 can receive a sliding operation on the zoom control 106 or a click operation to select a focal length, and adjust the focal length in response to the operation. In the zoom control 106, "W" represents wide-angle capability, and the remaining digits represent the zoom capability of the digit multiple. The focal length currently selected in the zoom control 106 is 1x zoom.

[0094] The quick function area 107 may include a flash function option, a dynamic photo function option, a high-dynamic range (HDR) image function option, a setting function option, and the like.

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

[0096] refer to Figure 1 (a)- Figure 1 In (b), the user moves the electronic device 100, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. Figure 1As shown in (b), when the brightness of the image collected by the camera is less than or equal to the second value, or when the intensity of the ambient light 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 currently met, and displays the night scene enhancement function control 110 at the idle and highest priority control position, that is, displays the night scene enhancement function control 110 at the first priority position 108, and turns on the night scene enhancement function at the same time. At this time, the display mode of the night scene enhancement function control 110 can also prompt the user whether the night scene enhancement function is turned on in the current electronic device 100. For example, the background color of the night scene enhancement function control 110 is white, which can indicate that the night scene enhancement function is turned on, and the background color of the night scene enhancement function control 110 is black, which can indicate that the night scene enhancement function is turned off. Figure 1 The background color of the night scene enhancement function control shown in (b) is white, indicating that the night scene enhancement function has been turned on in the current electronic device 100. The display mode of other function controls mentioned later can also prompt the user whether the corresponding function is turned on through the display mode, and the subsequent introduction will not point out one by one.

[0097] refer to Figure 1 (b)- Figure 1 In (c), the user moves the electronic device 100 closer to the subject, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. Figure 1 As shown in (c), when the focal length of the camera is "1X", that is, 1x zoom, when the distance between the camera and the subject is less than or equal to the first value, the electronic device 100 detects that the display condition of the macro function control is currently met, and displays the macro function control 111 at the idle and highest priority control position, that is, displays the macro function control 111 at the second priority position 109, and turns on the macro function at the same time. The background color of the macro function control 111 is white, indicating that the current electronic device 100 has turned on 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 the electronic device 100 detects the display condition of the macro function, it can also display a prompt message 112 in the photo preview interface 10, and the prompt message 112 is used to prompt the user that the current electronic device 100 has turned on the macro function. The prompt message 112 can disappear automatically after being displayed for a period of time without user interaction.

[0098] refer to Figure 1 (c), when the electronic device 100 detects that the display condition of the macro function control is currently met, and the currently activated camera supports other 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 zoom 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 of the night scene enhancement function control are not met, so 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 position 108 is idle. At this time, other shooting conditions remain unchanged, so the electronic device 100 still displays the macro function control 111 in the second priority position 109.

[0100] refer to Figure 1 (d)- Figure 1 In (e), the user moves the electronic device 100 away from the subject, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. 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 currently met, and therefore 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 In step (f), the user moves the electronic device 100 closer to the subject again, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. Figure 1 As shown in (f), when the focal length of the camera is "1X", i.e., 1x zoom, and when the distance between the camera and the subject is less than or equal to the first value, the electronic device 100 detects that the display condition of the macro function control is currently met, and displays the macro function control 111 at the idle and highest priority control position, i.e., displays the macro function control 111 at the first priority position 108, and turns on the macro function at the same time. Figure 1 As shown in (f), the electronic device 100 can also display the prompt information 112 again.

[0102] refer to Figure 1 (f)- Figure 1 In (g), the user moves the electronic device 100, but does not change the shooting distance and the focal length of the camera, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. 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 currently met, and displays the food function control 113 at the idle and highest priority control position, that is, displays the food function control 113 at the second priority position 109, and turns on the food function at the same time.

[0103] refer to Figure 1 (d)- Figure 1In (h), the user moves the electronic device 100, but does not change the shooting distance and the focal length of the camera, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. 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 currently met, and displays the food function control 113 at the idle and highest priority control position, that is, at the first priority position 108, and turns on the food function at the same time.

[0104] In some implementations, when other functions such as the night view enhancement function and the food function are turned on, the electronic device 100 may also display prompt information, 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. 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 can be seen from (f), the same "conditional display function control" (such as macro function control 111) can be displayed in different control positions in different scenarios. Figure 1 (g) and Figure 1 As can be seen from (h), the same "conditional display function control" (such as the food function control 113) can be displayed in different control positions in different scenarios.

[0107] pass Figure 1 It can be seen from the user interface shown that in the method provided in the embodiment of the present application, 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 condition of the "conditional display function control" is met, as long as there is an idle control position, the "conditional display function control" can be displayed and the corresponding function can be started, without the problem that two or more "conditional display function controls" occupy the same position and cause some "conditional display function controls" to be unable to be displayed.

[0108] Figure 2 The example shows that the electronic device 100 displays a photo preview interface of a “conditional display function control” including a function subset.

[0109] refer to Figure 2(a), the electronic device 100 displays a photo preview interface 10. The photo preview interface 10 can refer to Figure 1 (g), which displays a preview window 105, a macro function control 111 at a first priority position 108, and a gourmet function control 113 at a 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 to activate 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 is currently activated. Figure 2 As shown in (b), after the electronic device 100 receives the zoom operation, it can also highlight the macro focal length of the flower pattern in the zoom control 106, for example, by adding a border outside the macro focal length of the flower pattern. 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, and the prompt message 115 is used to prompt the user that the current 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 acting on the macro function control 111 in the first priority position 108, the electronic device 100 responds to the operation, gradually stops displaying the food function control 113, gradually collapses the zoom control 106 to the left, and gradually expands the macro function control 111 to the left to form a macro function subset bar 114. The macro function subset bar 114 includes the following options: a subject highlighting function option 114A, a panoramic clarity function option 114B, and a macro function off option 114C. Among them, the subject highlighting function option 114A has a border outside, and this highlighting method can prompt the user that the current electronic device 100 has turned on the subject highlighting function in the macro function subset.

[0112] If the electronic device 100 receives Figure 2 In (a), the user operates the macro function control 111 in the first priority position 108. Since the electronic device 100 does not turn on the functions in the macro function subset at this time, the electronic device 100 will respond to the operation and will not expand the macro function subset bar 114, but turn off the macro function. At this time, the display style of the macro function control 111 indicates that the macro function has been turned off. The specific display method can be referred to below.

[0113] The electronic device 100 receives Figure 2 After the user operation 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 stationary and gradually becomes shorter and retracts to the left until it disappears. During this process, the texts of various focal lengths displayed in the zoom control 106 gradually become smaller and move to the left; the icon in the macro function control 111 gradually moves to the left and gradually disappears, and the text "Subject Highlight" of the macro function control 111 gradually moves to the left and becomes the subject highlight function option 114A. During this process, the electronic device 100 gradually displays the panoramic 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 acting on the panoramic clarity function option 114B, the electronic device 100 responds to the operation, activates the panoramic clarity function in 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, and the prompt message 116 is used to prompt the user that the current 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 (e), Figure 2 (f) and Figure 2 (g), after the electronic device 100 receives a user operation on the panoramic clarity function option 114B, after a period of time or after the electronic device 100 receives a click operation on a blank space (where there is no control), 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 become the macro function control 111 displayed in the first priority position 108, and at this time, the icon of the macro function control 111 is in the style of two small flowers, and its text is "Panoramic Clear".

[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 and gradually becomes longer and expands to the right until it is fully displayed. During this process, the texts of various focal lengths displayed in the zoom control 106 gradually become larger and move to the right; the macro function subset bar 114 gradually moves to the right and gradually disappears, and the panoramic clear function option 114B gradually moves to the right and becomes the text "Panoramic Clear" 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 collapses the zoom control 106 to the left, and gradually expands the macro function control 111 to the left to form the macro function subset bar 114. The dynamic effects in this process can be referred to in the previous description of the Figure 2 (b)- Figure 2 (d) Introduction of the animation.

[0118] refer to Figure 2 (h) and Figure 2 (i) When the electronic device 100 receives a user operation for turning off the macro function option 114C, the electronic device 100 responds to the operation by turning off the panoramic clear function and the macro function, and highlights the turning off the macro function option 114C. Figure 2 (i) and Figure 2 (j), after a period of time or after the electronic device 100 receives a click operation on a blank space (where there is no control), 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 "Close Macro", indicating that the current electronic device 100 has turned off the macro function. The animation effect in this process can be referred to in the previous text. Figure 2 (e)- Figure 2 (g) Introduction of the animation effect.

[0119] refer to Figure 2 (j) and Figure 2 In (k), the user moves the electronic device 100 away from the subject, and the viewfinder image displayed in the preview window 105 of the electronic device 100 changes. Figure 2As shown in (k), when the distance between the camera and the subject is greater than the first value, the electronic device 100 detects that the display condition of the macro function control is not met at present, so the macro function control 111 is stopped from being displayed in the first priority position 108, and the macro function is turned off at the same time. At this time, the first priority position 108 is idle. In addition, since the electronic device 100 has turned off the macro function, the zoom control 106 displayed by the electronic device 100 no longer displays the recommended macro focal length in the flower style, but displays the focal length in the digital style.

[0120] refer to Figure 2 (k), at this time the user also adjusts the focal length to 1 times zoom, if the user moves the electronic device 100 close to the subject, such as Figure 2 As shown in (l), when the focal length of the camera is "1X", i.e., 1x zoom, and when the distance between the camera and the subject is less than or equal to the first value, the electronic device 100 detects that the display condition of the macro function control is currently 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 closing 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 current electronic device 100 has closed the macro function. Equivalently, the electronic device 100 can record the status (including the on state and the off state) of each function control adjusted by the user during a shooting process, and when the function control is displayed again after the function control is stopped, the function control is kept in the latest state of the latest record during this shooting process. The positions of the function controls displayed twice can be the same or different, depending on the idleness of the positions of each control. A shooting process may refer to the process from when the electronic device 100 starts the camera application to when the camera application is closed or returned to the background, or it may refer to the process within a period of time after the electronic device 100 starts the camera application, during which the camera application may be opened or closed multiple times.

[0121] refer to Figure 2 (a), when the electronic device displays Figure 2 When receiving a user operation 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 is displayed as a closed style in the photo preview interface 10, such as Figure 2 The difference is that the focal length selected in the zoom control 106 is 1x zoom. Afterwards, the electronic device moves away from the subject and then displays Figure 2 Then you can move closer to the subject and display Figure 2 (l), please refer to the previous introduction for details.

[0122] exist Figure 2In the illustrated set of user interfaces, the macro function control 111 is located at the first priority position 108 to the right of the zoom control 106, so 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. Figure 2 (h), when the macro function control 111 is located at the second priority position 109 on the left side of the zoom control 106, the zoom control 106 is folded to the right and expanded to the left, the macro function control 111 is expanded to the right, and the macro function subset bar 114 is folded to the left.

[0123] Figure 3 and Figure 4 The example shows a photo preview interface displayed on an electronic device 200 with a relatively large screen aspect ratio, such as a foldable screen mobile phone or a tablet computer.

[0124] For the electronic device 200 with a larger screen aspect ratio, its width is wider, and compared with the electronic device 100 with a smaller screen aspect ratio, the layout of each element in the user interface displayed thereon is slightly different.

[0125] Figure 3 The electronic device 200 exemplarily shows a photo preview interface showing 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. The camera application can be a system application or a third-party application. The camera application in the electronic device 200 and the camera application in the electronic device 200 are used to implement the same function, and both can be provided by the same developer, but the two are not exactly the same. The camera application in the electronic device 200 is adapted to the electronic device 200, and 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 review control 202, a photo control 203, a switch control 204, a preview window 205, a zoom control 206, and a shortcut function area 207. The functions of the above controls can be referred to Figure 3 (a) of the relevant introduction. and Figure 3 Compared with (a), the quick function area 207 and the zoom control 206 are located in the left area of ​​the display screen, and the mode selector 201, the review control 202, the photo control 203, and the switch control 204 are located in the right area of ​​the display screen. The photo control 203 is located in the middle of the right side of the photo preview interface 20, and its distance from the upper edge and the lower edge of the display screen is the same.

[0128] like Figure 3As shown in (a), the photo preview interface 20 includes: a first priority bit 208 and a second priority bit 209. The priority of the first priority bit 208 is higher than the priority of the second priority bit 209. The function of the first priority bit 208 can be referred to Figure 1-Figure 2 The function of the first priority 108 and the function of the second priority 209 can be referred to Figure 1-Figure 2 The function of the second priority 109 in the image preview interface is equivalent to rotating the photo preview interface 10 counterclockwise by 90°, which can be similar to Figure 3-Figure 4 The photo preview interface 20.

[0129] When there are two "conditional display function controls" that need to be displayed in the photo preview interface 20, the electronic device uses the first priority 208 and the second priority 209 to display the two "conditional display function controls". In this case, the first priority 208 is located above the second priority 209, and the two are located in the middle position on the left side of the photo control 203. The first priority 208 and the second priority 209 are symmetrical with the photo control 203 as the center, and the distance between the first priority 208 and the upper edge of the display screen and the distance between the second priority 209 and the lower 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 located in the middle position on the left side of the photo control 203, which can present a symmetrical aesthetic feeling to the user.

[0130] When there is only one "conditional display function control" that needs to be displayed in the user interface, the electronic device uses the first priority bit 208 or the second priority bit 209 to display the one "conditional display function control". In this case, the first priority bit 208 or the second priority bit 209 is located in the middle of the left side of the photo control 203, and the distance between it and the upper edge and the lower edge of the display screen is the same. In this way, the one "conditional display function control" displayed in the photo preview interface 20 is located in the middle of the left side of the photo control 203, which can present a symmetrical aesthetic feeling to the user.

[0131] refer to Figure 3 (a)- Figure 3 In (b), the user moves the electronic device 200, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. Figure 3As shown in (b), when the brightness of the image collected by the camera is less than or equal to the second value, or when the intensity of the external ambient light is less than or equal to the third value, the electronic device 200 detects that the display conditions of the night scene enhancement function control are currently met, and displays the night scene enhancement function control 210 at the idle and highest priority control position, that is, displays the night scene enhancement function control 210 at the first priority position 208, and turns on the night scene enhancement function at the same time. At this time, the electronic device only needs to display the night scene enhancement function control 210, and only needs one control position, so the first priority position 208 is located in the middle position on the left side of the photo control 203. The display method of the night scene enhancement function control 210 can be referred to Figure 3 Related introduction of .

[0132] refer to Figure 3 (b)- Figure 3 In (c), the user moves the electronic device 200 closer to the subject, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. Figure 3 As shown in (c), when the focal length of the camera is "1X", i.e., 1x zoom, when the distance between the camera and the subject is less than or equal to the first value, the electronic device 200 detects that the display condition of the macro function control is currently met, and displays the macro function control 211 at the idle and highest priority control position, i.e., displays the macro function control 211 at the second priority position 209, and turns on the macro function at the same time. At this time, the electronic device needs to display the night scene enhancement function control 210 and the macro function control 211, which requires two control positions, so 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 on the left side of the photo control 203 as a whole. In some embodiments, after the electronic device 200 detects the display condition of the macro function, it can also display a prompt message 212 in the photo preview interface 20, and the prompt message 212 is used to prompt the user that the current electronic device 200 has turned on the macro function. The prompt message 212 can disappear automatically after being displayed for a period of time without user interaction. The display mode of the macro function control 211 and the change of the zoom control 206 can be referred to Figure 3 Related introduction of .

[0133] refer to Figure 3 (c)- Figure 3(d), when the intensity of the ambient light increases, the electronic device 200 detects that the display conditions of the night scene enhancement function control are not met at present, so 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, and only one control position is required, so the second priority position 209 is located in the middle position on the left side of the photo control 203.

[0134] refer to Figure 3 (d)- Figure 3 In (e), the user moves the electronic device 200 away from the subject, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. 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 currently met, and therefore stops displaying the macro function control 211 at the second priority position 209 and turns off the macro function.

[0135] refer to Figure 3 (e)- Figure 3 In step (f), the user moves the electronic device 200 closer to the subject again, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. Figure 3 As shown in (f), when the focal length of the camera is "1X", i.e., 1x zoom, and when the distance between the camera and the subject is less than or equal to the first value, the electronic device 200 detects that the display conditions of the macro function control are currently met, and displays the macro function control 211 at the idle and highest priority control position, i.e., displays the macro function control 211 at the first priority position 208, and turns on the macro function at the same time. At this time, the electronic device only needs to display the macro function control 211, and only needs one control position, so the first priority position 208 is located in the middle position on the left side of the photo control 203. Figure 3 As shown in (f), the electronic device 200 can also display the prompt information 212 again.

[0136] refer to Figure 3 (f)- Figure 3 In (g), the user moves the electronic device 200, but does not change the shooting distance and the focal length of the camera, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. Figure 3As 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, and displays the food function control 213 at the idle and highest priority control position, that is, displays the food function control 213 at the second priority position 209, and turns on the food function at the same time. At this time, the electronic device needs to display the macro function control 211 and the food function control 213, which requires two control positions, so 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 on the left side of the photo control 203 as a whole.

[0137] refer to Figure 3 (d)- Figure 3 In (h), the user moves the electronic device 200, but does not change the shooting distance and the focal length of the camera, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. Figure 3 As shown in (h), 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, and displays the food function control 213 at the idle and highest priority control position, that is, displays the food function control 213 at the first priority position 208, and turns on the food function at the same time. At this time, the electronic device needs to display the macro function control 211 and the food function control 213, which requires two control positions, so 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 on the left side of the photo control 203 as a whole.

[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. 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 can be seen from (f), the same "conditional display function control" (such as macro function control 211) can be displayed in different control positions in different scenarios. Figure 3 (g) and Figure 3 As can be seen from (h), the same "conditional display function control" (such as the food function control 213) can be displayed in different control positions in different scenarios.

[0140] Figure 4The example shows that the electronic device 200 displays a photo preview interface of a “conditional display function control” including a function subset.

[0141] Figure 4 This set of user interface explanations can be found in Figure 2 Related introduction of . Figure 4 and Figure 2 The difference is that there is enough 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, so when the macro function control 211 is expanded, there is no need to collapse the zoom control 206. In addition, the macro function control 211 can be expanded upward and downward at the same time to form a macro function subset bar 214. When the macro function subset bar 214 is collapsed, the macro function subset bar 214 can be collapsed upward and downward at the same time to form the macro function control 211.

[0142] Other Implementations

[0143] for Figure 3-Figure 4 In the photo preview interface 20 shown on the electronic device 200 with a larger screen aspect ratio, when the electronic device switches from displaying the "conditional display function control" in one control position to displaying the "conditional display function control" in two control positions, the function control that satisfies the display condition earlier can always be displayed in the first priority position 208, and the function control that satisfies the display condition later can be displayed in the second priority position 209. For example, referring to Figure 3 (d)- Figure 3 In (g), the user moves the electronic device 200, but does not change the shooting distance and the focal length of the camera, and the viewfinder image displayed in the preview window 205 of the electronic device 200 changes. 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, and 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] Figure 1-Figure 4 Two control positions are shown as an example. When the display conditions of multiple "conditional display function controls" are met, the electronic device can preferentially display the two "conditional display function controls" whose conditions are met first at the two control positions, and temporarily not display the "conditional display function controls" whose display conditions are met.

[0145] Figure 1-Figure 4 The two control positions shown are only examples. In some implementations, the control positions in the photo preview interface may be three, four, or more. Figure 1-Figure 2In the photo preview interface 10 shown, there may be a control position above the first priority position 108, and there may be a control position above the second priority position 109. Figure 3-Figure 4 In the photo preview interface 20 shown, there may be a control position above the first priority position 208, and there may be a control position below the second priority position 209. Figure 3-Figure 4 In the photo preview interface 20 shown, when the number of control positions used in the photo preview interface 20 decreases (such as from four to three), the several control positions currently used are overall located in the center of the left side of the photo control 203, thereby presenting a symmetrical aesthetic.

[0146] Figure 1-Figure 4 The element layout and control positions in the photo preview interface shown are only examples. In other implementations, the photo preview interface may also present other element layouts, and the control positions may also be at other positions in the photo preview interface.

[0147] The "conditional display function controls" (number and type) included in the photo preview interface and the display conditions of these "conditional display function controls" can be set by the developer of the camera application or be open to the user so that the user can set them independently. The number of control positions in the photo preview interface and their specific positions in the photo preview interface can be set by the developer of the camera application or be open to the user so that the user can set them independently.

[0148] Figure 1-Figure 4 The priority relationship between the two control positions in the photo preview interface is shown for example only. In some implementations, the priority relationship between the control positions in the photo preview interface may be set by the developer of the camera application or may be open to the user so that the user can set it independently.

[0149] Not limited to Figure 2 and Figure 4 The macro function subset shown, other functions can also include function subsets, so that other function controls can also be expanded or collapsed with user operations. The logic of expanding and collapsing other function controls can be referred to the previous introduction. Whether other functions provided by the photo preview interface include function subsets can be set by the developer of the camera application, or it can be opened to the user and set by the user.

[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 shot. The functions corresponding to other "conditional display function controls" can also be turned off in response to user operations, and the states of other "conditional display function controls" can also be maintained during a single shot. Figure 1 (b) If the electronic device receives a user operation acting on the night scene enhancement function control 110 displayed in the first priority position 108 at this time, the electronic device will respond to the operation by turning off the night scene enhancement function and adjusting the style of the night scene enhancement function control 110 to a closed style, such as adjusting its icon to a black background and adding a slash to its icon; thereafter, if the electronic device detects that the display conditions of the night scene enhancement function control are not currently met, the night scene enhancement function control 110 will be stopped from being displayed; thereafter, if it is detected again that the display conditions of the night scene enhancement function control are met, the night scene enhancement function control 110 will be redisplayed, and the night scene enhancement function will be kept in an off state, and the night scene enhancement function control 110 will be in a closed style.

[0151] Not limited to Figure 1-Figure 2 The photo preview interface in the photo mode is shown. Other user interfaces may also provide "conditional display function controls" and control positions. The method of displaying function controls for the photo preview interface mentioned in the previous embodiment of the present application may also be applied to other user interfaces. The user interface to which the method of the present application is applied is not limited here. For example, the method provided in the present application may be used in the recording interface in the recording mode provided by the camera application. The method provided in the present application may also be used in user interfaces provided by instant messaging applications, video applications, music applications, and other applications. The number, type, position of the control in the user interface, priority relationship between the control positions, etc. of the "conditional display function controls" provided by different user interfaces may be different.

[0152] Figure 5 A flowchart of a method for displaying function controls in a user interface provided in an embodiment of the present application.

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

[0154] S101: When it is detected that a first condition is met, a first function control is displayed at a first position in a first user interface, where the first condition is a display condition of the first function control.

[0155] The first user interface may be a photo preview interface in a photo mode provided by a camera application. The camera application may be a system application or a third-party application. Not limited thereto, the first user interface may also be other user interfaces, such as a video recording interface in a video recording mode provided by a camera application, a user interface provided by an instant messaging application / video application / music application, etc., which are not limited here.

[0156] For example, the first user interface may refer to Figure 1 The photo preview interface 10 is shown. Figure 3 The photo preview interface 20 is shown. The first position can be referenced, for example Figure 1 The first priority 108 shown, the first functional control can be referred to as Figure 1 Alternatively, the first position may refer to, for example, Figure 3 The first priority 208 shown, the first function control can be referenced for example Figure 3 The night view enhancement function control 210. The first condition may be a display condition of the night view enhancement function control, and the details may refer to the above.

[0157] S102: When it is detected that a second condition is met, a second function control is displayed at a second position in the first user interface, where the second condition is a display condition of the second function control.

[0158] For example, the second position may refer to Figure 1 The second priority 109 shown, the second function control can be referred to as Figure 1 Alternatively, the second position may refer to, for example, Figure 3 The second priority 109 shown, the second function control can be referred to as Figure 3 The macro function control 111. The second condition may be a display condition of the macro function control, and the details may refer to the above.

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

[0160] S103: When it is detected that the first condition is not currently satisfied, the display of the first function control at the first position is stopped.

[0161] S104: When it is detected that the second condition is not currently satisfied, the display of the second function control at the second position is stopped.

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

[0163] S105: Detecting that the second condition is met again, displaying a second function control at the first position.

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

[0165] Through the aforementioned steps, the electronic device can display different controls at the same position of the user interface in different scenarios. For example, the first position can display a first function control or a second function control.

[0166] Through the aforementioned steps, the electronic device can display the same control at different positions of the user interface in different scenarios. For example, the second function control can be displayed at both the first position and the second position.

[0167] Optionally, S106, if it is detected that a third condition is met, a third function control is displayed at the second position, and the third condition is a display condition of the third function control.

[0168] For example, the second functional control may refer to Figure 1 The food function control 113. S106 can refer to Figure 1 (g). As another example, the second functional control can refer to Figure 4 The food function control 213. S106 can refer to Figure 3 (g). The third condition is, for example, a display condition of a food function control, and details can be found in the above text.

[0169] Through S106, the electronic device can display different controls at the same position of the user interface in different scenarios. For example, the second position can display the second function control or the third function control.

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

[0171] S107, in response to the operation of closing the second function, closing the second function, and changing the second function control from the first form to the second form.

[0172] When the electronic device displays the second function control at the first position, the second function control in the first form may be displayed, and the second function control in the first form indicates to enable the second function corresponding to the second function control. Figure 2 (a), the display form of the macro function control 111 at this time indicates that the current electronic device has turned on the macro function. Figure 4 (a), the display form of the macro function control 211 at this time indicates that the macro function has been turned on in the current electronic device.

[0173] The operation of shutting down the second function may be, for example, Figure 2 (a) The user operation of the macro function control 111, or the user operation of the macro function control 111 Figure 4The second function control of the second form indicates to close the second function corresponding to the second function control. The second function control of the second form can be referred to as Figure 2 The macro function control 111 shown in (j), or Figure 4 The macro function control 211 shown in (j).

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

[0175] S108, when it is detected that the second condition is not met, the display of the second function control of the second form at the first position is stopped.

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

[0177] S109, detecting that the second condition is met again, and displaying a second function control in a second form.

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

[0179] Through S107-S109, when the electronic device displays the function control again after stopping displaying the function control, the function control is kept in the latest state of the latest record during the shooting process, which can continue the user's needs and preferences and provide the user with a better user experience.

[0180] In some implementations, if the function corresponding to the second functional control includes sub-functions, then Figure 5 The method shown may also include the following optional steps S110-S112 ( Figure 5 Not shown):

[0181] S110, upon receiving the first operation or detecting that the fourth condition is satisfied, 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.

[0182] The second functional control may be, for example, Figure 2 (a) shows the macro function control 111, the first operation can be, for example, Figure 2 (a) shows the zoom operation input by the user. Alternatively, the second function control may be, for example, Figure 4 (a) shows the macro function control 211, the first operation can be, for example, Figure 4 The fourth condition may be, for example, an automatic zoom condition, and details may be referred to above.

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

[0184] For example, the second functional control of the third form can be referred to Figure 2 The macro function control 111 shown in (a) of FIG. 111, the second function control of the fourth form can be referred to as Figure 2 (b) shows the macro function control 111. Alternatively, the second function control of the third form can be referred to, for example Figure 4 The macro function control 211 shown in (a) of FIG. 1 , the second function control of the fourth form can be referred to as Figure 4 (b) shows the macro function control 211. The first sub-function may be, for example, Figure 2 (b) or Figure 4 (b) shows the main body highlighting function.

[0185] The third form and the fourth form of the functional control may include one or both of the following differences: different icons, different texts.

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

[0187] S111, receiving a second operation acting on a second function control, expanding the second function 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. 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] The second operation can be referred to as Figure 2 The process of expanding the second function control can be referred to as Figure 2 (c) and the previous introduction. The second function subset column can be referred to Figure 2 The macro function subset column 114 shown in (d) of FIG. 1 , the first option can be referred to as Figure 2 (d) shows the main highlight function option 114A. The second option can be referred to as Figure 2 (d) shows the panoramic clarity function option 114B.

[0189] Alternatively, the second operation may refer to Figure 4 The process of expanding the second function control can be referred to as follows: Figure 4 (c) and the previous introduction. The second function subset column can be referred to Figure 4(d) shows the macro function subset column 214, the first option can be referred to as Figure 4 (d) shows the main highlight function option 214A. The second option can be referred to as Figure 4 (d) shows the panoramic clarity function option 214B.

[0190] S112, receiving a third operation acting on the second option, folding the subset bar of the second function into a fifth form of the second function control, and starting the second sub-function.

[0191] The third operation can be referred to as Figure 2 (d) of the user operation acting on the panoramic clarity function option 114B, or refer to Figure 4 The process of folding the subset bar of the second function into the second function control can be referred to as Figure 2 (f) or Figure 4 (f) and the previous introduction.

[0192] The second functional control of the fifth form indicates the second sub-function of the second function. The second functional control of the fifth form can be referred to as Figure 2 (g) or Figure 4 (g) shows a macro function control. The fifth form and the fourth form of the function control may include one or two of the following differences: different icons, different texts.

[0193] S107-S109 and S110-S112 may be two branches implemented in parallel, or may be implemented simultaneously. For example, the electronic device may first execute S110-S112, 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 embodiments, the first position and the second position are fixed in the first user interface, and the first position and the second position are displayed in the first user interface in the middle. The middle display may also be referred to as horizontal center display. Here, the first position may refer to Figure 1-Figure 2 The first priority position 108 is shown, and the second position can be referenced Figure 1-Figure 2 A second priority bit 109 is shown.

[0195] In some embodiments, when both the first position and the second position display function controls, the first position and the second position are located at the center of the first user interface; when the first position displays function controls and the second position does not display function controls, the first position is located at the center of the first user interface; when the second position displays function controls and the first position does not display function controls, the second position is located at the center of the first user interface. Here, the first position can refer to Figure 3-Figure 4 The first priority position 208 is shown, and the second position can be referenced Figure 3-Figure 4 A second priority bit 209 is shown.

[0196] When the first user interface is a photo preview interface, the photo preview interface displays a zoom control, the first position is located on the right side of the zoom control, and the second position is located on the left side of the zoom control. Figure 2 .

[0197] When the first user interface is a photo preview interface, the photo preview interface displays a photo control, and the first position and the second position are located on the left side of the photo control. Figure 4 .

[0198] The above two implementations can ensure that the functional controls displayed at the first position and the second position are displayed in the center of the user interface as a whole, which can present a symmetrical aesthetic feeling to the user.

[0199] The first function control and the second function control are each one of the following: macro function control, night scene enhancement function control, moon-gazing function control, food function control, blue sky function control, sunrise and sunset function control, portrait function control; the first function control and the second function control are different.

[0200] Figure 6 A flowchart of a method for displaying function controls in a photo preview interface provided in an embodiment of the present application.

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

[0202] S201, displaying a photo preview interface.

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

[0204] S202: When it is detected that a first condition is met, a function control of a first form is displayed at a first position of the photo preview interface, where the first condition is a display condition of the function control.

[0205] The functional controls here can be, for example, Figure 1-Figure 2 The macro function control 111 in the first position can be Figure 1-Figure 2 Alternatively, the function control may be Figure 3-Figure 4 The macro function control 211 in the first position can be Figure 3-Figure 4 The first priority 208 in the first condition. The first condition is, for example, a display condition of a macro function control, and details can be referred to above.

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

[0207] S203: When it is detected that the focal length change satisfies the second condition, a second form of function control is displayed at a first position of the photo preview interface, where the second form of function control is used to indicate the first sub-function corresponding to the start function control.

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

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

[0210] The function control of the second form indicates the first sub-function. The function control of the second form and the function control of the first form may include one or both of the following differences: different icons and different texts.

[0211] S204, in response to an operation on the second form of the function control, the function control is expanded into a function subset bar, the function subset bar includes a first option and a second option, the first option indicates a first sub-function, and the second option indicates a second sub-function.

[0212] For example, the operation of the second form function control can be referred to Figure 2 The user operation acting on the macro function control 111 in (b) of FIG. The process of expanding the function control can be referred to Figure 2 (c) and the previous introduction. For the function subset column, please refer to Figure 2 The macro function subset column 114 shown in (d) of FIG. 1 , the first option can be referred to as Figure 2 (d) shows the main highlight function option 114A. The second option can be referred to as Figure 2 (d) shows the panoramic clarity function option 114B.

[0213] For example, the operation of the second form function control can be referred to Figure 4 The user operation acting on the macro function control 211 in (b) of FIG. The process of expanding the function control can be referred to Figure 4 (c) and the previous introduction. For the function subset column, please refer to Figure 4 (d) shows the macro function subset column 214, the first option can be referred to as Figure 4 (d) shows the main highlight function option 214A. The second option can be referred to as Figure 4 (d) shows the panoramic clarity function option 214B.

[0214] S205: receiving an operation for the second option, folding the function subset bar into a third form of function control, and starting the second sub-function.

[0215] For example, the operation for the second option can be referred to Figure 2 (d) of the user operation acting on the panoramic clarity function option 114B, or refer to Figure 4 The process of folding the subset bar of the second function into the second function control can be referred to as Figure 2 (f) or Figure 4 (f) and the previous introduction.

[0216] The third form of the functional control indicates the second sub-function. The third form of the functional control can be referred to as Figure 2 (g) or Figure 4 (g) shows a macro function control. The function control in the third form and the fourth form may include one or two of the following differences: different icons and different texts.

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

[0218] The electronic device provided by the embodiments of the present application is introduced below.

[0219] The electronic device of the embodiment of the present application is a smart terminal device, which can be of various types, and the embodiment of the present application does not limit its specific type. For example, the electronic device can be a non-folding screen mobile phone, a folding screen mobile phone, and can also include a tablet computer, a camera, a desktop computer, a desktop computer with a touch-sensitive surface or a touch panel, a laptop computer (laptop), a handheld computer, a notebook computer, a smart screen, a wearable device (such as a smart watch, a smart bracelet, etc.), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a car machine, a smart headset, a game console, and can also be an Internet of Things (IOT) device or a smart home device such as a smart water heater, a smart lamp, a smart air conditioner, etc.

[0220] refer to Figure 7 , Figure 7 The hardware structure diagram of the electronic device provided in the embodiment of the present application. The electronic device may be the electronic device 100 or the electronic device 200 mentioned above.

[0221] like Figure 7 As shown, the electronic device may include: 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, an antenna 1, an 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, an earphone interface 170D, a sensor module 180, a button 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 to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0223] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0224] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0225] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0226] The charging management module 140 is used to receive charging input from a 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, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.

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

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

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

[0231] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0232] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0233] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through 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 technology. 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 system (SBAS).

[0234] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

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

[0236] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0237] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0238] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0239] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0240] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0241] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.

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

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

[0244] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0245] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device detects the touch operation intensity according to the pressure sensor 180A. The electronic device can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0246] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device, which is different from the position of the display screen 194.

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

[0248] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.

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

[0250] In the embodiment of the present application, the internal memory 121 stores a computer program for implementing the method of displaying a function control in a user interface provided in the embodiment of the present application, and the processor 110 is used to execute the computer program to implement the method provided in the embodiment of the present application. Specifically, the display screen 194 is used to display each user interface provided in the embodiment of the present application, and the processor 110 is used to determine whether the display condition of the "conditional display function control" in the user interface displayed by the display screen 194 is currently met, and control the display and hiding of the "conditional function control" in the user interface displayed by the display screen 194. The functions of each module in the electronic device can be referred to the previous introduction, and will not be listed here one by one.

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

[0252] Figure 8 A software structure diagram of an electronic device provided in an embodiment of the present application.

[0253] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the mobile operating system is divided into four layers, from top to bottom: application layer, program framework layer / core service layer, underlying library and runtime, and kernel layer.

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

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

[0256] The program framework layer provides application programming interface (API) and programming framework for the 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, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

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

[0259] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

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

[0261] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0262] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0263] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0264] The runtime can refer to all code libraries, frameworks, etc. required for the program to run. For example, for the C language, the runtime includes a series of function libraries required for the C program to run. For the Java language, in addition to the core library, the runtime also includes the virtual machine required for the Java program to run. The above core library may include the function functions that the Java language needs to call.

[0265] The underlying library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0266] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0267] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[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 drawing engine for 2D drawings.

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

[0271] The following is an example of the workflow of the electronic device software and hardware in conjunction with capturing a photo scene.

[0272] When the touch sensor 180K receives a touch operation, the 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, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.

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

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

[0275] The present 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, and the processing circuit is used to run the computer instructions to implement a method executed on the electronic device side as in any of the above embodiments.

[0276] The present application also provides a chip system, which includes at least one processor, for implementing the method executed by the electronic device side in any of the above embodiments. In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0277] A chip system can be composed of chips or include chips and other discrete devices.

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

[0279] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, 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 may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0280] Exemplarily, the chip system can 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 microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0281] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method executed on the electronic device side in any of the above embodiments is implemented.

[0282] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the method executed on the electronic device side in any of the above embodiments.

[0283] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.

[0284] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of 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, the process or function described in the present application is generated in whole or in part. 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 computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.

[0285] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0286] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0287] The terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0288] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.

Claims

1. A method for displaying a function control in a user interface, characterized in that: Applied to electronic equipment, the method comprises: It is detected that a first condition is met, and a first function control is displayed at a first position in a first user interface, wherein the first condition is a display condition of the first function control; It is detected that a second condition is met, and a second function control is displayed at a second position in the first user interface, where the second condition is a display condition of the second function control; When detecting that the first condition is not satisfied, stopping displaying the first function control at the first position; When it is detected that the second condition is not met, the second function control is stopped from being displayed at the second position; It is detected that the second condition is met again, and the second function control is displayed at the first position.

2. The method according to claim 1, characterized in that The method further comprises: It is detected that a third condition is met, and a third function control is displayed at the second position, wherein the third condition is a display condition of the third function control.

3. The method according to claim 1 or 2, characterized in that: 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 turning on a second function corresponding to the second function control; Correspondingly, after displaying the second function control at the first position, the method further includes: In response to an operation of closing the second function, closing the second function and changing the second function control from the first form to the second form; When it is detected that the second condition is not satisfied, the display of the second function control in the second form at the first position is stopped; It is detected that the second condition is met again, and the second function control in the second form is displayed.

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

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

6. The method according to claim 5, characterized in that After changing the second functional control from the third form to the fourth form, the method further includes: receiving a second operation acting on the second function control, expanding the second function 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 the first sub-function of the second function, and the second option indicating the second sub-function of the second function; A third operation acting on the second option is received, the subset bar of the second function is collapsed into the second function control of the fifth form, and the second sub-function is started.

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

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

9. The method according to any one of claims 1 to 7, characterized in that: When function controls are displayed in both the first position and the second position, the first position and the second position are located in the middle of the first user interface; When the first position displays a function control and the second position does not display a function control, the first position is located in the middle of the first user interface; When a function control is displayed at the second position and no function control is displayed at the first position, the second position is located at the center of the first user interface.

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

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

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

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

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

15. A method for displaying function controls in a photo preview interface, characterized in that: Applied to electronic equipment, the method comprises: Display the photo preview interface; When it is detected that a first condition is met, a first form of a function control is displayed at a first position of the photo preview interface, wherein the first condition is a display condition of the function control; When it is detected that the focal length change satisfies the second condition, displaying the function control in a second form at the first position of the photo preview interface, wherein the function control in the second form is used to indicate starting a first sub-function corresponding to the function control; In response to an operation on the second-form function control, the function control is expanded into a function subset bar, the function subset bar includes a first option and a second option, the first option indicates the first sub-function, and the second option indicates the second sub-function; receiving an operation acting on the second option; The function subset bar is collapsed into the function control in the third form, and the second sub-function is started.

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

17. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

18. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

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

Citation Information

Patent Citations

  • Shooting method and terminal

    CN110401766A

  • Method for displaying service information in preview interface, and electronic device

    CN111465918A

  • Execution method and device for control operation, storage medium and control

    CN114860120A

  • Electronic apparatus, control method for electronic apparatus, program, and storage medium

    JP2013157678A

  • Intelligent assistant control method and terminal device

    US20210014420A1