(19)
(11)EP 4 130 950 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
08.02.2023 Bulletin 2023/06

(21)Application number: 21779177.1

(22)Date of filing:  30.03.2021
(51)International Patent Classification (IPC): 
G06F 3/0481(2013.01)
G06F 3/0488(2013.01)
(86)International application number:
PCT/CN2021/083911
(87)International publication number:
WO 2021/197315 (07.10.2021 Gazette  2021/40)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 03.04.2020 CN 202010260738

(71)Applicant: Vivo Mobile Communication Co., Ltd.
Dongguan, Guangdong 523863 (CN)

(72)Inventor:
  • LI, Lei
    Dongguan, Guangdong 523863 (CN)

(74)Representative: Raffay & Fleck 
Patentanwälte Grosse Bleichen 8
20354 Hamburg
20354 Hamburg (DE)

  


(54)DISPLAY METHOD AND ELECTRONIC DEVICE


(57) Disclosed are a display method and an electronic device. The method comprises: receiving a first input; in response to the first input, controlling a screen to extend or retract, and to display candidate items; and when a target candidate item in the candidate items meets a preset condition, displaying a target interface corresponding to the target candidate item.




Description

CROSS-REFERENCE TO RELATED APPLICATIONS



[0001] This application claims priority to Chinese Patent Application No. 202010260738.7, filed with the China National Intellectual Property Administration on April 03, 2020, which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] The present invention relates to the field of communication technologies, and in particular, to a display method and an electronic device.

BACKGROUND



[0003] With the development and progress of science and technologies, electronic devices become more and more popular, and the functions of electronic devices become more and more diverse. For example, a communication function, a photographing function, a video recording function, and the like, have become necessary functions of electronic devices. A user needs to unlock an electronic device so as to enter a main desktop. Icons of various applications may be displayed on a screen of the electronic device, and a corresponding application may be started after the user operates on a certain icon.

[0004] In the prior art, for an electronic device with a screen retractable in length or width, the screen of the electronic device needs to be fully expanded to operate according to contents displayed on the screen. For example, a standby desktop is displayed after the electronic device with a screen retractable in length or width is unlocked. However, current unlocking methods are all based on a password or a gesture set by the user or using fingertip information of the user to finish unlocking. The unlocking methods are undiversified and boring. On the other hand, if the user needs to enter a certain application interface, the user needs to expand the screen first, enter the main desktop after finishing the unlocking, and then click a corresponding icon to enter an application corresponding to the icon. Operations are complicated and user experience is poor.

SUMMARY



[0005] Embodiments of the present invention provide a method and an electronic device to resolve a problem that operations are complicated and user experience is poor during using the electronic device with a screen retractable in length or width.

[0006] In order to resolve the technical problem above, the present invention is implemented as follows:
According to a first aspect, an embodiment of the present invention provides a display method, applied to an electronic device, where the electronic device includes a screen retractable in length or width. The method includes: receiving a first input; controlling the screen to extend or retract and displaying a candidate item in response to the first input; and displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition.

[0007] According to a second aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a receiving module, a responding module, and a first display module. The receiving module is configured to receive a first input. The responding module is configured to control the screen to extend or retract and display a candidate item. The first display module is configured to display a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition.

[0008] According to a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and runnable in the processor. The computer program, when executed by the processor, implements the steps of the display method according to the first aspect.

[0009] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, storing a computer program. The computer program, when executed by the processor, implements the steps of the display method according to the first aspect.

[0010] In an embodiment of the present invention, an electronic device includes a screen retractable in length or width, and may receive a first input; control the screen to extend or retract and display a candidate item in response to the first input; and display a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition. Through the solution, on one hand, in a case that a target candidate item is used for unlocking, when the target candidate item and a preset candidate item are obtained, the unlocking may be finished, so that the unlocking may be finished during an expansion and retraction process of the screen, which reduces a consumed time for unlocking the electronic device with the screen retractable in length or width, and increases the unlocking fun. On the other hand, in a case that the target candidate item is used for indicating an entry of an application or a shortcut function, after the target candidate item is obtained, an application interface or a shortcut function interface corresponding to the target candidate item may be started, so that a function of entering the application interface during an extension process of the first screen may be implemented, which reduces a consumed time for starting an application of the electronic device with the screen retractable in length or width, and increases the fun, thereby improving user experience.

BRIEF DESCRIPTION OF THE DRAWINGS



[0011] To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings according to such accompanying drawings without creative efforts.

FIG. 1 is a schematic architectural diagram of a possible Android operating system according to an embodiment of the present invention;

FIG. 2 is a schematic flowchart of a display method according to an embodiment of the present invention;

FIG. 3 is a first schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 4 is a second schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 5 is a third schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 6 is a fourth schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 7 is a fifth schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 8 is a sixth schematic diagram of an interface to which a display method is applied according to an embodiment of the present invention;

FIG. 9 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;

FIG. 10 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention; and

FIG. 11 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention.


DETAILED DESCRIPTION



[0012] The following clearly and completely describes the technical solutions in embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some of the embodiments rather than all of the embodiments of the present invention. All other embodiments derived by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0013] In this specification, the term "and/or" is an associated relationship for describing associated objects, and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In this specification, the symbol "/" represents an "or" relationship of the associated objects, and for example, A/B represents A or B.

[0014] The terms such as "first", "second" in the specification and claims of the present invention are used for distinguishing different objects and not used for describing a specific sequence of objects. For example, a first region and a second region and the like are used for distinguish different regions and not used for describing a specific sequence of regions.

[0015] In addition, in the embodiments of the present invention, the term "exemplary" or "for example" is used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being preferred or superior to other embodiments or design schemes. Exactly, use of the term, such as "exemplarily" or "for example", is intended to present a related concept in a specific manner.

[0016] In the descriptions of the embodiments of the present invention, unless otherwise stated, the meaning of "a plurality of" refers to two or more. For example, a plurality of elements refer to two or more elements and the like.

[0017] The embodiments of the present invention provide a display method and an electronic device, where the electronic device includes a screen retractable in length or width. The electronic device may receive a first input; control the screen to extend or retract and display a candidate item in response to the first input; and display a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition. Through the solution, on one hand, in a case that a target candidate item is used for unlocking, the target candidate item is obtained, and when the target candidate item matches a preset candidate item, the unlocking is finished, so that the unlocking may be finished during an expansion and retraction process of the screen, which reduces a consumed time for unlocking the electronic device with the screen retractable in length or width, and increases the unlocking fun. On the other hand, in a case that the target candidate item is used for indicating an entry of an application or a shortcut function, after the target candidate item is obtained, an application interface or a shortcut function interface corresponding to the target candidate item may be started, so that a function of entering the application interface during an extension process of the first screen may be implemented, which reduces a consumed time for starting an application of the electronic device with the screen retractable in length or width, and increases the fun, thereby improving user experience.

[0018] The electronic device in the embodiments of the present invention may be an electronic device including an operating system. The operating system may be an Android (Android) operating system or may be an ios operating system or may be another possible operating system. Details are not limited in the embodiments of the present invention.

[0019] Taking the Android operating system as an example, a software environment to which the display method according to the embodiments of the present invention is applied is introduced.

[0020] FIG. 1 is a schematic architectural diagram of an Android operating system according to an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes 4 layers, which are respectively an application layer, an application framework layer, a system running library layer, and a kernel layer (specifically a Linux kernel layer).

[0021] The application layer includes all applications (including system applications and third-party applications) in the Android operating system.

[0022] The application framework layer is a framework for applications. A developer may develop some applications based on the application framework layer in a case of complying with the development principle of the framework for applications.

[0023] The system running library layer includes a library (also referred to as a system library) and an Android operating system running environment. The library mainly provides various resources required by the Android operating system. The Android operating system running environment is used for providing a software environment for the Android operating system.

[0024] The kernel layer is an operating system layer of the Android operating system, and is a software-level bottom layer of the Android operating system. The kernel layer provides a core system service and a hardware-related driver for the Android operating system based on a Linux kernel.

[0025] Taking the Android operating system as an example, in the embodiments of the present invention, the developer may develop, based on the system architecture of the Android operating system shown in FIG. 1, a software program that implements the display method according to the embodiments of the present invention, so that the display method may be run based on the Android operating system shown in FIG. 1. That is, a processor or the electronic device may implement the display method according to the embodiments of the present invention through running the software program in the Android operating system.

[0026] The electronic device in the embodiments of the present invention may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) or the like. The non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine, a self-service machine, or the like. Details are not limited in the embodiments of the present invention.

[0027] In the prior art, for an electronic device with a screen retractable in length or width, the screen of the electronic device needs to be fully expanded to operate according to contents displayed on the screen. For example, a standby desktop is displayed after the electronic device with a screen retractable in length or width is unlocked. However, current unlocking methods are all based on a password or a gesture set by the user or using fingertip information of the user to finish unlocking. The unlocking methods are undiversified and boring. On the other hand, if the user needs to enter a certain application interface, the user needs to expand the screen first, enter the main desktop after finishing the unlocking, and then click a corresponding icon to enter an application corresponding to the icon. Operations are complicated and user experience is poor.

[0028] Therefore, the embodiments of the present invention provide a display method. When a user uses an electronic device with a screen retractable in length or width, the screen of the electronic device is controlled to extend or retract, and a candidate item (the candidate item may correspond to a number or a character for unlocking, or correspond to an application icon for quickly starting an application interface) is displayed on the screen. When a target candidate item in the candidate item meets a preset condition, an interface corresponding to the target candidate item is displayed. As a result, when the screen is expanded, unlocking may be implemented or the application interface may be started, which saves operation steps for the user and improves user experience.

[0029] To illustrate the embodiments of the present invention more clearly, the following are two application scenarios of the display method provided by the present invention:

In a first possible scenario, the user hopes that quick unlocking can be implemented when using an electronic device. The user may preset a preset candidate item for matching. There may be one or more preset candidate items, and the contents of the preset candidate items may be numbers, symbols, graphics, figures, and the like (for example, the candidate items set for matching are 1, 2, a square, figure 1). The electronic device receives a first input, controls a screen to extend or retract, and displays candidate items on the screen. It should be noted that the candidate items displayed on the screen include contents of the preset candidate items and contents of non-preset candidate items, and a sequence of the candidate items is not limited. In a case that a target candidate item in the candidate items meets a preset condition (for example, receiving an input for the target candidate item by the user), the target candidate item is selected. In a case that there are a plurality of preset candidate items, after selecting the target candidate item, the user can continue to select a second target candidate item (for example, the target candidate item selected by the user for the first time is 1, and the user can continue to select a target candidate item 2). In a case that one or the more target candidate items selected by the user match the preset candidate items, unlocking is finished and an unlocked target interface is displayed.

In a second possible scenario, the user wants to quickly enter an application interface or a shortcut function interface when using an electronic device. The electronic device receives a first input, controls a screen to extend or retract, and displays a candidate item on the screen. The candidate item may be an application icon, a shortcut function icon or other identifier corresponding to the application interface. It should be noted that the candidate item displayed on the screen may be contents preset by the user, or may be contents determined by the electronic device according to usage and usage records of the user, or may be all contents displayed on a main desktop of the electronic device. In a case that a target candidate item in the candidate item meets a preset condition (for example, receiving an input for the target candidate item by the user), the target candidate item (such as application icon 1) is selected and the electronic device displays a display interface of an application corresponding to the application icon 1.



[0030] The display method according to the embodiments of the present invention is exemplarily described below by using an example in which an execution entity is an electronic device.

[0031] As shown in FIG. 2, an embodiment of the present invention provides a display method. The display method may include the following S101 to S103.

[0032] S 101: An electronic device receives a first input.

[0033] Optionally, the first input may be an input for an extension or a retraction of a screen. For example, the user holds an edge of the screen to stretch or push the edge, so that the screen is extended or retracted.

[0034] Optionally, the first input may be a touch input for the screen. The electronic device receives the touch input to control the screen to extend or retract. For example, if receiving a slide input from the user, the electronic device controls the screen to extend, and if receiving a click input from the user, the electronic device controls the screen to retract.

[0035] Optionally, the first input may be an input for other parts of the electronic device. For example, if detecting an input of shaking to the left, the electronic device controls the screen to extend, and if detecting an input of shaking to the right, the electronic device controls the screen to retract; for example, if detecting an input of flipping the screen upwards, the electronic device controls the screen to extend, and if detecting an input of flipping the screen downwards, the electronic device controls the screen to retract.

[0036] Optionally, the first input may further be a notification message, an incoming call, or the like received by the electronic device, and a control operation of the electronic device corresponding to a specific input manner is not limited in this embodiment.

[0037] S102: The electronic device controls the screen to extend or retract and displays a candidate item in response to the first input.

[0038] In this embodiment of the present invention, the candidate item may be displayed on an extended screen region, or may be displayed on a preset screen region.

[0039] In this embodiment of the present invention, the candidate item may be a character such as a word, a number, or a symbol. The candidate item may alternatively be an image or a graphic. The candidate item may be an application icon, a folder icon, a shortcut function icon, or the like.

[0040] For example, an electronic device with a screen retractable in length or width is a mobile phone with a retractable screen as an example. As shown in FIG. 3, a first screen of the mobile phone is controlled to extend, and candidate items are displayed on a second screen of the mobile phone, the candidate items being numbers. If an input for a target number is received, in a case that the target number matches a preset number, an unlocked interface such as a main desktop of the screen is displayed.

[0041] Optionally, after the first screen of the mobile phone is controlled to extend, the candidate items are displayed on the second screen of the mobile phone, the candidate items being graphics such as triangles, squares, rectangles, and combined graphics of triangles and squares. If an input for a target graphic is received, in a case that the target graphic matches a preset graphic, the unlocked interface is displayed.

[0042] Optionally, after the first screen of the mobile phone is extended, the candidate items are displayed on the second screen of the mobile phone, the candidate items being combinations of graphics and numbers, such as 1, 2, 3, a triangle, a rectangle, 4, 5... If an input for a target object (a target graphic or a target number) is received, in a case that the target number matches a preset number, the unlocked interface is displayed.

[0043] In an example, an electronic device with a screen retractable in length or width may be a mobile phone with a flexible screen. As shown in FIG. 4, the screen of the mobile phone is controlled to extend, and candidate items are displayed, where the candidate items may be displayed on an extended region of the screen or may be displayed on parts of the extended region of the screen. The candidate items may be images. If an input for a target image is received, in a case that the target image matches a preset image, the unlocked interface is displayed.

[0044] Optionally, in a case that the candidate items are images, if an input for a target image is received, a page corresponding to the target image in an album or a page corresponding to the target image in another system may be displayed.

[0045] Optionally, the images may be images preset by the user, or may be images obtained online by a system, or may be images obtained from a phone album by the system. The origin of the images is not limited in this embodiment.

[0046] In an example, the candidate items are application icons. If an input for a target icon is received, an application interface corresponding to the target icon is displayed. If the target icon is an application store, a main interface of the application store or a sub-interface of the application store is displayed.

[0047] Optionally, the candidate items are shortcut function icons. If an input for a target shortcut function icon is received, a shortcut function interface corresponding to the target shortcut function icon is displayed. If the target shortcut function icon is a payment icon, a payment main page is displayed.

[0048] Optionally, the candidate items may be at least one of numbers, graphics, application icons, shortcut function icons, and the like. If an input for a target object (a target number, a target graphic, a target application icon, a target shortcut function icon, and the like) is received, a display interface corresponding to the target object is displayed.

[0049] In an example, the number of the candidate items displayed on the second screen may be associated with an extension length of the first screen. For example, when the first screen is extended, the displayed candidate items are updated, and the number of the candidate items increases.

[0050] In this embodiment of the present invention, specific contents of the foregoing candidate items may be set by the user according to needs. For example, in a case that it is required to implement the unlocking while a screen is expanded, the candidate items may be numbers, characters, graphics, and the like; and in a case that it is required to quickly start an application interface while a screen is expanded, the candidate items may be application icons, shortcut function icons, images, and the like.

[0051] S103: The electronic device displays a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition.

[0052] In this embodiment of the present invention, the target interface is associated with the target candidate item, that is, the electronic device displays the target interface corresponding to the target candidate item according to the target candidate item selected by the user. It may be understood that the target interface may not be a fixed interface, that is, corresponding to a same candidate item, the target interface may be different when displayed in different cases.

[0053] For example, in an unlocking scenario, the candidate items are set to be graphics, and the preset graphic is a rectangle. When an input for the rectangle is received, an unlocked target interface is displayed, where the target interface may be a main desktop of the electronic device, or may be an application interface displayed before the electronic device is locked.

[0054] In another example, in a scenario of starting an application, the candidate items are set to be application icons. If an input for the target application icon is received, a target interface corresponding to the target application icon is displayed, where the target interface may be a main interface of the application corresponding to the target application icon, or may be a background cache page of the application corresponding to the target application icon.

[0055] In another example, in a scenario of starting a shortcut function, the candidate items are set to be shortcut function icons. When an input for a target shortcut function icon is received, a target interface corresponding to the target shortcut function icon is displayed, where the target interface may be a main interface of the shortcut function, or may be a target window interface corresponding to the shortcut function. For example, the target shortcut function icon is a payment icon, and the window interface includes a scan interface, a payment code interface, or the like. The electronic device may determine the target window interface according to a historical record or recent usage.

[0056] The preset condition may be receiving an input for the candidate items, so as to determine the target candidate item and display the target interface corresponding to the target candidate item. The preset condition may alternatively be displaying the target interface corresponding to the target candidate item after the target candidate item meets the preset condition.

[0057] Exemplarily, as shown in FIG. 3, the electronic device receives a first input from the user, such as stretching the edge of the screen to extend the screen. In response to the input, the electronic device controls the screen to extend and display numbers, namely, the candidate items, on the extended region of the screen. The receiving an input for the candidate items may be, as shown in FIG. 3, receiving a click input for numbers by the user on the electronic device. For example, the user clicks a number 3, in a case that a preset number is 3, the electronic device is unlocked and an unlocked main interface is displayed. Therefore, the electronic device can be unlocked during a process of expanding the screen.

[0058] Optionally, in an unlocking scenario, after a target candidate item (which may be considered as a first candidate item here) is selected, an input by the user can be received continuously, and a target candidate item (which may be considered as a second candidate item here) can be selected continuously. In a case that a combination of the first candidate item and the second candidate item matches the preset candidate item, the unlocked interface is displayed. The number of the candidate items set in the unlocking scenario is not limited in this embodiment.

[0059] Optionally, as shown in FIG. 3, after the target candidate item is selected, the target candidate item may be displayed on a preset region of the screen to prompt the user selected contents.

[0060] Optionally, after the target candidate item is selected, the target candidate item may be displayed on a preset region of the screen, and may be hid after a preset time to protect privacy of the user. A hiding manner may be canceling displaying or may be displaying in a second form.

[0061] Optionally, in an unlocking scenario, when the number of the candidate items is set to be less than two, after the target candidate item is selected, an input by the user may be received and the selected target candidate item may be deleted, so that the user may re-input after making a wrong selection.

[0062] Exemplarily, the electronic device receives a first input by the user, such as stretching the edge of the screen to extend the screen. In response to the input, the electronic device controls the screen to extend, displays numbers, namely, the candidate items, on the extended region of the screen, and displays a target identifier. That the target candidate item meets a preset condition may be, as shown in FIG. 5, after the electronic device receives a drag input for the target identifier by the user, the target interface is displayed in a case that the target identifier at least partially overlaps the target candidate item. For example, the electronic device displays numbers, namely, the candidate items, and if the user drags the target identifier, in a case that the target identifier at least partially overlaps a number 3, the number 3 can be considered to be selected. In a case that a preset number is 3, the electronic device is unlocked, and the unlocked interface is displayed.

[0063] Exemplarily, before the electronic device receives the first input from a user, the electronic device displays a target identifier on a first position of a screen. The electronic device receives the first input by the user. In response to the input, the electronic device controls the screen to extend, displays application icons, namely candidate items, on the screen, and displays the target identifier on a second position. That the target candidate item meets a preset condition may be that in a case that the target identifier overlaps a target application icon, a display interface corresponding to the target application icon is displayed. For example, the electronic device displays the target identifier on the edge of the screen, and the electronic device receives an input of clicking a control indicating the screen to extend by the user on a touch screen, controls the screen to extend, and displays the application icons on the extended region of the screen, and the target identifier is moved to the second position. In a case that the target identifier overlaps a target application icon, a display interface corresponding to the target application icon is displayed.

[0064] Optionally, that the target identifier at least partially overlaps the target candidate item may be that a first region where the target identifier is located at least partially overlaps a second region where the target candidate item is located.

[0065] In an embodiment of the present invention, an electronic device includes a screen retractable in length or width, and may receive a first input; control the screen to extend or retract and display candidate items in response to the first input; and display a target interface corresponding to a target candidate item in the candidate items in a case that the target candidate item meets a preset condition. Through the solution, on one hand, in a case that a target candidate item is used for unlocking, the unlocking may be finished through obtaining the target candidate item and a preset candidate item, so that the unlocking may be finished during an expansion and retraction process of the screen, which reduces a consumed time for unlocking the electronic device with the screen retractable in length or width, and increases the unlocking fun. On the other hand, in a case that the target candidate item is used for indicating an entry of an application or a shortcut function, after the target candidate item is obtained, an application interface or a shortcut function interface corresponding to the target candidate item may be started, so that a function of entering the application interface during an extension process of the first screen may be implemented, which reduces a consumed time for starting an application of the electronic device with the screen retractable in length or width, and increases the fun, thereby improving user experience.

[0066] Exemplarily, before step 103, the method further includes the following step 104:

[0067] Step 104: The electronic device displays a target identifier.

[0068] The target identifier may be a graphic, a control, a mask, a selection box, or the like. A specific form of the target identifier is not limited in this embodiment.

[0069] The displaying a target identifier may be that a target identifier is displayed before the electronic device receives the first input, or may be that a target identifier is displayed after the electronic device receives the first input.

[0070] In a first possible implementation,
exemplarily, the electronic device is an electronic device with a retractable screen, where a second screen is a retractable screen, and a target identifier is displayed on a first screen before the electronic device receives the first input. After receiving the first input, the electronic device controls the second screen to extend, and displays a candidate item on the first screen. An input for the target identifier may be received, a target candidate item may be selected through the target identifier, and a target interface corresponding to the target candidate item may be displayed.

[0071] Optionally, that a target candidate item may be selected through the target identifier may be that, the target identifier is clicked first and then the candidate items are clicked to determine the target candidate item, or may be that an input for the target identifier is received to move the target identifier, and the target candidate item is determined in a case that the target identifier at least partially overlaps the candidate items. A manner of that a target candidate item may be selected through the target identifier is not limited in this embodiment.

[0072] In a second possible implementation,
exemplarily, the electronic device is an electronic device with a scrolling screen. After receiving a first input, the electronic device controls the screen to extend, displays candidate items on the extended region of the screen, and displays a target identifier. An input for the target identifier may be received, a target candidate item may be selected through the target identifier, and a target interface corresponding to the target candidate item may be displayed.

[0073] It is to be noted that, after the electronic device receives the first input, the target identifier and the candidate items may be displayed simultaneously, or the target identifier may be displayed first and then the candidate items may be displayed, or the candidate items may be displayed first and then the target identifier may be displayed. A sequence of displaying the target identifier and the candidate items after the electronic device receives the first input is not limited in this embodiment of the present invention.

[0074] Exemplarily, step 103 may specifically include the following step 103a:
Step 103a: The electronic device displays the target interface corresponding to the target candidate item in the candidate item in a case that the target identifier at least partially overlaps the target candidate item.

[0075] It is to be noted that, that the target identifier at least partially overlaps the target candidate item may be that a partial region where the target identifier is located at least partially overlaps a target region where the target candidate item is located, which is not limited in this embodiment of the present invention.

[0076] Exemplarily, the electronic device displays the candidate item and the target identifier on the screen. The electronic device may receive an input for the target identifier, cause the target identifier to move, and display the interface corresponding to the target candidate item in a case that the target identifier at least partially overlaps the target candidate item in the candidate item.

[0077] Exemplarily, as shown in FIG. 6, the electronic device displays the candidate items and the target identifier on the screen. The electronic device may receive an input for the target candidate item in the candidate items, cause the target candidate item in the candidate items to move, and display the interface corresponding to the target candidate item in a case that the target identifier at least partially overlaps the target candidate item in the candidate items.

[0078] Optionally, an overlapping area threshold of the target identifier and the target candidate item may be set. In a case that an overlapping area of the target identifier and the target candidate item is greater than a preset value, the target interface corresponding to the target candidate item is displayed. For example, it is set that in a case that the target identifier completely overlaps the target candidate item, the target interface corresponding to the target candidate item is displayed.

[0079] In the display method provided by this embodiment of the present invention, the target identifier is added, and the target interface corresponding to the target candidate item is displayed in a case that the target identifier at least partially overlaps the target candidate item. In the method of this embodiment of the present invention, the target interface corresponding to the target candidate item can be only in a case that the target identifier at least partially overlaps the target candidate item, which reduces the possibility of misoperation in use by the user and improves the user experience.

[0080] Exemplarily, step 104 may specifically include the following step 104a, step 104a being performed before step 102:
Step 104a: The electronic device displays the target identifier on a first position of the screen.

[0081] In this embodiment of the present invention, the foregoing first position may be a position preset by the user. or may be a position randomly selected by a system of the electronic device.

[0082] Exemplarily, the electronic device includes a first screen and a second screen, where the second screen is a retractable screen. The displaying the target identifier on a first position of the screen may be displaying the target identifier on a central region of the first screen, or may be displaying the target identifier on a region randomly selected by the system such as an edge region of the screen.

[0083] Exemplarily, step 102 may specifically include the following step 102a:
Step 102a: The electronic device controls the screen to extend or retract, displays the candidate items, and displays the target identifier on a second position of the screen, where the first position and the second position are different.

[0084] In this embodiment of the present invention, the second position is related to the extension or retraction of the screen.

[0085] Exemplarily, the second position is related to an extension or retraction length of the screen. The electronic device receives a first input, and controls the screen to extend. If the extension length of the screen is a first length, a second position may be a position that is the first length away from the first position along an extension direction of the screen, or may be a position that is the first length away from the first position along a direction opposite to the extension direction of the screen.

[0086] Optionally, a distance between the second position and the first position and the extension length of the screen may have a preset proportion relationship. If a preset proportion is 2: 1, in a case that the extension length of the screen is the first length, the second position may be a position that is two times the first length away from the first position along the extension direction of the screen.

[0087] A correspondence between the second position and the extension or retraction length of the screen is not limited in this embodiment.

[0088] For example, with reference to FIG. 7, an electronic device with a first screen and a second screen is used as an example, where the second screen is retractable. A target identifier is displayed on an edge region on the first screen. The electronic device receives a first input from the user, controls the second screen to extend 5 cm, displays application icons, and displays the target identifier at a position (the second position in the figure) 5 cm away from the edge region. In this case, the target identifier overlaps the target application icon, and the electronic device displays an application interface corresponding to the target application icon.

[0089] Exemplarily, the second position is related to a time used for extension or retraction by the screen. A movement speed is preset to be v. The electronic device receives the first input, and controls the screen to extend. If the time used by the screen to extend by a first preset length is t, the second position may be a position that is t*v away from the first position along the extension direction of the screen.

[0090] Optionally, when calculating the distance between the second position and the first position, an average speed v2 at which the screen extends by a second preset length may be selected, and the second position may be a position that is t*v2 away from the first position along the extension direction of the screen.

[0091] A correspondence between the second position and the extension or retraction time of the screen is not limited in this embodiment.

[0092] For example, an electronic device with a first screen and a second screen is used as an example, where the second screen is retractable. A target identifier is displayed on an edge region on the first screen. The electronic device receives a first input from the user, controls the second screen to extend, and displays application icons, where a preset length is 5 cm, a preset speed is 1 cm/s, and the time used by the second screen to extend 5 cm is 2 s, and the target identifier is displayed at a position 2 cm away from the edge region. In this case, the target identifier overlaps the target application icon, and the electronic device displays an application interface corresponding to the target application icon.

[0093] In the display method provided by this embodiment of the present invention, during a process of controlling the screen to extend or retract, a position of the target identifier is changed, and a display interface corresponding to the target candidate item is displayed in a case that the target identifier at least partially overlaps the target candidate item. In the method provided by the embodiments of the present invention, the position of the target identifier is triggered to change by the extension or retraction of the screen without requiring the user to manually change the position of the target identifier, which reduces operation steps for starting the target interface and facilitates use by the user.

[0094] Exemplarily, step 102 may specifically include the following step 102b:
Step 102b: The electronic device controls the screen to extend and display a first candidate item; and display a second candidate item in a case that the extension length of the screen is greater than a first preset value.

[0095] In this embodiment, the first candidate item and the second candidate item are different, where the first candidate item and the second candidate item may be partially different, or may be totally different in contents, which is not limited in this embodiment.

[0096] Exemplarily, the contents of the first candidate item and the contents of the second candidate item are partially different, that is, the contents of the candidate items are partially updated after the extension length of the screen is greater than a first preset value. For example, after the screen is controlled to extend, the first candidate item is displayed, and the contents of the candidate items are icon 1, icon 2, icon 3, and icon 4. The first preset value is 3 cm. When the extension length of the screen is greater than 3 cm, the second candidate item is displayed and the contents of the candidate items are icon 2, icon 3, icon 4, and icon 5.

[0097] Exemplarily, the contents of the first candidate item and the contents of the second candidate item are totally different, that is, the contents of the candidate items are totally updated after the extension length of the screen is greater than a second preset value. For example, after the screen is controlled to extend, the first candidate item is displayed, and the contents of the candidate items are icon 1, icon 2, icon 3, and icon 4. The first preset value is 3 cm. When the extension length of the screen is greater than 3 cm, the second candidate item is displayed and the contents of the candidate item are icon 5, icon 6, and icon 7.

[0098] Exemplarily, step 103 may specifically include the following step 103b:
Step 103b: The electronic device displays the target interface corresponding to the target candidate item in a case that a duration during which a length of the screen remains unchanged is greater than a second preset value, where the target candidate item is a candidate item added to the second candidate item compared to the first candidate item.

[0099] In this embodiment, the duration during which a length of the screen remains unchanged is a duration during which no first input is received, and the candidate item added to the second candidate item compared to the first candidate item may be one or more.

[0100] Exemplarily, if there is one candidate item added to the second candidate item compared to the first candidate item, the added candidate item is the target candidate item, and an interface corresponding to the target candidate item is displayed in a case that the duration during which a length of the screen remains unchanged is greater than the second preset value.

[0101] Exemplarily, in an unlocking scenario, if there are a plurality of candidate items added, the plurality of candidate items are compared with the preset candidate items, and if the plurality of candidate items match the preset candidate items, the unlocked interface is displayed.

[0102] Optionally, the plurality of candidate items are not distinguished in sequence, that is, unlocking can be implemented as long as the contents of the candidate items correspond to the preset candidate items. For example, the second preset value is 2 s, and the preset candidate items are 7, 3, 5, and 1. The electronic device receives the first input, and the first candidate items displayed are 2, 4, and 6. In a case that the duration during which the screen of the electronic device remains unchanged is greater than 2 s, the contents of the second candidate items displayed are 1, 2, 3, 4, 5, 6, and 7, and the contents added to the second candidate item compared to the first candidate item are 1, 3, 5, and 7. In this case, there is a correspondence between the added candidate items and the preset candidate items, so that the electronic device is unlocked successfully and the unlocked interface is displayed.

[0103] Optionally, in a case that there are a plurality of candidate items added to the second candidate item compared to the first candidate item, the sequence of the candidate items may be determined according to a preset direction. For example, the second preset value is 2 s, the preset candidate items are 7, 3, 5, and 1, and the preset direction is the extension direction of the screen. The electronic device receives the first input, and the first candidate items displayed are 2, 4, and 6. In a case that the duration during which the screen of the electronic device remains unchanged is greater than 2 s, the contents of the second candidate items displayed are 1, 2, 3, 4, 5, 6, and 7 along the extension direction of the screen, and the contents added to the second candidate item compared to the first candidate item are 1, 3, 5, and 7. In this case, the added candidate items do not match the preset candidate items, so that the electronic device fails to unlock.

[0104] Exemplarily, in a case of displaying the application interface, if there are a plurality of candidate items added, the target interfaces corresponding to the target candidate items are displayed in a split-screen manner.

[0105] For example, in a case that there are a plurality of candidate items added to the second candidate item compared to the first candidate item, the second preset value is 2 s. The electronic device receives the first input, and the first candidate items displayed are icon 1 and icon 2. In a case that the duration during which the screen of the electronic device remains unchanged is greater than 2 s, the contents of the second candidate items displayed are icon 3 and icon 4, and the contents added to the second candidate items compared to the first candidate items are icon 3 and icon 4. In this case, the screen is split into two parts to respectively display target application interfaces corresponding to icon 3 and icon 4.

[0106] In this embodiment, in a case that the screen of the electronic device meets a certain condition, the contents of the candidate items may be updated, so that when the candidate items displayed on the screen do not include candidate items needed by a user, the displayed candidate items may be updated until the candidate items needed by the user are displayed, thereby improving user experience.

[0107] Exemplarily, the electronic device includes the first screen and the second screen, and step 102 may specifically include the following 102c:
Step 102c: The electronic device controls the second screen to extend or retract, and displays the candidate items on the first screen and moves the candidate items on the first screen, where a movement distance of the candidate items is related to an extension length or a retraction length of the second screen.

[0108] In this embodiment, the second screen is a retractable screen. It is to be noted that, in this embodiment, the first screen and the second screen may both be rigid screens, or may both be flexible screens, or may be one flexible screen and one rigid screen, which is not limited in this embodiment.

[0109] In this embodiment, the second screen may be controlled to extend or retract, and the candidate items may be displayed and moved on the first screen. Alternatively, the candidate items may be displayed on the first screen first, and then the candidate items may be moved after controlling the second screen to extend or retract. Alternatively, the second screen may be controlled to extend or retract after the first input is received, and the candidate items may be displayed and moved simultaneously. A sequence of extending or retracting the second screen and displaying the candidate items is not limited in this embodiment.

[0110] In this embodiment, the second screen may be extended or retracted, where the movement distance of the candidate item is related to the extension length or retraction length of the second screen. In a case that the second screen is extended, the candidate items may be moved along the extension direction of the screen, and in a case that the second screen is retracted, the candidate items may be moved along the retraction direction of the screen. Alternatively, in a case that the second screen is extended, the candidate items may be moved along a direction opposite the extension direction of the screen, and in a case that the second screen is retracted, the candidate items may be moved along a direction opposite the retraction direction of the screen. A movement direction of the candidate items is not limited in this embodiment.

[0111] In this embodiment, the movement distance of the candidate items is related to the extension length or the retraction length of the second screen. The movement distance of the candidate items may be equal to the extension length or the retraction length of the second screen. Alternatively, there may be a proportion of the movement distance of the candidate items to the extension length or the retraction length of the second screen.

[0112] For example, the electronic device receives a first input, and controls the second screen to extend. The candidate items are displayed on the edge on the first screen. If an obtained extension length of the second screen is 3 cm, the candidate items are moved by 3 cm along the extension direction of the second screen.

[0113] Optionally, the electronic device receives a first input, and controls the second screen to extend. The candidate items are displayed and moved on the first screen, where an extension speed of the second screen and a movement speed of the candidate items are the same.

[0114] For example, a preset proportion is set to be 2:1. The electronic device receives a first input, and controls the second screen to extend. The candidate items are displayed on the edge of the first screen. If an obtained extension length of the second screen is 3 cm, the candidate items are moved by 1.5 cm along the extension direction of the second screen.

[0115] Optionally, a preset proportion is set to be 2:1. The electronic device receives a first input, and controls the second screen to extend. The candidate items are displayed and moved on the first screen. If an extension speed of the second screen is 2 cm/s, and a movement speed of the candidate items is 1 cm/s.

[0116] Exemplarily, the electronic device includes a first screen and a second screen, and step 103 may specifically include the following step 103c:
Step 103c: The electronic device displays a target interface corresponding to the target candidate item in the candidate items in a case that the target candidate item at least partially overlaps a target region of the first screen.

[0117] In this embodiment, the target region may be a preset region, or may be a region determined by the user through a touch input on the screen after the candidate items are displayed. The shape of the target region may be any shape, such as a square and a circle, and the size of the target region may be made according to needs of the user.

[0118] Exemplarily, as shown in FIG. 8, the preset region is a circular region located on the first screen. The electronic device receives the first input, and controls the second screen to extend. The candidate items are displayed on the first screen and moved along the extension direction of the second screen. In a case that the circular region on the central first screen at least partially overlaps the target candidate item, an interface corresponding to the target candidate item is displayed.

[0119] Optionally, it may be set that a display interface corresponding to the target candidate item is displayed in a case that an overlapping area of the target candidate item and the target region is greater than a preset value.

[0120] Optionally, a preset region may at least partially overlap a plurality of candidate items, that is, there are a plurality of target candidate items. For example, in an unlocking scenario, the preset candidate items are 1, 2 and 3. The electronic device receives a first input, and controls the second screen to extend. Numbers 1, 2, 3, 4, 5, and 6, namely the candidate items, are displayed on the first screen, and the candidate items are moved along an extension direction of the second screen. In a case that the circular region of the central first screen at least partially overlaps 1, 2, and 3, the target candidate items are 1, 2, and 3, and if the target candidate items 1, 2, and 3 match the preset candidate items, the electronic device displays the unlocked interface.

[0121] Optionally, in a case that the plurality of target candidate items at least partially overlap a preset region, a sequence of the target candidate items may be determined according to a preset rule.

[0122] For example, in a scenario of starting an application interface, the electronic device receives a first input, and controls the second screen to extend. Icon 1, icon 2, icon 3, and icon 4, namely the candidate items, are displayed on the first screen, and the candidate items are moved along an extension direction of the second screen. In a case that the circular region of the central first screen at least partially overlaps icon 1 and icon 2, the target candidate items are icon 1 and icon 2, and the electronic device displays display interfaces corresponding to the icon 1 and the icon 2 in a split-screen manner.

[0123] In this embodiment, the electronic device includes a first screen and a second screen, where the second screen is a retractable screen, and candidate items may be moved according to an extension or a retraction of the second screen. In a case that a target region matches a target candidate item, a display interface corresponding to the target candidate item is displayed. By applying the method provided by the embodiment, a plurality of target candidate items may be selected, the use scenarios of the user may be increased, and a quick unlocking may be implemented or a plurality of applications may be started, thereby improving user experience.

[0124] It is to be noted that, in the embodiments of the present invention, the display methods shown in the foregoing accompany drawings are all illustratively described by taking an accompany drawing in the embodiments of the present invention as an example. In a specific implementation, the display methods shown in the foregoing accompany drawings may alternatively be implemented in combination with any other accompany drawings shown in the foregoing embodiments that can be combined, and details are not described herein again.

[0125] As shown in FIG. 9, an embodiment of the present invention provides an electronic device 900. The electronic device may include a receiving module 901, a responding module 902, and a first display module 903. The receiving module 901 may be configured to receive a first input. The responding module 902 may be configured to control the screen to extend or retract and display candidate items in response to the first input received by the receiving module 901. The first display module 903 may be configured to display a target interface corresponding to a target candidate item in the candidate items in a case that the target candidate item meets a preset condition.

[0126] Optionally, with reference to FIG. 9, as shown in FIG. 10, the electronic device provided by the embodiments of the present invention may further include a second display module 904. The second display module 904 may be configured to display a target identifier. The first display module 903 may further be configured to display the target interface corresponding to the target candidate item in the candidate items in a case that the target identifier at least partially overlaps the target candidate item.

[0127] Optionally, the second display module 904 may specifically be configured to display the target identifier on a first position of the screen before the first input is received. The first display module 903 may further be configured to control the screen to extend or retract, display the candidate items, and display the target identifier on a second position of the screen.

[0128] The first position and the second position are different.

[0129] Optionally, the first display module 903 may further be configured to control the screen to extend and display a first candidate item. The first display module 903 may further be configured to display a second candidate item, in a case that an extension length of the screen is greater than a first preset value. The second display module 904 may further be configured to display the target interface corresponding to the target candidate item in a case that a duration during which a length of the screen remains unchanged is greater than a second preset value, where the target candidate item is a candidate item added to the second candidate item compared to the first candidate item.

[0130] Optionally, the electronic device further includes a first screen and a second screen. The first display module 903 is further configured to control the second screen to extend or retract, and display candidate items on the first screen and move the candidate items on the first screen, where a movement distance of the candidate items is related to an extension length or retraction length of the second screen. The second display module 904 is further configured to display a target interface corresponding to the target candidate item in the candidate items in a case that the target candidate item at least partially overlaps a target region of the first screen.

[0131] The electronic device provided by this embodiment of the present invention can implement various processes implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.

[0132] This embodiment of the present invention provides an electronic device. On one hand, in a case that a target candidate item is used for unlocking, the target candidate item is obtained, and when the target candidate item matches a preset candidate item, the unlocking is finished, so that the unlocking may be finished during an expansion and retraction process of the screen, which reduces a consumed time for unlocking the electronic device with the screen retractable in length or width, and increases the unlocking fun. On the other hand, in a case that the target candidate item is used for indicating an entry of an application or a shortcut function, after the target candidate item is obtained, an application interface or a shortcut function interface corresponding to the target candidate item may be started, so that a function of entering the application interface during an extension process of the first screen may be implemented, which reduces a consumed time for starting an application of the electronic device with the screen retractable in length or width, and increases the fun, thereby improving user experience.

[0133] FIG. 11 is a schematic diagram of a hardware structure of an electronic device that implements the embodiments of the present invention. As shown in FIG. 11, the electronic device 200 includes but is not limited to: components such as a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, a memory 209, a processor 210, and a power supply 211. A person skilled in the art may understand that the structure of the electronic device shown in FIG. 11 constitutes no limitation on the electronic device, and the electronic device may include more or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used. In the embodiments of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, a pedometer, or the like.

[0134] The processor 210 is configured to receive a first input, and control a screen to extend or retract in response to the first input, and is further configured to control the display unit 206 to display candidate items. In a case that a target candidate item in the candidate items meets a preset condition, the processor 210 is further configured to control the display unit 206 to display a target interface corresponding to the target candidate item.

[0135] The processor 210 is further configured to control the display unit 206 to display a target identifier. In a case that the target identifier at least partially overlaps the target candidate item in the candidate items, the processor 210 is further configured to control the display unit 206 to display the target interface corresponding to the target candidate item.

[0136] The processor 210 is further configured to control the screen to extend or retract in response to the first input, and control the display unit 206 to display the target identifier on a first position of the screen before the candidate items are displayed. The processor 210 is further configured to control the screen to extend or retract, control the display unit 206 to display the candidate items, and display the target identifier on a second position of the screen. The first position and the second position are different.

[0137] The processor 210 is further configured to control the screen to extend, and control the display unit 206 to display a first candidate item in a case that an extension length of the screen is less than a first preset value; and control the display unit 206 to display a second candidate item in a case that the extension length of the screen is greater than the first preset value. In a case that a duration during which a length of the screen remains unchanged is greater than a second preset value, the processor 210 is further configured to control the display unit 206 to display the target interface corresponding to the target candidate item, where the target candidate item is a candidate item added to the second candidate item compared to the first candidate item.

[0138] For an electronic device with a first screen and a second screen, the processor 210 is further configured to control the second screen to extend or retract, and control to display the candidate items on the first screen and move the candidate items on the first screen, where a distance of the candidate items is related to an extension length of the second screen or a retraction length of the second screen.

[0139] The processor 210 is further configured to control the display unit 206 to display the target interface corresponding to the target candidate item in the candidate items in a case that the target candidate item overlaps a target region of the first screen.

[0140] This embodiment of the present invention provides an electronic device. On one hand, in a case that a target candidate item is used for unlocking, the target candidate item is obtained, and when the target candidate item matches a preset candidate item, the unlocking is finished, so that the unlocking may be finished during an expansion and retraction process of the screen, which reduces a consumed time for unlocking the electronic device with the retractable flexible screen, and increases the unlocking fun. On the other hand, in a case that the target candidate item is used for indicating an entry of an application or a shortcut function, after the target candidate item is obtained, an application interface or a shortcut function interface corresponding to the target candidate item may be started, so that a function of entering the application interface during an extension process of the first screen may be implemented, which reduces a consumed time for starting an application of the electronic device with the flexible screen, and increases the fun, thereby improving user experience.

[0141] It is to be understood that, in this embodiment of the present invention, the radio frequency unit 201 may be configured to transmit and receive information or transmit and receive signals during a call. Specifically, the radio frequency unit 201 is configured to receive downlink data from a base station and transmit downlink data to the processor 210 for processing. In addition, the radio frequency unit 201 transmits uplink data to the base station. Generally, the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 may further communicate with another device through a wireless communication system and a network.

[0142] The electronic device provides wireless broadband Internet access for a user by using the network module 202, for example, allowing the user to send and receive emails, browse webpages, access streaming media content, and the like.

[0143] The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored on the memory 209 into audio signals and output the audio signals as sounds. In addition, the audio output unit 203 may further provide audio output (for example, a call signal reception sound or a message reception sound) related to a specific function performed by the electronic device 200. The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like

[0144] The input unit 204 is configured to receive an audio or video signal. The input unit 204 may include a graphics processing unit (Graphics Processing Unit, GPU) 2041 and a microphone 2042. The graphics processing unit 2041 performs processing on image data of a static picture or a video acquired by an image acquisition device (for example, a camera) in a video acquisition mode or an image acquisition mode. The processed image frame can be displayed on the display unit 206. An image frame processed by the graphics processing unit 2041 may be stored in the memory 209 (or another storage medium) or sent by using the radio frequency unit 201 or the network module 202. The microphone 2042 may receive a sound and can process such a sound into audio data. The processed audio data may be converted, in a phone call mode, into a format that may be sent by the radio frequency unit 201 to a mobile communication base station.

[0145] The electronic device 200 further includes at least one sensor 205 such as an optical sensor, a motion sensor, or another sensor. Specifically, the optical sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of a display panel 2061 according to brightness of the ambient light. The proximity sensor may switch off the display panel 2061 and/or backlight when the electronic device 200 is moved to the ear. As a type of motion sensor, an acceleration sensor can detect magnitudes of accelerations in various directions (generally, on three axes), may detect a magnitude and a direction of the gravity in a static state, and may be applied to recognizing an altitude of the electronic device (for example, switching between a landscape state and a portrait state, a related game, and magnetometer attitude calibration), a function related to vibration recognition (such as a pedometer and a knock), and the like. The sensor 205 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein in detail.

[0146] The display unit 206 is configured to display information inputted by the user or information provided for the user. The display unit 206 may include a display panel 2061. The display panel 2061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

[0147] The user input unit 207 may be configured to receive input digit or character information, and generate a keyboard signal input related to the user setting and function control of the electronic device. Specifically, the user input unit 207 includes a touch panel 2071 and another input device 2072. The touch panel 2071, which is also referred to as a touch screen, may collect a touch operation of the user on or near the touch panel (for example, an operation of the user on or near the touch panel 2071 by using any suitable object or attachment, such as a finger or a stylus). The touch panel 2071 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch orientation of the user, detects a signal brought by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into touch point coordinates, and transmits the touch point coordinates to the processor 210. In addition, the touch controller receives a command transmitted by the processor 210 and executes the command. In addition, the touch panel 2071 may be implemented by using various types, such as a resistive type, a capacitance type, an infrared type, and a surface acoustic wave type. In addition to the touch panel 2071, the user input unit 207 may further include the another input device 2072. Specifically, the another input device 2072 may include, but is not limited to, a physical keyboard, a functional key (for example, a volume control key or a switch key), a track ball, a mouse, and a joystick, and the details will not be described herein again.

[0148] Further, the touch panel 2071 may cover the display panel 2061. After detecting a touch operation on or near the touch panel, the touch panel 2071 transfers the touch operation to the processor 210, to determine a type of a touch event. Then, the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. In FIG. 11, the touch panel 2071 and the display panel 2061 implement, as two independent parts, input and output functions of the electronic device. However, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the electronic device. The details are not limited herein.

[0149] The interface unit 208 is an interface for connecting an external apparatus and the electronic device 200. For example, the external apparatus may include a wired or wireless headset port, an external power supply (or a battery charger) port, a wired or wireless data port, a storage card port, a port used to connect an apparatus having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be configured to receive inputs (for example, data information, or power) from the external apparatus and transmit the received input to one or more elements in the electronic device 200, or may be configured to transmit data between the electronic device 200 and the external apparatus.

[0150] The memory 209 may be configured to store a software program and various data. The memory 209 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application required by at least one function (for example, a sound playback function and an image display function), and the like. The data storage area may store data (for example, audio data and a phone book) created according to the use of the mobile phone. In addition, the memory 209 may include a high speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory, or another non-volatile solid state storage device.

[0151] The processor 210 is a control center of the electronic device, and connects to various parts of the electronic device by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 209, and invoking data stored in the memory 209, the processor performs various functions and data processing of the electronic device, thereby performing overall monitoring on the electronic device. Optionally, the processor 210 may include one or more processing units. Optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It may be understood that the modem processor may alternatively not be integrated into the processor 210.

[0152] The electronic device 200 further includes a power supply 211 (such as a battery) for supplying power to the components. Optionally, the power supply 211 may be logically connected to the processor 210 by using a power management system, thereby implementing functions such as charging, discharging, and power consumption management by using the power management system.

[0153] In addition, the electronic device 200 includes some functional module that are not shown, which are not described herein in detail.

[0154] Optionally, the embodiments of the present invention further provide an electronic device, including a processor 210, a memory 209, and a computer program shown in FIG. 11, where the computer program is stored in the memory 209 and runnable on the processor 210. The computer program, when executed by the processor 210, implements each process of the foregoing method embodiment, and same technical effects can be achieved. To avoid repetition, the details are not described herein again.

[0155] The embodiments of the present invention further provide a computer-readable storage medium, storing a computer program. The computer program, when executed by a processor, implements each process of the foregoing method embodiments, and the same technical effect can be achieved. To avoid repetition, the details are not described herein again. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.

[0156] It is to be noted that the term "comprise", "include" or any other variation thereof in this specification is intended to cover a non-exclusive inclusion, so that a process, method, object or apparatus including a series of elements not only includes those elements, but also includes other elements not clearly listed or includes intrinsic elements for the process, method, object or apparatus. Without more limitations, elements defined by a sentence "including a..." does not exclude that there are still other same elements in the process, method, object, or apparatus.

[0157] Through the descriptions of the foregoing implementations, a person skilled in the art may clearly understand that the method according to the foregoing embodiments may be implemented by software and a necessary general hardware platform, and certainly, may alternatively be implemented by hardware, but in many cases, the former manner is a better implementation. Based on such understanding, the technical solutions of the present invention essentially, or the part contributing to the related art, may be presented in the form of a software product. The computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, or an optical disk), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to perform the methods described in the embodiments of the present invention.

[0158] The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the foregoing specific embodiments, which are merely illustrative rather than limited. Under the inspiration of the present invention, a person of ordinary skill in the art can make many forms without departing from the scope of the present invention and the protection of the claims, all of which fall within the protection of the present invention.


Claims

1. A display method, applied to an electronic device, wherein the electronic device comprises a screen retractable in length or width; the method comprising:

receiving a first input;

controlling the screen to extend or retract and displaying a candidate item in response to the first input; and

displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition.


 
2. The method according to claim 1, wherein before the displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition, the method comprises:

displaying a target identifier; and

the displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition comprises:
displaying the target interface corresponding to the target candidate item in the candidate item in a case that the target identifier at least partially overlaps the target candidate item.


 
3. The method according to claim 2, wherein the displaying a target identifier comprises:

displaying the target identifier on a first position of the screen before the controlling the screen to extend or retract and displaying a candidate item in response to the first input; and

the controlling the screen to extend or retract and displaying a candidate item comprises:

controlling the screen to extend or retract, displaying the candidate item, and displaying the target identifier on a second position of the screen,

wherein the first position and the second position are different.


 
4. The method according to claim 1, wherein the controlling the screen to extend and displaying a candidate item comprises:

controlling the screen to extend;

displaying a first candidate item in a case that an extension length of the screen is less than a first preset value; and

displaying a second candidate item in a case that the extension length of the screen is greater than the first preset value; and

the displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition comprises:
displaying the target interface corresponding to the target candidate item in a case that a duration during which a length of the screen remains unchanged is greater than a second preset value, wherein the target candidate item is a candidate item added to the second candidate item compared to the first candidate item.


 
5. The method according to claim 1, wherein the electronic device comprises a first screen and a second screen, the controlling the screen to extend or retract and displaying a candidate item comprises:

controlling the second screen to extend or retract, and displaying the candidate item on the first screen, display a position of the candidate item on the first screen changing as an extension length or a retraction length of the second screen changes; and

the displaying a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition comprises:
displaying the target interface corresponding to the target candidate item in the candidate item in a case that the target candidate item at least partially overlaps a target region of the first screen.


 
6. An electronic device, wherein the electronic device comprises a screen retractable in length or width, and the electronic device further comprises:

a receiving module, configured to receive a first input;

a responding module, configured to control the screen to extend or retract and display a candidate item; and

a first display module, configured to display a target interface corresponding to a target candidate item in the candidate item in a case that the target candidate item meets a preset condition.


 
7. The electronic device according to claim 6, further comprising:

a second display module, configured to display a target identifier, wherein

the first display module is further configured to display the target interface corresponding to the target candidate item in the candidate item in a case that the target identifier at least partially overlaps the target candidate item.


 
8. The electronic device according to claim 7, wherein the second display module is further configured to display the target identifier on a first position of the screen before the controlling the screen to extend or retract and displaying candidate items in response to the first input; and

the first display module is further configured to control the screen to extend or retract, display the candidate items, and display the target identifier on a second position of the screen,

wherein the first position and the second position are different.


 
9. The electronic device according to claim 6, wherein

the first display module is further configured to control the screen to extend;

display a first candidate item in a case that an extension length of the screen is less than a first preset value; and

display a second candidate item in a case that the extension length of the screen is greater than the first preset value; and

the second display module is further configured to display the target interface corresponding to the target candidate item in a case that a duration during which a length of the screen remains unchanged is greater than a second preset value, wherein the target candidate item is a candidate item added to the second candidate item compared to the first candidate item.


 
10. The electronic device according to claim 6, further comprising a first screen and a second screen, wherein

the first display module is further configured to control the second screen to extend or retract, and display the candidate items on the first screen and move the candidate items on the first screen, wherein a movement distance of the candidate items is related to an extension length or a retraction length of the second screen; and

the second display module is further configured to display the target interface corresponding to the target candidate item in the candidate item in a case that the target candidate item at least partially overlaps a target region of the first screen.


 
11. An electronic device, comprising a processor, a memory, and a computer program stored in the memory and runnable in the processor, wherein the computer program, when executed by the processor, implements the steps of the display method according to any one of claims 1 to 5.
 
12. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by the processor, implements the steps of the display method according to any one of claims 1 to 5.
 
13. A computer program product, wherein the computer program product is executed by at least one processor to implement the display method according to any one of claims 1 to 5.
 
14. An electronic device, configured to execute the display method according to any one of claims 1 to 5.
 




Drawing



















Search report













Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description