CN108984062B - A content display method and terminal - Google Patents
A content display method and terminal Download PDFInfo
- Publication number
- CN108984062B CN108984062B CN201810670295.1A CN201810670295A CN108984062B CN 108984062 B CN108984062 B CN 108984062B CN 201810670295 A CN201810670295 A CN 201810670295A CN 108984062 B CN108984062 B CN 108984062B
- Authority
- CN
- China
- Prior art keywords
- area
- content
- display area
- displayed
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种内容显示方法、终端。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a content display method and a terminal.
背景技术Background technique
随着科学技术的飞速发展,出现了各种各样的终端,例如,智能手机、平板电脑等。通常,这些终端中均包含显示屏,显示屏可以在用户的触摸操作下显示不同的内容。With the rapid development of science and technology, various terminals have appeared, such as smart phones, tablet computers, etc. Usually, these terminals all contain a display screen, and the display screen can display different contents under the user's touch operation.
为了便于用户使用,终端针对显示屏提供了多个快捷操作,当终端检测到用户对显示屏执行快捷操作时,可以在显示屏中显示特定的内容。例如,在显示屏显示的情况下,当终端检测到用户在屏幕上边缘位置执行向下滑动操作时,可以显示通知栏。In order to facilitate the user to use, the terminal provides a plurality of shortcut operations for the display screen. When the terminal detects that the user performs a shortcut operation on the display screen, it can display specific content on the display screen. For example, when the display screen is displayed, when the terminal detects that the user performs a downward swipe operation on the upper edge of the screen, a notification bar can be displayed.
然而,在实际应用中,终端根据检测到的快捷操作显示特定内容时,显示效果不佳。However, in practical applications, when the terminal displays specific content according to the detected shortcut operation, the display effect is not good.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种内容显示方法、终端,用于解决终端根据检测到的快捷操作显示特定内容时,显示效果不佳的问题。Embodiments of the present invention provide a content display method and a terminal, which are used to solve the problem of poor display effect when a terminal displays specific content according to a detected shortcut operation.
为解决上述技术问题,本发明实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiments of the present invention are implemented as follows:
第一方面,提供了一种内容显示方法,应用于终端,包括:In a first aspect, a content display method is provided, applied to a terminal, including:
接收用户在触发区域内的第一输入,所述触发区域为所述终端屏幕上的一部分;receiving a first input from a user in a trigger area, where the trigger area is a part of the terminal screen;
响应于所述第一输入,确定待显示内容以及显示区域;In response to the first input, determining the content to be displayed and the display area;
在所述显示区域显示所述待显示内容。The to-be-displayed content is displayed in the display area.
第二方面,提供了一种终端,包括:In a second aspect, a terminal is provided, including:
接收模块,接收用户在触发区域内的第一输入,所述触发区域为所述终端屏幕上的一部分;a receiving module, receiving a first input from a user in a trigger area, where the trigger area is a part of the terminal screen;
确定模块,响应于所述第一输入,确定待显示内容以及显示区域;a determining module, in response to the first input, determining the content to be displayed and the display area;
显示模块,在所述显示区域显示所述待显示内容。A display module, which displays the content to be displayed in the display area.
第三方面,提供了一种终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, a terminal is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the The steps of the method of one aspect.
第四方面,提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method according to the first aspect is implemented. step.
本发明实施例提供的技术方案,可以预先确定不同的第一输入与不同的待显示内容以及显示区域之间的映射关系,在接收用户在触发区域内的第一输入时,响应于所述第一输入,根据所述第一输入确定待显示内容以及显示区域;在所述显示区域显示所述待显示内容。这样,可以根据用户的第一输入,灵活地确定待显示内容和显示区域,相较于现有技术而言,由于可以灵活地确定待显示内容和显示区域,因此,可以有效改善显示效果。In the technical solution provided by the embodiment of the present invention, the mapping relationship between different first inputs and different to-be-displayed contents and display areas can be predetermined, and when receiving the first input from the user in the trigger area, in response to the first input an input, determining the content to be displayed and a display area according to the first input; and displaying the content to be displayed in the display area. In this way, the content to be displayed and the display area can be flexibly determined according to the user's first input. Compared with the prior art, since the content to be displayed and the display area can be flexibly determined, the display effect can be effectively improved.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是本发明的一个实施例内容显示方法的流程示意图;1 is a schematic flowchart of a content display method according to an embodiment of the present invention;
图2是本发明的一个实施例内容显示方法的示意图;2 is a schematic diagram of a content display method according to an embodiment of the present invention;
图3是本发明的一个实施例内容显示方法的示意图;3 is a schematic diagram of a content display method according to an embodiment of the present invention;
图4是本发明的一个实施例内容显示方法的示意图;4 is a schematic diagram of a content display method according to an embodiment of the present invention;
图5是本发明的一个实施例内容显示方法的示意图;5 is a schematic diagram of a content display method according to an embodiment of the present invention;
图6是本发明的一个实施例内容显示方法的示意图;6 is a schematic diagram of a content display method according to an embodiment of the present invention;
图7是本发明的一个实施例内容显示方法的示意图;7 is a schematic diagram of a content display method according to an embodiment of the present invention;
图8是本发明的一个实施例终端的结构示意图;8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图9为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
具体实施方式Detailed ways
现有技术中,终端可以针对显示屏提供多个快捷操作,以便于快速显示特定界面。例如,当检测到用户对屏幕上边缘位置执行向下滑动操作时,可以显示通知栏;当检测到用户对屏幕下边缘的位置执行向上滑动操作时,可以显示导航栏;当检测到用户在主屏幕上执行向左或向右滑动操作时,可以显示负一屏。其中,负一屏中显示的内容可以包含快捷功能和通知信息。In the prior art, a terminal may provide multiple shortcut operations for the display screen, so as to quickly display a specific interface. For example, when it is detected that the user performs a swipe-down operation on the upper edge of the screen, the notification bar can be displayed; when it is detected that the user performs a swipe-up operation on the lower edge of the screen, the navigation bar can be displayed; when it is detected that the user is on the main screen When you perform a left or right swipe operation on the screen, a negative screen can be displayed. Among them, the content displayed in the negative screen may include shortcut functions and notification information.
然而,在实际应用中,终端通过快捷操作显示特定界面时,至少存在以下缺点:However, in practical applications, when the terminal displays a specific interface through shortcut operations, there are at least the following disadvantages:
(1)由于异形屏(如“刘海屏”)的存在,异形屏中的异形结构(如“刘海”部分)将屏幕上边缘分成两部分,在屏幕的上边缘区域显示特定内容时,显示区域是异形的,影响显示区域的美观,例如,在屏幕上边缘显示通知栏时,通知栏的显示区域是异形的,影响通知栏的美观。(1) Due to the existence of the special-shaped screen (such as "Liu Haiping"), the special-shaped structure in the special-shaped screen (such as the "Liu Hai" part) divides the upper edge of the screen into two parts. When displaying specific content in the upper edge area of the screen, the display area It is abnormal, which affects the appearance of the display area. For example, when the notification bar is displayed on the upper edge of the screen, the display area of the notification bar is abnormal, which affects the appearance of the notification bar.
(2)用户在通过快捷操作呼出特定界面时,容易发生误触,例如,用户在浏览网页时,想要通过对屏幕下边缘的向上滑动操作呼出导航栏,但是可能会导致网页上滑;(2) When a user calls out a specific interface through a shortcut operation, it is prone to false touches. For example, when a user is browsing a web page, he wants to call out the navigation bar by sliding up on the lower edge of the screen, but it may cause the web page to slide up;
(3)终端在显示特定界面时,通常会全屏显示,然而,在实际应用中,用户往往不需要全屏显示特定界面。例如,用户只想要查看负一屏中显示的天气信息时,只需要负一屏显示出天气信息即可,无需全屏显示负一屏。此外,在某种情况下,终端在显示特定界面时,用户往往希望可以同时查看特定界面以及其他界面中的内容,显然,现有的终端并不能满足用户的这种需求。(3) When a terminal displays a specific interface, it usually displays the specific interface in full screen. However, in practical applications, the user often does not need to display the specific interface in full screen. For example, when the user only wants to view the weather information displayed on the negative screen, the user only needs to display the weather information on the negative screen, and does not need to display the negative screen in full screen. In addition, in some cases, when the terminal displays a specific interface, the user often wants to view the content in the specific interface and other interfaces at the same time. Obviously, the existing terminal cannot meet this requirement of the user.
由此可见,现有的终端在根据快捷操作显示特定界面时,显示效果不佳,影响用户的使用体验。It can be seen that when the existing terminal displays a specific interface according to a shortcut operation, the display effect is not good, which affects the user's experience.
为了解决上述技术问题,本发明实施例提供一种内容显示方法、终端,所述方法包括:接收用户在触发区域内的第一输入,所述触发区域为所述终端屏幕上的一部分;响应于所述第一输入,确定待显示内容以及显示区域;在所述显示区域显示所述待显示内容。In order to solve the above technical problems, embodiments of the present invention provide a content display method and a terminal. The method includes: receiving a first input from a user in a trigger area, where the trigger area is a part of the screen of the terminal; responding to The first input is to determine the content to be displayed and a display area; the content to be displayed is displayed in the display area.
本发明实施例提供的技术方案,可以根据用户的第一输入,灵活地确定待显示内容和显示区域,相较于现有技术而言,由于可以灵活地确定待显示内容和显示区域,因此,可以有效改善显示效果。The technical solution provided by the embodiment of the present invention can flexibly determine the content to be displayed and the display area according to the first input of the user. Compared with the prior art, since the content to be displayed and the display area can be flexibly determined, therefore, It can effectively improve the display effect.
下面将结合本发明具体实施例及相应的附图对本发明技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提供的技术方案,可以应用于屏幕为异形结构的终端,也可以应用于屏幕为规则结构的终端,其中,所述异形结构指的是终端屏幕的形状是非规则的,例如,终端的屏幕不是规则的矩形。所述异形结构具体可以是“刘海屏”,也可以是其他形状的异形结构,这里不做具体限定。The technical solutions provided by the embodiments of the present invention can be applied to terminals with screens with a special-shaped structure, or terminals with a regular screen structure. The screen is not a regular rectangle. The special-shaped structure may specifically be "Liu Haiping", or it may be a special-shaped structure of other shapes, which is not specifically limited here.
所述终端可以是具有触摸屏的智能终端,例如,智能手机,平板电脑等,本发明实施例不做具体限定。The terminal may be a smart terminal with a touch screen, such as a smart phone, a tablet computer, etc., which is not specifically limited in this embodiment of the present invention.
以下结合附图,详细说明本发明各实施例提供的技术方案。The technical solutions provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图1是本发明的一个实施例内容显示方法的流程示意图。所述方法应用于终端,所述方法如下所述。FIG. 1 is a schematic flowchart of a content display method according to an embodiment of the present invention. The method is applied to a terminal, and the method is as follows.
步骤102:接收用户在触发区域内的第一输入。Step 102: Receive a first input from the user in the trigger area.
在步骤102中,用户想要在终端中通过快捷操作呼出特定界面并显示特定内容时,可以在终端的触发区域内执行第一输入,所述触发区域可以是终端屏幕上的一部分。In
所述第一输入可以是滑动操作,例如左滑、右滑、上滑或下滑等,也可以是点击操作,例如,单击、双击或三击等,还可以是拖动操作,例如,向上拖动或向下拖动,具体可以是单指的拖动操作,也可以是双指的拖动操作。这里不再对所述第一输入一一举例说明。The first input can be a sliding operation, such as left sliding, right sliding, up or down, etc., or a click operation, such as single click, double click, or triple click, etc., or a drag operation, such as upward Drag or drag down, which can be a single-finger drag operation or a two-finger drag operation. The first input will not be illustrated one by one here.
用户在所述触发区域执行第一输入后,终端可以接收所述第一输入,并执行步骤104。After the user performs the first input in the trigger area, the terminal may receive the first input and perform
步骤104:响应于所述第一输入,确定待显示内容以及显示区域。Step 104: In response to the first input, determine the content to be displayed and the display area.
在步骤104中,终端在接收到所述第一输入后,可以响应于所述第一输入,并根据所述第一输入确定待显示内容以及显示区域。In
在根据所述第一输入确定待显示内容时,具体可以包括:When determining the content to be displayed according to the first input, it may specifically include:
根据所述第一输入以及所述触发区域中的至少一种,按照预设规则确定所述待显示内容,所述预设规则包含所述第一输入以及所述触发区域中的至少一种与所述待显示内容之间的映射关系。According to at least one of the first input and the trigger area, the content to be displayed is determined according to a preset rule, and the preset rule includes at least one of the first input and the trigger area and the The mapping relationship between the contents to be displayed.
本发明实施例中,待显示内容可以与所述第一输入以及所述触发区域中的至少一种有关,为了便于确定待显示内容,可以预先确定预设规则,所述预设规则可以包含以下三种映射关系中的至少一种:In this embodiment of the present invention, the content to be displayed may be related to at least one of the first input and the trigger area. In order to facilitate the determination of the content to be displayed, a preset rule may be pre-determined, and the preset rule may include the following At least one of the three mapping relationships:
待显示内容与所述第一输入之间的映射关系;the mapping relationship between the content to be displayed and the first input;
待显示内容与所述触发区域之间的映射关系;the mapping relationship between the content to be displayed and the trigger area;
待显示内容与所述第一输入以及所述触发区域之间的映射关系。The mapping relationship between the content to be displayed and the first input and the trigger area.
这样,终端在接收到用户在触发区域内的第一输入后,可以根据所述预设规则中包含的其中一种映射关系确定待显示内容。In this way, after receiving the first input from the user in the trigger area, the terminal can determine the content to be displayed according to one of the mapping relationships included in the preset rule.
所述显示区域可以包括所述触发区域,具体地,所述显示区域可以等于所述触发区域,也可以大于所述触发区域。当所述显示区域大于所述触发区域时,所述显示区域在屏幕中的具体位置可以根据实际情况确定。The display area may include the trigger area, and specifically, the display area may be equal to or larger than the trigger area. When the display area is larger than the trigger area, the specific position of the display area on the screen may be determined according to the actual situation.
在根据所述第一输入确定待显示内容以及显示区域后,可以执行步骤106。After the content to be displayed and the display area are determined according to the first input,
步骤106:在所述显示区域显示所述待显示内容。Step 106: Display the content to be displayed in the display area.
在步骤106中,终端在确定待显示内容以及显示区域后,可以在所述显示区域显示所述待显示内容。In
相较于现有技术而言,由于本发明实施例可以根据用户的第一输入灵活地确定待显示内容以及显示区域,因此,可以有效改善显示效果,进而提升用户的使用体验。Compared with the prior art, since the embodiment of the present invention can flexibly determine the content to be displayed and the display area according to the user's first input, the display effect can be effectively improved, thereby enhancing the user experience.
为了便于理解整个技术方案,下面将以两个优选实施例为例进行说明。In order to facilitate the understanding of the entire technical solution, two preferred embodiments will be used as examples for description below.
在本发明的一个实施例中,上述步骤102至步骤106记载的内容显示方法可以应用于屏幕为异形结构的终端。其中,所述异形结构可以是“刘海”结构,也可以是其他异形结构,所述异形结构的位置可以位于终端屏幕的上边缘,也可以位于终端屏幕的其他位置,本实施例不做具体限定。In an embodiment of the present invention, the content display method described in the
为了便于理解,本实施例可以以所述异形结构为“刘海”结构,且所述异形结构位于屏幕的上边缘为例进行说明。For ease of understanding, this embodiment may be described by taking the special-shaped structure as a "bangs" structure, and the special-shaped structure is located at the upper edge of the screen as an example.
本实施例中,当所述异形结构位于终端屏幕的上边缘时,所述触发区域可以位于所述异形结构的左侧或右侧,其中:In this embodiment, when the special-shaped structure is located on the upper edge of the terminal screen, the trigger area may be located on the left or right side of the special-shaped structure, wherein:
如果所述触发区域位于所述异形结构的左侧,那么,所述触发区域的高度可以不大于所述异形结构的高度,所述触发区域的宽度可以不大于终端屏幕的左边缘与所述异形结构的左边缘之间在水平方向上的宽度。If the triggering area is located on the left side of the special-shaped structure, the height of the triggering area may not be greater than the height of the special-shaped structure, and the width of the triggering area may not be greater than the left edge of the terminal screen and the special-shaped structure. The width in the horizontal direction between the left edges of the structure.
优选地,所述触发区域的高度可以等于所述异形结构的高度,所述触发区域的宽度可以等于终端屏幕的左边缘与所述异形结构的左边缘之间在水平方向上的宽度。Preferably, the height of the trigger area may be equal to the height of the special-shaped structure, and the width of the trigger area may be equal to the width in the horizontal direction between the left edge of the terminal screen and the left edge of the special-shaped structure.
如图2所示,触发区域A位于异形结构的左侧,触发区域A的高度等于异形结构的高度H1,宽度等于终端屏幕的左边缘与异形结构左边缘之间在水平方向上的宽度L1。As shown in FIG. 2 , the trigger area A is located on the left side of the special-shaped structure, the height of the trigger area A is equal to the height H1 of the special-shaped structure, and the width is equal to the horizontal width L1 between the left edge of the terminal screen and the left edge of the special-shaped structure.
如果所述触发区域位于所述异形结构的右侧,则所述触发区域的高度可以不大于所述异形结构的高度,所述触发区域的宽度可以不大于所述异形结构的右边缘与终端屏幕的右边缘之间在水平方向上的宽度。If the triggering area is located on the right side of the special-shaped structure, the height of the triggering area may not be greater than the height of the special-shaped structure, and the width of the triggering area may not be greater than the right edge of the special-shaped structure and the terminal screen The horizontal width between the right edges of .
优选地,所述触发区域的高度可以等于所述异形结构的高度,所述触发区域的宽度可以等于所述异形结构的右边缘与终端屏幕的右边缘之间在水平方向上的宽度。Preferably, the height of the trigger area may be equal to the height of the special-shaped structure, and the width of the trigger area may be equal to the width in the horizontal direction between the right edge of the special-shaped structure and the right edge of the terminal screen.
如图2所示,触发区域B位于异形结构的右侧,触发区域B的高度等于异形结构的高度H1,宽度等于异形结构右边缘与终端屏幕的右边缘之间在水平方向上的宽度L2。As shown in FIG. 2 , the trigger area B is located on the right side of the special-shaped structure, the height of the trigger area B is equal to the height H1 of the special-shaped structure, and the width is equal to the horizontal width L2 between the right edge of the special-shaped structure and the right edge of the terminal screen.
也就是说,所述触发区域的个数可以是一个,也可以是两个,用户可以在其中任一个触发区域内执行所述第一输入。其中,所述第一输入可以是滑动操作,也可以是点击操作,还可以是拖动操作。That is, the number of the trigger areas may be one or two, and the user may perform the first input in any one of the trigger areas. The first input may be a sliding operation, a clicking operation, or a dragging operation.
终端在接收到用户在所述触发区域内的第一输入后,可以确定待显示内容以及显示区域。本实施例中,所述待显示内容可以包含通知栏和导航栏中的至少一种。After receiving the first input from the user in the trigger area, the terminal may determine the content to be displayed and the display area. In this embodiment, the content to be displayed may include at least one of a notification bar and a navigation bar.
在确定待显示内容时,可以包括以下至少一种方法:When determining the content to be displayed, at least one of the following methods may be included:
第一种方法:根据所述触发区域与待显示内容之间的第一映射关系,确定待显示内容。The first method: determine the content to be displayed according to the first mapping relationship between the trigger area and the content to be displayed.
具体地,可以预先建立不同的触发区域与不同的待显示内容之间的第一映射关系。终端在接收到用户在所述触发区域的第一输入时,可以根据所述第一映射关系,确定与所述触发区域对应的待显示内容,也就是说,待显示内容与触发区域有关,与第一输入无关。Specifically, a first mapping relationship between different trigger regions and different contents to be displayed may be established in advance. When the terminal receives the first input from the user in the trigger area, it can determine the content to be displayed corresponding to the trigger area according to the first mapping relationship, that is, the content to be displayed is related to the trigger area and is related to the trigger area. The first input is irrelevant.
例如,针对图2所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,可以确定待显示内容为通知栏,在接收到触发区域B内的第一输入时,可以确定待显示内容为导航栏。For example, for the trigger areas A and B shown in FIG. 2, when the terminal receives the first input in the trigger area A, the terminal may determine that the content to be displayed is the notification bar, and when receiving the first input in the trigger area B, It can be determined that the content to be displayed is the navigation bar.
第二种方法:根据所述第一输入与待显示内容之间的第二映射关系,确定待显示内容。The second method: determine the content to be displayed according to the second mapping relationship between the first input and the content to be displayed.
具体地,可以预先建立不同的第一输入与不同的待显示内容之间的第二映射关系。终端在接收到用户在触发区域内的第一输入时,可以根据所述第二映射关系,确定与所述第一输入对应的待显示内容。也就是说,待显示内容与第一输入有关,与触发区域无关。Specifically, a second mapping relationship between different first inputs and different contents to be displayed may be established in advance. When receiving the first input from the user in the trigger area, the terminal may determine the content to be displayed corresponding to the first input according to the second mapping relationship. That is to say, the content to be displayed is related to the first input and has nothing to do with the trigger area.
例如,针对图2所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,若所述第一输入是向上滑动操作,则可以确定待显示内容为通知栏;若所述第一输入是向下滑动操作,则可以确定待显示内容为导航栏。For example, for the trigger areas A and B shown in FIG. 2, when the terminal receives the first input in the trigger area A, if the first input is an upward sliding operation, it can determine that the content to be displayed is the notification bar; If the first input is a downward sliding operation, it can be determined that the content to be displayed is a navigation bar.
在接收到触发区域B内的第一输入后,若所述第一输入是向上滑动操作,则可以确定待显示内容为通知栏;若所述第一输入是向下滑动操作,则可以确定待显示内容为导航栏。After receiving the first input in the trigger area B, if the first input is an upward sliding operation, it can be determined that the content to be displayed is a notification bar; if the first input is a downward sliding operation, it can be determined that the content to be displayed is a notification bar. The display content is the navigation bar.
第三种方法:根据所述第一输入以及所述触发区域与待显示内容之间的第三映射关系,确定待显示内容。The third method: determining the content to be displayed according to the first input and the third mapping relationship between the trigger area and the content to be displayed.
具体地,可以预先建立不同的第一输入以及触发区域与不同的待显示内容之间的第三映射关系。终端在接收到触发区域内的第一输入时,可以根据所述第三映射关系,确定与所述触发区域以及所述第一输入对应的待显示内容。也就是说,待显示内容即与第一输入有关,也与触发区域有关。Specifically, different first inputs and third mapping relationships between trigger areas and different to-be-displayed contents may be established in advance. When receiving the first input in the trigger area, the terminal may determine the content to be displayed corresponding to the trigger area and the first input according to the third mapping relationship. That is to say, the content to be displayed is related to both the first input and the trigger area.
例如,针对图2所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,若第一输入是向上滑动操作,则可以确定待显示内容为通知栏,若第一输入是向下滑动操作,则可以确定待显示内容为导航栏;终端在接收到触发区域B内的第一输入时,若第一输入是向上滑动操作,则可以确定待显示内容为导航栏,若第一输入是向下滑动操作,则可以确定待显示内容为通知栏。For example, for the trigger areas A and B shown in FIG. 2, when the terminal receives the first input in the trigger area A, if the first input is an upward sliding operation, it can determine that the content to be displayed is the notification bar. If the input is a downward sliding operation, it can be determined that the content to be displayed is a navigation bar; when the terminal receives the first input in the trigger area B, if the first input is an upward sliding operation, it can be determined that the content to be displayed is a navigation bar, If the first input is a downward sliding operation, it can be determined that the content to be displayed is a notification bar.
本实施例中,所述显示区域具有规则形状,例如,所述规则形状可以是规则的矩形。优选地,所述显示区域可以包括所述触发区域,且与所述触发区域之间存在一一对应关系,其中,所述显示区域的宽度可以与所述触发区域的宽度相同,所述显示区域的高度可以等于终端屏幕的高度。In this embodiment, the display area has a regular shape, for example, the regular shape may be a regular rectangle. Preferably, the display area may include the trigger area, and there is a one-to-one correspondence with the trigger area, wherein the width of the display area may be the same as the width of the trigger area, and the display area may have the same width as the trigger area. can be equal to the height of the terminal screen.
本实施例中,可以与预先建立不同的触发区域与不同的显示区域之间的映射关系。这样,在确定显示区域时,可以根据所述触发区域以及所述映射关系,确定所述显示区域。In this embodiment, the mapping relationship between different trigger areas and different display areas may be established in advance. In this way, when the display area is determined, the display area can be determined according to the trigger area and the mapping relationship.
如图2所示,可以预先确定触发区域A对应的显示区域为C,显示区域C包含显示区域A,且显示区域C的高度等于屏幕的高度H2,宽度等于触发区域A的宽度L1。这样,终端在接收到触发区域A内的第一输入时,可以确定显示区域为C。As shown in FIG. 2 , the display area corresponding to the trigger area A can be predetermined as C, the display area C includes the display area A, the height of the display area C is equal to the height H2 of the screen, and the width is equal to the width L1 of the trigger area A. In this way, when the terminal receives the first input in the trigger area A, it can determine that the display area is C.
同样的,可以预先确定触发区域B对应的显示区域为D,显示区域D包含显示区域B,且显示区域D的高度等于屏幕的高度H2,宽度等于触发区域B的宽度L2。这样,终端在接收到触发区域B内的第一输入时,可以确定显示区域为D。Similarly, the display area corresponding to the trigger area B can be predetermined as D, the display area D includes the display area B, and the height of the display area D is equal to the height H2 of the screen, and the width is equal to the width L2 of the trigger area B. In this way, when the terminal receives the first input in the trigger area B, it can determine that the display area is D.
终端在确定待显示内容以及具有规则形状的显示区域后,可以所述显示区域内显示所述待显示内容。After determining the content to be displayed and the display area having a regular shape, the terminal may display the content to be displayed in the display area.
如图2所示,若触发区域为A,确定的待显示内容为通知栏,则可以在显示区域C中显示通知栏,若触发区域为B,确定的待显示区域为导航栏,则可以在显示区域D显示导航栏。As shown in Figure 2, if the trigger area is A, and the determined content to be displayed is the notification bar, then the notification bar can be displayed in the display area C; if the trigger area is B, and the determined to-be-displayed area is the navigation bar, you can display the notification bar in the display area C. Display area D displays the navigation bar.
由于本实施例中显示区域的形状是规则的,因此,相较于现有技术中由异形结构导致的显示区域为异形区域而言,可以有效改善显示的美观程度。Since the shape of the display area in this embodiment is regular, the appearance of the display can be effectively improved compared to the display area caused by the special-shaped structure in the prior art as a special-shaped area.
此外,由于本实施例中触发区域所占的面积较小,只有在较小面积的触发区域内接收到第一输入时,才可以显示待显示内容,因此,可以有效避免误触现象的发生,提高操作的准确度。In addition, since the area occupied by the trigger area in this embodiment is small, the content to be displayed can be displayed only when the first input is received in the trigger area with a small area. Therefore, the occurrence of false touches can be effectively avoided. Improve the accuracy of operations.
在本实施例中,终端在显示区域显示所述待显示内容后,若用户想要隐藏显示的内容,则可以在所述显示区域内执行第二输入,终端接收到用户在所述显示区域内的第二输入时,可以隐藏已显示的内容。In this embodiment, after the terminal displays the to-be-displayed content in the display area, if the user wants to hide the displayed content, a second input may be performed in the display area, and the terminal receives that the user is in the display area The displayed content can be hidden when the second input of .
所述第二输入可以是滑动操作,例如左滑、右滑、上滑或下滑等,也可以是点击操作,例如,单击、双击或三击等,还可以是拖动操作,例如,向上拖动或向下拖动,具体可以是单指的拖动操作,也可以是双指的拖动操作等,这里不再一一举例说明。The second input may be a sliding operation, such as left sliding, right sliding, up or down, etc., or a click operation, such as single click, double click or triple click, etc., or a drag operation, such as upward The dragging or downward dragging may specifically be a single-finger drag operation, or a two-finger drag operation, etc., which will not be described one by one here.
本实施例提供的技术方案,可以应用于屏幕为异形结构的终端中,终端在显示待显示内容时,由于确定的显示区域具有规则形状,因此,相较于现有技术在异形区域显示待显示内容而言,可以有效改善显示的美观程度。The technical solution provided in this embodiment can be applied to a terminal with a screen with a special-shaped structure. When the terminal displays the content to be displayed, since the determined display area has a regular shape, compared with the prior art, the display area to be displayed is displayed in the special-shaped area compared to the prior art. In terms of content, it can effectively improve the aesthetics of the display.
在本发明的另一个实施例中,上述步骤102至步骤106记载的内容显示方法可以应用于屏幕为异形结构的终端,也可以应用于屏幕为规则结构的终端。其中,异形结构可以是上述记载的“刘海”结构,异形结构的位置可以位于终端屏幕的上边缘。In another embodiment of the present invention, the content display method described in the
在本实施例中,所述触发区域的高度可以等于终端屏幕的高度,所述触发区域的宽度可以是预设宽度,其中,所述预设宽度可以小于终端屏幕的宽度。In this embodiment, the height of the trigger area may be equal to the height of the terminal screen, and the width of the trigger area may be a preset width, wherein the preset width may be smaller than the width of the terminal screen.
需要说明的是,如果终端屏幕为异形结构,且异形结构位于终端屏幕的上边缘,则所述触发区域可以位于所述异形结构的左侧或右侧,其中:It should be noted that, if the terminal screen is a special-shaped structure, and the special-shaped structure is located on the upper edge of the terminal screen, the trigger area may be located on the left or right side of the special-shaped structure, wherein:
如果触发区域位于所述异形结构的左侧,那么,所述触发区域的高度可以等于终端屏幕的高度,所述触发区域的宽度可以不大于终端屏幕的左边缘与所述异形结构的左边缘之间在水平方向上的宽度,优选地,所述触发区域的宽度可以等于终端屏幕的左边缘与所述异形结构的左边缘之间在水平方向上的宽度。If the trigger area is located on the left side of the special-shaped structure, the height of the trigger area may be equal to the height of the terminal screen, and the width of the trigger area may not be greater than the left edge of the terminal screen and the left edge of the special-shaped structure. Preferably, the width of the trigger area may be equal to the width in the horizontal direction between the left edge of the terminal screen and the left edge of the special-shaped structure.
如图3所示,终端的屏幕为异形结构,触发区域A位于异形结构的左侧,触发区域A的高度等于异形结构的高度H,宽度等于终端屏幕的左边缘与异形结构左边缘之间在水平方向上的宽度L1。As shown in Figure 3, the screen of the terminal is a special-shaped structure, the trigger area A is located on the left side of the special-shaped structure, the height of the trigger area A is equal to the height H of the special-shaped structure, and the width is equal to the distance between the left edge of the terminal screen and the left edge of the special-shaped structure. Width L1 in the horizontal direction.
如果所述触发区域位于所述异形结构的右侧,则所述触发区域的高度可以等于终端屏幕的高度,所述触发区域的宽度可以不大于所述异形结构的右边缘与终端屏幕的右边缘之间在水平方向上的宽度,优选地,所述触发区域的宽度可以等于所述异形结构的右边缘与终端屏幕的右边缘之间在水平方向上的宽度。If the triggering area is located on the right side of the special-shaped structure, the height of the triggering area may be equal to the height of the terminal screen, and the width of the triggering area may not be greater than the right edge of the special-shaped structure and the right edge of the terminal screen The width in the horizontal direction between them, preferably, the width of the trigger area may be equal to the width in the horizontal direction between the right edge of the special-shaped structure and the right edge of the terminal screen.
如图3所示,触发区域B位于异形结构的右侧,触发区域B的高度等于终端屏幕的高度H,宽度等于异形结构右边缘与终端屏幕的右边缘之间在水平方向上的宽度L2。As shown in FIG. 3 , the trigger area B is located on the right side of the special-shaped structure, the height of the trigger area B is equal to the height H of the terminal screen, and the width is equal to the horizontal width L2 between the right edge of the special-shaped structure and the right edge of the terminal screen.
当终端的屏幕为规则结构时,所述触发区域的高度可以等于终端屏幕的高度,宽度可以等于预设宽度,所述预设宽度小于终端屏幕的宽度。When the screen of the terminal has a regular structure, the height of the trigger area may be equal to the height of the terminal screen, and the width may be equal to a preset width, and the preset width is smaller than the width of the terminal screen.
优选地,所述触发区域可以是位于终端屏幕的左边缘,也可以位于终端屏幕的右边缘,触发区域的宽度可以等于终端屏幕的1/4。Preferably, the trigger area may be located at the left edge of the terminal screen, or may be located at the right edge of the terminal screen, and the width of the trigger area may be equal to 1/4 of the terminal screen.
如图4所示,终端的屏幕为规则结构,触发区域A位于终端屏幕的左边缘,触发区域的高度等与终端屏幕的高度H,宽度等于终端屏幕宽度L的1/4,即1/4L。触发区域B位于终端屏幕的右边缘,触发区域的高度等与终端屏幕的高度H,宽度等于终端屏幕宽度L的1/4,即1/4L。As shown in Figure 4, the screen of the terminal is a regular structure, the trigger area A is located at the left edge of the terminal screen, the height of the trigger area is equal to the height H of the terminal screen, and the width is equal to 1/4 of the width L of the terminal screen, that is, 1/4L . The trigger area B is located at the right edge of the terminal screen, the height of the trigger area is equal to the height H of the terminal screen, and the width is equal to 1/4 of the width L of the terminal screen, that is, 1/4L.
根据本实施例上述记载的内容可知,不管是异形结构的终端屏幕,还是规则结构的终端屏幕,在本实施例中,所述触发区域的个数可以是一个,也可以是两个,用户可以在其中任一个触发区域内执行所述第一输入。为了便于理解,本实施例可以与异形结构的终端屏幕为例进行说明。According to the above-mentioned contents of this embodiment, whether it is a terminal screen with a special-shaped structure or a terminal screen with a regular structure, in this embodiment, the number of the trigger areas may be one or two, and the user can The first input is performed in any one of the trigger regions. For ease of understanding, this embodiment may be described by taking a terminal screen with a special-shaped structure as an example.
所述第一输入可以是拖动操作,所述拖动操作的起始位置位于所述触发区域内。The first input may be a drag operation, and the start position of the drag operation is located in the trigger area.
终端在接收到所述触发区域内的第一输入时,可以确定待显示内容以及待显示区域。本实施例中,所述待显示内容可以是通知栏、导航栏,也可以是负一屏,还可以是其他内容,这里不再一一举例说明。When receiving the first input in the trigger area, the terminal may determine the content to be displayed and the area to be displayed. In this embodiment, the to-be-displayed content may be a notification bar, a navigation bar, a negative screen, or other content, which will not be illustrated here.
在确定待显示内容时,可以包括以下至少一种方法:When determining the content to be displayed, at least one of the following methods may be included:
第一种方法:根据所述触发区域与待显示内容之间的第四映射关系,确定待显示内容。The first method: determine the content to be displayed according to the fourth mapping relationship between the trigger area and the content to be displayed.
具体地,可以预先建立不同的触发区域与不同的待显示内容之间的第四映射关系。终端在接收到用户在所述触发区域的第一输入时,可以根据所述第四映射关系,确定与所述触发区域对应的待显示内容。也就是说,待显示内容与触发区域有关,与第一输入无关。Specifically, a fourth mapping relationship between different trigger regions and different contents to be displayed may be established in advance. When receiving the first input from the user in the trigger area, the terminal may determine the content to be displayed corresponding to the trigger area according to the fourth mapping relationship. That is to say, the content to be displayed is related to the trigger area, not related to the first input.
例如,针对图3所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,可以确定待显示的内容为通知栏,在接收到触发区域B内的第一输入时,可以确定待显示内容为负一屏。For example, for the trigger areas A and B shown in FIG. 3 , when the terminal receives the first input in the trigger area A, the terminal may determine that the content to be displayed is the notification bar, and when receiving the first input in the trigger area B , it can be determined that the content to be displayed is one negative screen.
第二种方法:根据所述第一输入与待显示内容之间的第五映射关系,确定待显示内容。The second method: determine the content to be displayed according to the fifth mapping relationship between the first input and the content to be displayed.
具体地,可以预先建立不同的第一输入与不同的待显示内容之间的第五映射关系。终端在接收到用户在触发区域内的第一输入时,可以根据所述第五映射关系,确定与所述第一输入对应的待显示内容。也就是说,待显示内容与第一输入有关,与触发区域无关。Specifically, a fifth mapping relationship between different first inputs and different contents to be displayed may be established in advance. When receiving the first input from the user in the trigger area, the terminal may determine the content to be displayed corresponding to the first input according to the fifth mapping relationship. That is to say, the content to be displayed is related to the first input and has nothing to do with the trigger area.
例如,针对图3所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,若第一输入是向左拖动操作,则可以确定待显示内容为通知栏;若第一输入是向右拖动操作,则可以确定待显示内容为负一屏。For example, for the trigger areas A and B shown in FIG. 3 , when the terminal receives the first input in the trigger area A, if the first input is a leftward drag operation, it can determine that the content to be displayed is the notification bar; If the first input is a drag operation to the right, it can be determined that the content to be displayed is one negative screen.
终端在接收到触发区域B内的第一输入时,若第一输入是向左拖动操作,则可以确定待显示内容为通知栏;若第一输入是向右拖动操作,则可以确定待显示内容为负一屏。When the terminal receives the first input in the trigger area B, if the first input is a drag operation to the left, it can determine that the content to be displayed is the notification bar; if the first input is a drag operation to the right, it can determine that the content to be displayed is a notification bar. The display content is negative one screen.
第三种方法:根据所述第一输入以及所述触发区域与待显示内容之间的第六映射关系,确定待显示内容。The third method: determining the content to be displayed according to the first input and the sixth mapping relationship between the trigger area and the content to be displayed.
具体地,可以预先建立不同的触发区域以及第一输入与不同的待显示内容之间的第六映射关系,终端在接收到触发区域内的第一输入时,可以根据所述第六映射关系,确定与所述触发区域以及所述第一输入对应的待显示内容。也就是说,待显示内容即与第一输入有关,也与触发区域有关。Specifically, different trigger areas and a sixth mapping relationship between the first input and different to-be-displayed contents may be established in advance, and when the terminal receives the first input in the trigger area, according to the sixth mapping relationship, Determine the content to be displayed corresponding to the trigger area and the first input. That is to say, the content to be displayed is related to both the first input and the trigger area.
例如,针对图3所示的触发区域A和B,终端在接收到触发区域A内的第一输入时,若第一输入是向左拖动操作,则可以确定待显示内容为通知栏,若第一输入是向右拖动操作,则可以确定待显示内容为负一屏。For example, for the trigger areas A and B shown in FIG. 3 , when the terminal receives the first input in the trigger area A, if the first input is a leftward drag operation, it can determine that the content to be displayed is the notification bar. If the first input is a drag operation to the right, it can be determined that the content to be displayed is one negative screen.
终端在接收到触发区域B内的第一输入时,若第一输入是向左拖动操作,则可以确定待显示内容为负一屏,若第一输入是向右拖动操作,则可以确定待显示内容为导航栏。When the terminal receives the first input in the trigger area B, if the first input is a drag operation to the left, it can be determined that the content to be displayed is a negative screen, and if the first input is a drag operation to the right, it can be determined. The content to be displayed is the navigation bar.
本实施例中,显示区域可以包含所述触发区域,终端在确定显示区域时,可以包括:In this embodiment, the display area may include the trigger area, and when the terminal determines the display area, it may include:
根据所述第一输入的结束位置,确定显示区域。The display area is determined according to the end position of the first input.
由于所述第一输入为拖动操作,因此,可以根据拖动操作的结束位置确定显示区域,其中,所述第一输入的结束位置可以是所述第一输入的拖动轨迹的结束位置。Since the first input is a drag operation, the display area may be determined according to the end position of the drag operation, where the end position of the first input may be the end position of the drag track of the first input.
这样,通过第一输入的结束位置确定显示区域,可以便于用户根据拖动操作的结束位置灵活地控制显示区域的大小,不仅可以提高用户的操作体验,而且可以有效改善显示效果。In this way, determining the display area by the end position of the first input can facilitate the user to flexibly control the size of the display area according to the end position of the drag operation, which can not only improve the user's operation experience, but also effectively improve the display effect.
终端在根据所述第一输入的结束位置确定显示区域时,可以包括:When the terminal determines the display area according to the end position of the first input, it may include:
当所述第一输入的结束位置位于所述触发区域内时,所述显示区域为所述触发区域;When the end position of the first input is located in the trigger area, the display area is the trigger area;
当所述第一输入的结束位置位于所述触发区域外时,确定所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离是否大于预设距离;若是,则所述显示区域为所述屏幕的全部显示区域;若否,则所述显示区域的高度等于所述触发区域的高度,宽度等于所述结束位置与所述屏幕边缘之间的水平距离。When the end position of the first input is outside the trigger area, determine whether the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is greater than a preset distance; if so, then The display area is the entire display area of the screen; if not, the height of the display area is equal to the height of the trigger area, and the width is equal to the horizontal distance between the end position and the edge of the screen.
具体地,终端可以根据所述第一输入的结束位置是否在所述触发区域内,确定所述显示区域。其中:Specifically, the terminal may determine the display area according to whether the end position of the first input is within the trigger area. in:
当所述第一输入的结束位置位于所述触发区域内时,所述显示区域即为所述触发区域。When the end position of the first input is within the trigger area, the display area is the trigger area.
如图5所示,在触发区域A内的第一输入的结束位置a位于触发区域A内,则显示区域即为触发区域A。As shown in FIG. 5 , the end position a of the first input in the trigger area A is located in the trigger area A, and the display area is the trigger area A.
当所述第一输入的结束位置位于所述触发区域外时,可以判断所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离是否大于预设距离。When the end position of the first input is outside the trigger area, it can be determined whether the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is greater than a preset distance.
与所述第一输入对应的屏幕边缘可以是,终端屏幕的左边缘和右边缘中距离所述第一输入的结束位置原来越远的其中一个边缘。例如,第一输入是向右拖动操作,那么,与第一输入对应的边缘为终端屏幕的左边缘;第一输入是向左拖动操作,那么,与第一输入对应的边缘为终端屏幕的右边缘。The screen edge corresponding to the first input may be one of the left edge and the right edge of the terminal screen that is farther from the end position of the first input. For example, if the first input is a drag operation to the right, then the edge corresponding to the first input is the left edge of the terminal screen; the first input is a drag operation to the left, then the edge corresponding to the first input is the terminal screen right edge of .
所述预设距离可以根据实际情况确定,优选地,所述预设距离可以等于终端屏幕宽度的四分之三。The preset distance may be determined according to the actual situation, and preferably, the preset distance may be equal to three-quarters of the width of the terminal screen.
当所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离大于预设距离时,可以确定显示区域为终端屏幕的全部显示区域;否则,可以确定显示区域的高度等于所述触发区域的高度(即终端屏幕的高度),宽度等于第一输入的结束位置与第一输入对应的屏幕边缘之间的水平距离。When the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is greater than the preset distance, the display area may be determined to be the entire display area of the terminal screen; otherwise, the height of the display area may be determined It is equal to the height of the trigger area (that is, the height of the terminal screen), and the width is equal to the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input.
如图6所示,终端的屏幕宽度为L,所述预设距离为3/4L,用户在触发区域A执行向右拖动操作,当拖动操作的结束位置与屏幕左边缘之间的水平距离为1/2L时,显示区域如图6中的阴影部分,该显示区域的宽度等于屏幕的左边缘与拖动操作的结束位置之间的水平距离,即1/2L,高度等于触发区域A的高度,即屏幕的高度H;当拖动操作的结束位置与屏幕左边缘之间的水平距离为4/5L时,显示区域为终端屏幕的全部显示区域。As shown in Figure 6, the screen width of the terminal is L, the preset distance is 3/4L, and the user performs a rightward drag operation in the trigger area A, when the horizontal distance between the end position of the drag operation and the left edge of the screen is When the distance is 1/2L, the display area is shown as the shaded part in Figure 6. The width of the display area is equal to the horizontal distance between the left edge of the screen and the end position of the drag operation, that is, 1/2L, and the height is equal to the trigger area A. The height of the screen is the height H of the screen; when the horizontal distance between the end position of the drag operation and the left edge of the screen is 4/5L, the display area is the entire display area of the terminal screen.
如图7所示,终端的屏幕宽度为L,所述预设距离为3/4L,用户在触发区域B执行向左拖动操作,当拖动操作的结束位置与屏幕右边缘之间的水平距离为1/2L时,显示区域如图7中的阴影部分,该显示区域的宽度等于拖动操作的结束位置与屏幕的右边缘之间的水平距离,即1/2L,高度等于触发区域A的高度,即屏幕的高度H;当拖动操作的结束位置与屏幕右边缘之间的水平距离为4/5L时,显示区域为终端屏幕的全部显示区域。As shown in FIG. 7 , the screen width of the terminal is L, the preset distance is 3/4L, and the user performs a leftward drag operation in the trigger area B. When the horizontal distance between the end position of the drag operation and the right edge of the screen is When the distance is 1/2L, the display area is shown as the shaded part in Figure 7. The width of the display area is equal to the horizontal distance between the end position of the drag operation and the right edge of the screen, that is, 1/2L, and the height is equal to the trigger area A. The height of the screen is the height H of the screen; when the horizontal distance between the end position of the drag operation and the right edge of the screen is 4/5L, the display area is the entire display area of the terminal screen.
这样,在所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离小于预设距离时,根据第一输入的结束位置确定显示区域,可以便于用户根据所述第一输入灵活地控制显示区域的大小,有效提升用户的操作体验,此外,由于显示区域不是屏幕的全部显示区域,因此,可以满足用户同时查看待显示内容以及其他内容的需求。In this way, when the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is less than the preset distance, determining the display area according to the end position of the first input can facilitate the user according to the first input. One input flexibly controls the size of the display area, which effectively improves the user's operating experience. In addition, since the display area is not the entire display area of the screen, it can meet the user's requirement to view the content to be displayed and other content at the same time.
在所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离大于预设距离时全屏显示,而不再根据第一输入的结束位置确定显示区域,这样的好处在于,可以在用户想要全屏显示时,无需执行拖动操作至屏幕边缘就可以实现,简化了用户的操作。When the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is greater than the preset distance, full-screen display is performed, and the display area is no longer determined according to the end position of the first input. The advantage of this is that , which can be achieved without dragging to the edge of the screen when the user wants to display the full screen, which simplifies the user's operation.
本实施例中,在确定待显示内容以及显示区域后,可以在显示区域显示待显示内容。In this embodiment, after the content to be displayed and the display area are determined, the content to be displayed may be displayed in the display area.
终端在所述显示区域显示所述待显示内容时,由于所述第一输入的结束位置不同,显示区域的大小不同,因此,为了灵活地在所述显示区域显示所述待显示内容,可以至少按照以下三种显示方式中的一种或多种的组合进行显示:When the terminal displays the to-be-displayed content in the display area, the size of the display area is different due to the different end positions of the first input. Therefore, in order to flexibly display the to-be-displayed content in the display area, at least Display in one or a combination of the following three display modes:
第一种方式:所述待显示内容的大小不变,所述待显示内容的数量与所述显示区域的大小成正比。The first way: the size of the content to be displayed remains unchanged, and the number of the content to be displayed is proportional to the size of the display area.
待显示内容的大小可以是待显示内容中包含的文本大小,图片大小等,待显示内容的数量可以是待显示内容包含的文本或图片等的数量。The size of the content to be displayed may be the size of the text contained in the content to be displayed, the size of a picture, and the like, and the number of the content to be displayed may be the number of text or pictures contained in the content to be displayed.
在第一种方式下,当待显示内容的大小不变时,显示区域越大,待显示内容的数量可以越多。In the first manner, when the size of the content to be displayed remains unchanged, the larger the display area, the greater the quantity of the content to be displayed.
例如,待显示内容为负一屏时,如果显示区域为屏幕全部显示区域的一半,则可以在所述显示区域显示负一屏中的一半内容;如果显示区域为屏幕全部显示区域的3/4,则可以在显示区域显示负一屏中3/4的内容。For example, when the content to be displayed is a negative screen, if the display area is half of the entire display area of the screen, half of the content of the negative screen can be displayed in the display area; if the display area is 3/4 of the entire display area of the screen , the content of 3/4 of the negative screen can be displayed in the display area.
第二种方式:所述待显示内容的数量不变,所述待显示内容的大小与所述显示区域的大小成正比。The second way: the quantity of the to-be-displayed content remains unchanged, and the size of the to-be-displayed content is proportional to the size of the display area.
例如,待显示内容为负一屏时,可以将负一屏的全部内容显示在显示区域中,其中,在显示区域等于屏幕的全部显示区域时,可以将负一屏的全部内容正常显示(按照待显示内容的预设大小全部显示)在显示区域中,在显示区域小于屏幕的全部显示区域时,相较于正常显示而言,可以将负一屏的全部内容缩小显示在显示区域中。For example, when the content to be displayed is a negative screen, the entire content of the negative screen can be displayed in the display area, and when the display area is equal to the entire display area of the screen, the entire content of the negative screen can be displayed normally (according to The preset size of the content to be displayed is displayed in the display area. When the display area is smaller than the entire display area of the screen, compared with normal display, the entire content of the negative screen can be reduced and displayed in the display area.
第三种方式:当所述显示区域小于所述待显示内容所占的区域时,在所述显示区域中滚动显示所述待显示内容。The third manner: when the display area is smaller than the area occupied by the to-be-displayed content, scroll and display the to-be-displayed content in the display area.
当所述显示区域小于所述待显示内容所占的区域时,为了可以正常显示待显示内容,可以在显示区域中通过滚动的方式显示待显示内容,这样,用户可以在所述显示区域内通过上下或左右滑动操作,方便地查看所述待显示内容的全部内容。When the display area is smaller than the area occupied by the to-be-displayed content, in order to display the to-be-displayed content normally, the to-be-displayed content may be displayed in the display area by scrolling, so that the user can scroll through the display area Swipe up and down or left and right to conveniently view all the content to be displayed.
本实施例可以通过上述任一种或多种方式的组合在所述显示区域显示待显示内容,这里不做具体限定。In this embodiment, the to-be-displayed content may be displayed in the display area by any one or a combination of the foregoing manners, which is not specifically limited here.
在本实施例中,当待显示内容的显示区域小于屏幕的全部显示区域时,终端屏幕中除去显示区域外的第一区域可以显示屏幕的初始内容。为了便于灵活地显示所述初始内容,终端可以通过以下至少一种方式进行显示:In this embodiment, when the display area of the content to be displayed is smaller than the entire display area of the screen, the first area of the terminal screen except the display area can display the initial content of the screen. In order to display the initial content flexibly, the terminal may display it in at least one of the following ways:
第一种方式:所述待显示内容覆盖所述显示区域处的初始内容,所述屏幕的第一区域显示未被所述待显示内容覆盖的所述初始内容。The first way: the to-be-displayed content covers the initial content in the display area, and the first area of the screen displays the initial content that is not covered by the to-be-displayed content.
在第一种方式中,初始内容可以不移动,待显示内容可以在显示区域覆盖初始内容,未被待显示区域覆盖的初始内容可以在剩余的第一区域内按照初始的显示方式显示。In the first mode, the initial content may not be moved, the content to be displayed may cover the initial content in the display area, and the initial content not covered by the to-be-displayed area may be displayed in the remaining first area according to the initial display mode.
例如,当显示区域位于屏幕的左边缘,且大小为屏幕的一半区域,初始内容是主界面,待显示的内容为负一屏时,负一屏将遮挡主界面的左半部分内容,主界面中未被遮挡的右半部分内容将在屏幕的所述第一区域正常显示。For example, when the display area is located at the left edge of the screen and is half the size of the screen, the initial content is the main interface, and the content to be displayed is the negative screen, the negative screen will block the left half of the main interface, the main interface The unobstructed right half of the content will be displayed normally in the first area of the screen.
第二种方式:所述初始内容沿所述第一输入的方向移动,所述第一区域显示所述初始内容的一部分。The second way: the initial content moves along the direction of the first input, and the first area displays a part of the initial content.
在第二种方式中,初始内容可以沿第一输入的拖动方向移动,在移动过程中,屏幕中显示的初始内容的数量将会变少,但初始内容的大小可以保持不变,这样,在显示区域显示待显示内容时,屏幕的所述第一区域可以正常显示初始内容的一部分。In the second way, the initial content can be moved along the dragging direction of the first input. During the moving process, the number of initial content displayed on the screen will be reduced, but the size of the initial content can remain unchanged. In this way, When the content to be displayed is displayed in the display area, the first area of the screen may normally display a part of the initial content.
例如,当所述初始内容是主界面,待显示的内容为负一屏,第一输入为向右拖动操作时,主屏幕会向右移动,主界面右侧的内容将消失在屏幕中,在显示区域显示负一屏时,主界面移动的距离可以等于待显示内容的显示区域的宽度,屏幕中的所述第一区域将正常显示主界面中未消失的内容。For example, when the initial content is the main interface, the content to be displayed is a negative screen, and the first input is a drag operation to the right, the main screen will move to the right, and the content on the right side of the main interface will disappear on the screen, When a negative screen is displayed in the display area, the distance that the main interface moves may be equal to the width of the display area of the content to be displayed, and the first area in the screen will normally display the content that has not disappeared in the main interface.
第三种方式:所述第一区域缩小显示所述初始内容。The third way: the first area is reduced to display the initial content.
在第三种方式中,可以在屏幕的所述第一区域显示全部的初始内容。由于初始内容的显示区域变小,因此,需要在所述第一区域通过缩小显示的方式显示全部的初始内容。In a third manner, all the initial content may be displayed in the first area of the screen. Since the display area of the initial content becomes smaller, it is necessary to display all the initial content in the first area by reducing the display.
例如,当所述初始内容是主界面,主界面中包含N个标识图片时,可以在屏幕的所述第一区域显示缩小N个标识图片。For example, when the initial content is the main interface, and the main interface includes N identification pictures, the reduced N identification pictures may be displayed in the first area of the screen.
第四种方式:所述第一区域滚动显示所述初始内容。The fourth way: the first area scrolls to display the initial content.
在第四种方式中,为了在屏幕的所述第一区域显示全部的初始内容,且显示的初始内容的大小和数量保持不变,可以通过滚动的方式在所述第一区域显示,这样,用户可以在所述第一区域内通过上下或左右滑动操作,查看所述初始内容的全部内容。In the fourth mode, in order to display all the initial content in the first area of the screen, and the size and quantity of the displayed initial content remain unchanged, the scrolling method can be used to display in the first area, in this way, The user can view the entire content of the initial content by sliding up and down or left and right in the first area.
这样,通过上述任一种或多种方式的组合,可以灵活地显示初始内容,便于用户可以在屏幕中同时查看到待显示内容以及初始内容,在改善显示效果的同时,还可以有效提升用户的使用体验。In this way, through the combination of any one or more of the above methods, the initial content can be flexibly displayed, so that the user can view the to-be-displayed content and the initial content on the screen at the same time, and while improving the display effect, it can also effectively improve the user's experience. Use experience.
需要说明的是,本实施例提供的技术方案,除了可以用于显示通知栏、导航栏或负一屏外,还可以应用在其他的应用场景中。It should be noted that, the technical solutions provided in this embodiment can be applied to other application scenarios in addition to displaying a notification bar, a navigation bar or a negative screen.
例如,用户在使用智能手机阅读电子书时,可以通过本实施例提供的方案进行翻页,在翻页时,智能手机可以根据用户的操作确定上一页或下一页的内容的显示区域,并在确定的显示区域显示上一页以及下一页的内容,这样,可以在屏幕中同时显示两页电子书,方便用户同时阅读两页电子书。For example, when a user uses a smart phone to read an e-book, he can turn pages through the solution provided in this embodiment. When turning pages, the smart phone can determine the display area of the content of the previous page or the next page according to the user's operation, The content of the previous page and the next page is displayed in the determined display area, so that two pages of e-books can be displayed on the screen at the same time, which is convenient for users to read two pages of e-books at the same time.
本实施例在所述显示区域显示所述待显示内容后,若用户想要隐藏显示的所述内容,则可以在所述显示区域内执行第二输入,终端在接收到所述显示区域内的第二输入时,可以隐藏已显示的所述内容。In this embodiment, after the to-be-displayed content is displayed in the display area, if the user wants to hide the displayed content, a second input may be performed in the display area, and the terminal receives the content in the display area. During the second input, the displayed content can be hidden.
所述第二预设操作可以是滑动操作,例如左滑、右滑、上滑或下滑等,也可以是点击操作,例如,单击、双击或三击等,还可以是拖动操作,例如,向上拖动或向下拖动,具体可以是单指的拖动操作,也可以是双指的拖动操作。本发明实施例不再一一举例说明。The second preset operation may be a sliding operation, such as left sliding, right sliding, up sliding or sliding down, etc., or a click operation, such as single click, double click or triple click, etc., or a drag operation, such as , drag up or down, which can be a single-finger drag operation or a two-finger drag operation. The embodiments of the present invention will not be illustrated one by one.
本实施例提供的技术方案,可以应用于屏幕为异形结构的终端中,也可以应用于屏幕为规则结构的终端中。终端在显示待显示内容时,由于可以根据用户的第一输入的结束位置确定显示区域的大小,因此,相较于现有技术而言,可以灵活地控制显示区域的大小,在改善显示效果的同时,还可以提升用户的操作体验。The technical solution provided in this embodiment can be applied to a terminal with a screen with a special-shaped structure, or a terminal with a screen with a regular structure. When the terminal displays the content to be displayed, the size of the display area can be determined according to the end position of the first input of the user. Therefore, compared with the prior art, the size of the display area can be flexibly controlled, and the display effect can be improved. At the same time, it can also improve the user's operating experience.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
图8是本发明的一个实施例终端的结构示意图。所述终端包括:接收模块81、确定模块82以及显示模块83,其中:FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal includes: a receiving
接收模块81,接收用户在触发区域内的第一输入,所述触发区域为所述终端屏幕上的一部分;The receiving
确定模块82,响应于所述第一输入,确定待显示内容以及显示区域;The
显示模块83,在所述显示区域显示所述待显示内容。The
可选地,所述确定模块82,响应于所述第一输入,确定待显示内容,包括:Optionally, the determining
根据所述第一输入以及所述触发区域中的至少一种,按照预设规则确定所述待显示内容,所述预设规则包含所述第一输入以及所述触发区域中的至少一种与所述待显示内容之间的映射关系。According to at least one of the first input and the trigger area, the content to be displayed is determined according to a preset rule, and the preset rule includes at least one of the first input and the trigger area and the The mapping relationship between the contents to be displayed.
可选地,所述终端屏幕为异形结构,所述显示区域具有规则形状。Optionally, the terminal screen is a special-shaped structure, and the display area has a regular shape.
可选地,所述异形结构位于所述终端屏幕的上边缘;Optionally, the special-shaped structure is located on the upper edge of the terminal screen;
所述触发区域位于所述异形结构的左侧或右侧,若所述触发区域位于所述异形结构的左侧,则所述触发区域的高度不大于所述异形结构的高度,宽度不大于所述屏幕的左边缘与所述异形结构的左边缘之间在水平方向上的宽度;若所述触发区域位于所述异形结构的右侧,则所述触发区域的高度不大于所述异形结构的高度,宽度不大于所述异形结构的右边缘与所述屏幕的右边缘之间在水平方向上的宽度;The triggering area is located on the left or right side of the special-shaped structure. If the triggering area is located on the left side of the special-shaped structure, the height of the triggering area is not greater than the height of the special-shaped structure, and the width is not greater than the height of the special-shaped structure. The width in the horizontal direction between the left edge of the screen and the left edge of the special-shaped structure; if the trigger area is located on the right side of the special-shaped structure, the height of the trigger area is not greater than the height of the special-shaped structure. The height and width are not greater than the width in the horizontal direction between the right edge of the special-shaped structure and the right edge of the screen;
所述显示区域包括所述触发区域,所述显示区域的宽度与所述触发区域的宽度相同,所述显示区域的高度等于所述终端屏幕的高度。The display area includes the trigger area, the width of the display area is the same as the width of the trigger area, and the height of the display area is equal to the height of the terminal screen.
可选地,所述触发区域的高度等于所述终端屏幕的高度,所述触发区域的宽度等于预设宽度,所述预设宽度小于所述终端屏幕的宽度;Optionally, the height of the trigger area is equal to the height of the terminal screen, the width of the trigger area is equal to a preset width, and the preset width is smaller than the width of the terminal screen;
所述显示区域包含所述触发区域。The display area includes the trigger area.
可选地,所述确定模块82,响应于所述第一输入,确定显示区域,包括:Optionally, the determining
根据所述第一输入的结束位置,确定显示区域。The display area is determined according to the end position of the first input.
可选地,所述确定模块82,根据所述第一输入的结束位置,确定显示区域,包括:Optionally, the determining
当所述第一输入的结束位置位于所述触发区域内时,所述显示区域为所述触发区域;When the end position of the first input is located in the trigger area, the display area is the trigger area;
当所述第一输入的结束位置位于所述触发区域外时,确定所述第一输入的结束位置与所述第一输入对应的屏幕边缘之间的水平距离是否大于预设距离;若是,则所述显示区域为所述屏幕的全部显示区域;若否,则所述显示区域的高度等于所述触发区域的高度,宽度等于所述结束位置与所述屏幕边缘之间的水平距离。When the end position of the first input is outside the trigger area, determine whether the horizontal distance between the end position of the first input and the edge of the screen corresponding to the first input is greater than a preset distance; if so, then The display area is the entire display area of the screen; if not, the height of the display area is equal to the height of the trigger area, and the width is equal to the horizontal distance between the end position and the edge of the screen.
可选地,所述显示模块83,在所述显示区域显示所述待显示内容,包括以下至少一种:Optionally, the
所述待显示内容的大小不变,所述待显示内容的数量与所述显示区域的大小成正比;The size of the to-be-displayed content remains unchanged, and the quantity of the to-be-displayed content is proportional to the size of the display area;
所述待显示内容的数量不变,所述待显示内容的大小与所述显示区域的大小成正比;The quantity of the content to be displayed remains unchanged, and the size of the content to be displayed is proportional to the size of the display area;
当所述显示区域小于所述待显示内容所占的区域时,在所述显示区域中滚动显示所述待显示内容。When the display area is smaller than the area occupied by the content to be displayed, the content to be displayed is scrolled and displayed in the display area.
可选地,所述显示模块83,在所述显示区域显示所述待显示内容时,还包括以下至少一种:Optionally, the
当所述显示区域小于所述屏幕的全部显示区域时,所述待显示内容覆盖所述显示区域处的初始内容,所述屏幕的第一区域显示未被所述待显示内容覆盖的所述初始内容,所述第一区域为所述屏幕中除所述显示区域外的区域;When the display area is smaller than the entire display area of the screen, the to-be-displayed content covers the initial content in the display area, and the first area of the screen displays the initial content not covered by the to-be-displayed content content, the first area is an area of the screen other than the display area;
当所述显示区域小于所述屏幕的全部显示区域时,所述初始内容沿所述第一输入的方向移动,所述第一区域显示所述初始内容的一部分;When the display area is smaller than the entire display area of the screen, the initial content moves in the direction of the first input, and the first area displays a part of the initial content;
当所述显示区域小于所述屏幕的全部显示区域时,所述第一区域缩小显示所述初始内容;When the display area is smaller than the entire display area of the screen, the first area is reduced to display the initial content;
当所述显示区域小于所述屏幕的全部显示区域时,所述第一区域滚动显示所述初始内容。When the display area is smaller than the entire display area of the screen, the first area scrolls and displays the initial content.
本发明实施例提供的终端能够实现图1的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例中,可以预先确定不同的第一输入与不同的待显示内容以及显示区域之间的映射关系,在接收用户在触发区域内的第一输入时,响应于所述第一输入,根据所述第一输入确定待显示内容以及显示区域;在所述显示区域显示所述待显示内容。这样,可以根据用户的第一输入,灵活地确定待显示内容和显示区域,相较于现有技术而言,由于可以灵活地确定待显示内容和显示区域,因此,可以改善显示效果。The terminal provided in this embodiment of the present invention can implement each process implemented by the terminal in the method embodiment of FIG. 1 , and to avoid repetition, details are not described here. In this embodiment of the present invention, the mapping relationship between different first inputs and different to-be-displayed contents and display areas may be predetermined, and when receiving the first input from the user in the trigger area, in response to the first input, The content to be displayed and a display area are determined according to the first input; the content to be displayed is displayed in the display area. In this way, the content to be displayed and the display area can be flexibly determined according to the first input of the user. Compared with the prior art, since the content to be displayed and the display area can be determined flexibly, the display effect can be improved.
图9为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
该移动终端900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术人员可以理解,图9中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The
其中,处理器910,用于接收用户在触发区域内的第一输入,所述触发区域为所述终端屏幕上的一部分;响应于所述第一输入,确定待显示内容以及显示区域;控制显示单元906在所述显示区域显示所述待显示内容。The
这样,可以根据用户的第一输入,灵活地确定待显示内容和显示区域,相较于现有技术而言,由于可以灵活地确定待显示内容和显示区域,因此,可以改善显示效果。In this way, the content to be displayed and the display area can be flexibly determined according to the first input of the user. Compared with the prior art, since the content to be displayed and the display area can be determined flexibly, the display effect can be improved.
应理解的是,本发明实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发起,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发起给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
移动终端通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the
音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与移动终端900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。The
输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发起。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发起到移动通信基站的格式输出。The
移动终端900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感器可在移动终端900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。The
用户输入单元907可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the
接口单元908为外部装置与移动终端900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端900内的一个或多个元件或者可以用于在移动终端900和外部装置之间传输数据。The
存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器910是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器910可包括一个或多个处理单元;优选的,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。The
移动终端900还可以包括给各个部件供电的电源911(比如电池),优选的,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,移动终端900包括一些未示出的功能模块,在此不再赘述。In addition, the
优选地,本发明实施例还提供一种移动终端,包括:处理器910,存储器909,存储在存储器909上并可在所述处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述内容显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, comprising: a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述内容显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing content display method embodiment can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810670295.1A CN108984062B (en) | 2018-06-26 | 2018-06-26 | A content display method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810670295.1A CN108984062B (en) | 2018-06-26 | 2018-06-26 | A content display method and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108984062A CN108984062A (en) | 2018-12-11 |
| CN108984062B true CN108984062B (en) | 2020-10-16 |
Family
ID=64538347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810670295.1A Active CN108984062B (en) | 2018-06-26 | 2018-06-26 | A content display method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108984062B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109918001B (en) * | 2019-03-28 | 2022-07-29 | 北京小米移动软件有限公司 | Interface display method, device and storage medium |
| CN110139154B (en) * | 2019-05-15 | 2021-08-31 | 京东方科技集团股份有限公司 | A display device control method, device and system |
| CN114077372B (en) * | 2021-11-22 | 2024-09-20 | 北京有竹居网络技术有限公司 | Information display method, device and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009120925A2 (en) * | 2008-03-28 | 2009-10-01 | Sprint Communications Company L.P. | Operating a mobile communications device |
| CN105243308A (en) * | 2015-09-25 | 2016-01-13 | 维沃移动通信有限公司 | Display method and mobile terminal |
| CN105278841A (en) * | 2015-11-12 | 2016-01-27 | 小米科技有限责任公司 | Control method and device for terminal equipment |
| CN106201313A (en) * | 2016-06-30 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method for information display and system |
| CN107526509A (en) * | 2017-09-05 | 2017-12-29 | 广东欧珀移动通信有限公司 | Message display method, device and mobile terminal |
| CN107797704A (en) * | 2017-10-27 | 2018-03-13 | 努比亚技术有限公司 | Touch control method, mobile terminal and the storage medium of mobile terminal |
| CN108040168A (en) * | 2017-11-29 | 2018-05-15 | 努比亚技术有限公司 | Mobile terminal operating method, mobile terminal and computer-readable recording medium |
-
2018
- 2018-06-26 CN CN201810670295.1A patent/CN108984062B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009120925A2 (en) * | 2008-03-28 | 2009-10-01 | Sprint Communications Company L.P. | Operating a mobile communications device |
| CN105243308A (en) * | 2015-09-25 | 2016-01-13 | 维沃移动通信有限公司 | Display method and mobile terminal |
| CN105278841A (en) * | 2015-11-12 | 2016-01-27 | 小米科技有限责任公司 | Control method and device for terminal equipment |
| CN106201313A (en) * | 2016-06-30 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method for information display and system |
| CN107526509A (en) * | 2017-09-05 | 2017-12-29 | 广东欧珀移动通信有限公司 | Message display method, device and mobile terminal |
| CN107797704A (en) * | 2017-10-27 | 2018-03-13 | 努比亚技术有限公司 | Touch control method, mobile terminal and the storage medium of mobile terminal |
| CN108040168A (en) * | 2017-11-29 | 2018-05-15 | 努比亚技术有限公司 | Mobile terminal operating method, mobile terminal and computer-readable recording medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108984062A (en) | 2018-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109375890B (en) | Screen display method and multi-screen electronic equipment | |
| CN108536411A (en) | A kind of method for controlling mobile terminal and mobile terminal | |
| CN111596845A (en) | Display control method and device and electronic equipment | |
| CN108628565B (en) | Mobile terminal operation method and mobile terminal | |
| CN108762705B (en) | Information display method, mobile terminal and computer-readable storage medium | |
| CN108628521A (en) | A kind of screen operating method and mobile terminal | |
| CN107728923B (en) | An operation processing method and mobile terminal | |
| CN110209313A (en) | Icon moving method and terminal device | |
| WO2020156169A1 (en) | Display control method and terminal device | |
| US11354017B2 (en) | Display method and mobile terminal | |
| CN109857289B (en) | Display control method and terminal equipment | |
| CN111338530A (en) | Application icon control method and electronic device | |
| CN110196667A (en) | A kind of processing method and terminal of notification message | |
| CN110531904A (en) | Background task display method and terminal | |
| CN110489029A (en) | Icon display method and terminal device | |
| CN108595089A (en) | A kind of virtual key control method and mobile terminal | |
| CN109521937B (en) | Screen display control method and mobile terminal | |
| CN109407949B (en) | A display control method and terminal | |
| CN110825295A (en) | Application control method and electronic device | |
| CN111026480A (en) | A content display method and electronic device | |
| CN108228902B (en) | File display method and mobile terminal | |
| WO2021129786A1 (en) | Display method and electronic device | |
| US11669237B2 (en) | Operation method and terminal device | |
| WO2021031868A1 (en) | Interface display method and terminal | |
| CN108984099B (en) | Man-machine interaction method and terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |