Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
An interface display method and an interface display apparatus provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an embodiment of the present application provides an interface display method, where the method includes:
and 101, under the condition that the folding angle of the foldable display screen is enlarged, enlarging the area of an input method program interface, wherein the enlarged input method program interface comprises an expanded display area.
In the embodiment of the present application, the foldable display screen is a display screen that can be bent, and when the foldable display screen is applied to an electronic device such as a mobile phone or a tablet, the electronic device can be folded to reduce the size of the display screen, or the folded display screen is unfolded to increase the size of the display screen. Foldable display screens usually comprise two display screens connected by a connecting shaft, the folding angle being the angle between the two display screens. The input method program interface refers to a program interface of an input method application program, and the input method application program is a coding application program adopted when a user inputs symbols into the electronic equipment.
It can be understood that when the folding angle of the foldable display screen is increased, the user may observe that the size of the foldable display screen is increased when the folding angle is smaller than the previous size, at this time, the screen display area available for the original input method program interface is also correspondingly increased, at this time, the area of the input method program interface may also be adapted to the increased display screen of the foldable display screen to be increased, and at this time, a part of the display area in the increased input method program interface may be displayed as an extended display area.
Exemplarily, referring to fig. 2, one of the effect diagrams of an interface display method provided by the embodiment of the present application is shown, wherein, the input method program interface before the folding angle of the foldable display screen is increased only comprises the original function display area of the input program earphone, referring to fig. 3, a second effect schematic diagram of the interface display method provided by the embodiment of the present application is shown, wherein, the input method program interface after the folding angle of the foldable display screen is enlarged is visible, because the foldable display screen is unfolded, the size of the foldable display screen is obviously increased relative to that before the foldable display screen is unfolded, the area of the input method program interface is correspondingly increased at the moment, the input method program interface is expanded and displayed to the width of the whole display screen, and a part of display area on the right side of the expanded input method program interface can be used as an expanded display area for subsequent display. Of course, the above is only an exemplary illustration, specifically, after the foldable display screen is unfolded, the manner of inputting the increased area of the program interface may be further extended to the width of three-fourths of the display screen, and the position of the display extension area may be on the left side, the upper side, or the lower side in the input method program interface, and may be specifically determined according to the actual requirement, taking the realizability of the present solution as a reference, and the present solution is not limited herein.
And 102, collecting input contents of a user in the input method program interface.
In the embodiment of the application, the input content refers to content input by a user through an input method program interface, and the user adds required input content to chat, notebook, mail and other types of application programs through the input method program interface. The input content of the user in the input method program interface can be collected at the moment.
Step 103, acquiring the associated content of the input content.
In this embodiment of the application, the associated content refers to content of text, image, audio, video, audio and video, website link, and other types having a content corresponding relationship with the input content, and the content corresponding relationship may be preset, for example, if the input content is "traffic congestion at night", the corresponding associated content may be set as "coming back at night", and the content corresponding relationship may also be a content corresponding relationship automatically established according to a content corresponding rule, for example: the matching can be performed in the database according to the input content, the matched content is used as the associated content, or the data of types such as artistic words and the like are automatically generated according to the input content, and the corresponding relation between the data and the input content is established and used as the associated content of the input content. The determination method of the associated content of the input content may be determined according to actual requirements, as long as richer content can be provided to the user, and is not limited herein.
And 104, displaying the related content of the input content in the expanded display area.
In the embodiment of the application, by means of the extended display area of the input method program interface and along with the change of the input content, the content in the extended display area can be changed correspondingly, so that a user can acquire richer content when inputting through the input method program interface.
According to the interface display method provided by the embodiment of the application, the screen enlarged by the foldable screen is used for displaying the larger input method program interface, and the related content of the input content of the user is displayed in the expanded display area in the input method program interface, so that the user can obtain richer content when using the input method application program through the foldable screen.
Referring to fig. 4, an embodiment of the present application provides another interface display method, where the method includes:
step 201, under the condition that the folding angle of the foldable display screen is larger than the folding angle threshold, expanding the area of an input method program interface, wherein the expanded input method program interface comprises an expanded display area.
In the embodiment of the present application, the folding angle threshold refers to a minimum angle for determining whether the folding angle of the foldable screen is increased, for example, 90 °, 100 °, 110 °, and the like, and may be specifically determined according to actual requirements, which is not limited herein. The specific angle of the folding angle may be detected by a screen sensor mounted on the electronic device, as long as the angle of the folding angle can be obtained, and is not limited herein. According to the embodiment of the application, whether the foldable display screen needs to display the expanded display area or not is judged according to the angle of the folding angle, so that the input method application program interface can be accurately suitable for area adjustment when the folding angle of the foldable screen is increased.
Step 202, collecting the input content of the user in the input method program interface.
This step may be described in detail with reference to step 102, which is not limited herein.
And 203, under the condition that the input method program interface is associated with the first program interface, searching in a target website according to the input content, and taking a keyword of a search result as associated content.
In this embodiment of the application, the first program interface may be, for example, a document making, notebook, chat, or other type application program, may be preset by a system, or may be set by a user, and may be determined specifically according to an actual requirement, which is not limited herein. The target website is a website providing a search service function, and may be specifically preset by a system or set by a user. When a user needs to input symbols in an application program interface, the input column of the application program interface can be selected, so that the input method program interface is opened to be associated with the application program, and the user can input symbols in the application program through the input program interface.
The search result matched with the input content can be acquired by searching in the target website according to the input content of the user, but because the content of the search result is possibly more and cannot be completely displayed in the expanded display area, the user can know the condition of the search result by generating the keywords of the search result and displaying the keywords in the expanded display area.
According to the method and the device, the search is carried out in the search website according to the input content, and the keyword for generating the search result is displayed, so that the user can obtain more contents related to the input content when inputting through the input method program interface, and the richness of the information obtained by the user through the input method program interface is improved.
And 204, under the condition that the input method program interface is associated with the second program interface, acquiring the user common content as associated content according to the input content.
In the embodiment of the present application, the second program interface is similar to the first program interface instep 204, and is not described herein again to avoid repetition. The difference between the second program interface and the first program interface is mainly that the second program interface displays user common content, where the user common content refers to content that the user will continue to input with high probability after inputting the input content, for example: the expression package, the phrase and the like can be obtained by analyzing and counting according to the historical input content of the user.
According to the method and the device, the user common content is displayed in the expanded display area in the input program interface, so that the user can acquire the required associated content more conveniently and more conveniently, and the input efficiency of the user is improved.
And step 205, displaying the related content of the input content in the extended display area.
This step can refer to the detailed description ofstep 104, which is not repeated here.
Step 206, receiving a first input of the associated content from the user.
In the embodiment of the present application, the first input may be an input in the form of a click, a long press, a swipe, a gesture, a voice, and the like of the user corresponding to the associated content.
And step 207, responding to the first input, and displaying the search result relative to the associated content in the expanded display area.
In the embodiment of the application, if the keyword of the search result of the associated content displayed in the expanded display area is used, the user can further specifically view the search result corresponding to the associated content in the expanded display area by performing the first input on the required associated content.
According to the method and the device for displaying the search results, the search results corresponding to the associated contents are displayed according to the first input of the user to the associated contents, so that the user can more conveniently and quickly go to the information related to the input contents.
Illustratively, referring to fig. 5, in the case where the user input content is "patent", a keyword of the search result corresponding to "patent" is displayed in the extended display area on the right side, and the user may jump to fig. 6 by clicking the keyword "patent", that is, the detailed content of the search result corresponding to the keyword is displayed in the extended display area
Step 208, receiving a second input of the search result from the user.
In this embodiment, the second input may be an input in the form of a click, a long press, a swipe, a gesture, a voice, and the like of the user corresponding to the associated content.
Step 209, adding the search result in an input field of the input program interface in response to the second input.
In the embodiment of the application, the displayed search result may be the content required by the user, but if the user manually inputs the search result, the time is consumed, and the error is easy to occur, so the scheme also provides a copy function, namely, the user can automatically copy and add the search result to the input field by performing second input on the search result, so that the user can efficiently use the search result related to the input content when inputting through the input method program interface.
And 210, receiving a third input of the target data option in the expanded display area from the user.
In this embodiment, the third input may be an input in the form of a click, a long press, a swipe, a gesture, a voice, and the like of the user corresponding to the associated content. The target data option refers to a function option associated with the target data.
Step 211, in response to the third input, displaying the target content corresponding to the target data option in the extended display area.
In the embodiment of the present application, the target content refers to content associated with a third input of the user, for example, referring to fig. 7, the target function option may be a symbolic function option, that is, a menu that can be opened for use, or referring to fig. 8, the target function option may be an emoticon function option, that is, a emoticon menu that can be opened for use. The method and the device for inputting the content provide the target function options for the user to open the required content for use, and flexibility of an input method program interface is improved.
And 212, closing the extended display area to reduce the area of the input method program interface under the condition that the folding angle of the foldable display screen is smaller than or equal to a folding angle threshold value.
In this embodiment, if the folding angle of the foldable display screen is smaller than or equal to the folding angle threshold, it is determined that the folding angle of the foldable display screen is not increased, and at this time, the extended display area is being displayed, and the display of the extended display area may be stopped, so as to reduce the area of the input program interface.
According to the other interface display method provided by the embodiment of the application, a larger input method program interface is displayed by utilizing the expanded screen of the foldable screen, and the related content of the input content of the user is displayed in the expanded display area in the input method program interface, so that the user can obtain richer content when using the input method application program through the foldable screen. And the flexibility of the input method program interface is improved by providing target function options for users to open the required content for use. And the user common content is displayed in the expanded display area in the input program interface, so that the user can more conveniently acquire the required associated content, and the input efficiency of the user is improved. And the search is carried out in the search website according to the input content, and the keyword for generating the search result is displayed, so that the user can acquire more contents related to the input content when inputting through the input method program interface, and the richness of the information acquired by the user through the input method program interface is improved.
It should be noted that, in the interface display method provided in the embodiment of the present application, the execution main body may be an interface display device, or a control module used for executing the interface display method in the interface display device. In the embodiment of the present application, an example in which an interface display apparatus executes a method for displaying a loading interface is taken to describe the method for displaying an interface provided in the embodiment of the present application.
Referring to fig. 9, an embodiment of the present application further provides a block diagram of aninterface display device 30, where the interface display device includes:
thefirst display module 301 is configured to expand an area of the input method program interface when a folding angle of the foldable display screen is increased, where an expanded display area is included in the expanded input method program interface.
Theacquisition module 302 is used for acquiring input contents of a user in the input method program interface;
an obtainingmodule 303, configured to obtain associated content of the input content;
asecond display module 304, configured to display the associated content of the input content in the extended display area.
Optionally, the obtainingmodule 303 is further configured to:
and under the condition that the input method program interface is associated with the first program interface, searching in a target website according to the input content, and taking the keywords of the search result as associated content.
Optionally, thesecond display module 304 is further configured to:
receiving a first input of the associated content by a user;
in response to the first input, displaying search results relative to the associated content in the expanded display area.
Optionally, thesecond display module 304 is further configured to:
receiving a second input of the search result from the user;
in response to the second input, adding the search result in an input field of the input program interface.
Optionally, the obtainingmodule 303 is further configured to:
and under the condition that the input method program interface is associated with the second program interface, acquiring user common content as associated content according to the input content.
Optionally, thesecond display module 304 is further configured to:
receiving a third input of a user for a target data option in the expanded display area;
in response to the third input, displaying target content corresponding to the target data option in the expanded display area.
Optionally, thefirst display module 301 is further configured to:
confirming that the folding angle of the foldable display screen becomes large in a case where the folding angle of the foldable display screen is greater than a folding angle threshold value.
Optionally, thefirst display module 301 is further configured to:
and closing the extended display area to reduce the area of the input method program interface under the condition that the folding angle of the foldable display screen is smaller than or equal to the folding angle threshold value.
According to the interface display device provided by the embodiment of the application, the screen enlarged by the foldable screen is used for displaying the larger input method program interface, and the related content of the input content of the user is displayed in the expanded display area in the input method program interface, so that the user can obtain richer content when using the input method application program through the foldable screen.
The interface display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The interface display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The interface display device provided in the embodiment of the present application can implement each process implemented by the interface display device in the method embodiments of fig. 1 to 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, anelectronic device 400 is further provided in this embodiment of the present application, and includes aprocessor 401, amemory 402, and a program or an instruction stored in thememory 402 and executable on theprocessor 401, where the program or the instruction is executed by theprocessor 401 to implement each process of the above-mentioned embodiment of the interface display method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Theelectronic device 500 includes, but is not limited to: a radio frequency unit 501, anetwork module 502, anaudio output unit 503, aninput unit 504, asensor 505, adisplay unit 506, auser input unit 507, aninterface unit 508, amemory 509, aprocessor 510, and the like.
Those skilled in the art will appreciate that theelectronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to theprocessor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Thedisplay unit 506 is configured to expand the area of the input method program interface when the folding angle of the foldable display screen is increased, where the expanded input method program interface includes an expanded display area;
aprocessor 510, configured to collect input content of a user in the input method program interface;
acquiring the associated content of the input content;
thedisplay unit 506 is further configured to display the associated content of the input content in the extended display area.
According to the embodiment of the application, the larger input method program interface is displayed by utilizing the expanded screen of the foldable screen, and the related content of the input content of the user is displayed in the expanded display area in the input method program interface, so that the user can obtain richer content when using the input method application program through the foldable screen.
Optionally, theprocessor 510 is further configured to:
and under the condition that the input method program interface is associated with the first program interface, searching in a target website according to the input content, and taking the keywords of the search result as associated content.
Auser input unit 507 for:
receiving a first input of the associated content by a user;
thedisplay unit 506 is further configured to display a search result corresponding to the associated content in the expanded display area in response to the first input.
Optionally, theuser input unit 507 is further configured to: receiving a second input of the search result from the user;
processor 510, further configured to add the search result in an input field of the input program interface in response to the second input.
Optionally, theprocessor 510 is further configured to:
and under the condition that the input method program interface is associated with the second program interface, acquiring user common content as associated content according to the input content.
Optionally, theinput unit 507 is further configured to receive a third input of the user for a target data option in the extended display area;
adisplay unit 506, further configured to display, in response to the third input, the target content corresponding to the target data option in the extended display area.
Optionally, theprocessor 510 is further configured to:
confirming that the folding angle of the foldable display screen becomes large in a case where the folding angle of the foldable display screen is greater than a folding angle threshold value.
Optionally, thedisplay unit 506 is further configured to:
and closing the extended display area to reduce the area of the input method program interface under the condition that the folding angle of the foldable display screen is smaller than or equal to the folding angle threshold value.
The scheme also improves the flexibility of the input method program interface by providing target function options for the user to open the required content for use. And the user common content is displayed in the expanded display area in the input program interface, so that the user can more conveniently acquire the required associated content, and the input efficiency of the user is improved. And the search is carried out in the search website according to the input content, and the keyword for generating the search result is displayed, so that the user can acquire more contents related to the input content when inputting through the input method program interface, and the richness of the information acquired by the user through the input method program interface is improved.
It should be understood that in the embodiment of the present application, theinput Unit 504 may include a Graphics Processing Unit (GPU) 5041 and amicrophone 5042, and theGraphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. Thedisplay unit 506 may include adisplay panel 5061, and thedisplay panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Theuser input unit 507 includes a touch panel 5071 andother input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller.Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. Thememory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the interface display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the interface display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.