HK1250575B - Character string display method and terminal device - Google Patents
Character string display method and terminal device Download PDFInfo
- Publication number
- HK1250575B HK1250575B HK18109944.8A HK18109944A HK1250575B HK 1250575 B HK1250575 B HK 1250575B HK 18109944 A HK18109944 A HK 18109944A HK 1250575 B HK1250575 B HK 1250575B
- Authority
- HK
- Hong Kong
- Prior art keywords
- character string
- control area
- reset control
- area
- length
- Prior art date
Links
Description
技术领域Technical Field
本发明涉及文字绘制处理领域,尤其涉及的是一种应用于终端设备的显示字符串的方法以及终端设备。The present invention relates to the field of text drawing processing, and in particular to a method for displaying a character string applied to a terminal device and the terminal device.
背景技术Background Art
在终端设备的显示屏上会显示有多个控件区域,由于界面绘制以及文字编辑等需求,会预先设置所述控件区域的大小,从而使得在所述控件区域内输出的字符串的长度小于或等于所述控件区域的长度,且终端设备可对各所述控件区域进行透明化处理,从而使得对于用户而言,各所述控件区域为不可见区域。Multiple control areas will be displayed on the display screen of the terminal device. Due to the needs of interface drawing and text editing, the size of the control area will be set in advance, so that the length of the character string output in the control area is less than or equal to the length of the control area, and the terminal device can make each of the control areas transparent, so that each of the control areas is invisible to the user.
如图1所示为例,将终端设备的显示屏划分出多个控件区域100,以任一控件区域100所示为例,所述控件区域100内设置有图标以及与所述图标对应的字符串,所述图标能够接收用户输入的触摸事件,从而使得所述图标能够根据用户输入的触摸事件进行对应的功能响应,例如,启动所述图标对应的应用,与所述图标对应的字符串可为所述图标对应的名称,由图1所示可知,用户能够通过所述控件区域100内所示的字符串获取到当前控件区域内所显示的图标能够启动腾讯新闻的应用。又以控件区域101所示为例,在所述控件区域101设置有图标以及与所述图标对应的字符串PlayMemories Mobile,所述PlayMemoriesMobile用于专业的智能手机和/或平板电脑的图像传输应用软件,由于用一行显示字符串PlayMemories Mobile,则会超过所述控件区域101的长度,则将所述控件区域101内所显示的字符串进行分行显示,显示效果请详见图1所示。As shown in FIG1 , the display screen of a terminal device is divided into multiple control areas 100. Taking any control area 100 as an example, an icon and a string corresponding to the icon are provided in the control area 100. The icon can receive a touch event input by the user, so that the icon can perform a corresponding functional response based on the touch event input by the user, for example, launching the application corresponding to the icon. The string corresponding to the icon can be the name corresponding to the icon. As shown in FIG1 , the user can obtain the icon displayed in the current control area through the string displayed in the control area 100 to launch the Tencent News application. Taking control area 101 as an example, an icon and a string corresponding to the icon, PlayMemories Mobile, are provided in the control area 101. PlayMemoriesMobile is a professional image transmission application software for smartphones and/or tablets. Since displaying the string PlayMemories Mobile in one line would exceed the length of the control area 101, the string displayed in the control area 101 is displayed in separate lines. Please see FIG1 for the display effect.
可见,采用现有技术所示,由于长度大于控件区域长度的字符串会进行分行显示,分行显示的字符串会降低用户的阅读效率,降低了用户对终端设备进行操作的效率。It can be seen that, according to the prior art, since character strings longer than the length of the control area will be displayed in separate lines, the character strings displayed in separate lines will reduce the user's reading efficiency and reduce the efficiency of the user's operation of the terminal device.
发明内容Summary of the Invention
本发明实施例提供了一种能够有效的减少显示在终端设备的显示屏上的字符串被截断的次数,提升用户阅读字符串效率的显示字符串的方法以及终端设备。The embodiments of the present invention provide a method for displaying a character string and a terminal device, which can effectively reduce the number of times a character string displayed on a display screen of a terminal device is truncated, thereby improving the efficiency of a user in reading the character string.
本发明实施例第一方面提供了一种显示字符串的方法,包括:A first aspect of an embodiment of the present invention provides a method for displaying a character string, comprising:
步骤A0、检测所述终端设备所显示的子区域是否满足预设条件,若是,则执行步骤B。Step A0: Detect whether the sub-area displayed by the terminal device meets the preset conditions. If so, execute step B.
具体的,所述终端设备可预先设置预设坐标范围,且各预设坐标范围与各所述控件区域对应,以使控件区域显示在与所述控件区域对应的所述预设坐标范围内,可见,本实施例所示的终端设备以通过所述预设坐标范围设定了控件区域在所述显示屏上的显示位置和显示的范围。Specifically, the terminal device can pre-set a preset coordinate range, and each preset coordinate range corresponds to each control area, so that the control area is displayed within the preset coordinate range corresponding to the control area. It can be seen that the terminal device shown in this embodiment sets the display position and display range of the control area on the display screen through the preset coordinate range.
具体的,本实施例所提供的所述控件区域内包含有用于显示在终端设备显示屏上的字符串。Specifically, the control area provided in this embodiment includes a character string for displaying on a display screen of a terminal device.
可选的,所述控件区域内可包括用于响应用户所输入的操作事件的图标和/或虚拟按键。Optionally, the control area may include icons and/or virtual keys for responding to operation events input by the user.
本实施例所示的终端设备的显示屏沿所述终端设备的横向方向划分出至少一个子区域,各所述子区域内设置有至少一个所述控件区域。The display screen of the terminal device shown in this embodiment is divided into at least one sub-area along the horizontal direction of the terminal device, and at least one control area is set in each sub-area.
位于相同的一个子区域中,任意相邻的两个控件区域之间设置有第一预设间隔。In the same sub-area, a first preset interval is set between any two adjacent control areas.
本实施例所述的预设条件为:所述子区域包括有至少一个目标控件区域。The preset condition described in this embodiment is that the sub-area includes at least one target control area.
所述目标控件区域内所包含的字符串的长度大于所述目标控件区域的长度。The length of the character string contained in the target control area is greater than the length of the target control area.
具体的,若所述终端设备确定子区域所包括的多个所述控件区域中任一控件区域内的字符串的长度小于或等于所述控件区域的长度,则所述终端设备生成控制信息,从而继续执行步骤B。Specifically, if the terminal device determines that the length of the character string in any control area of the multiple control areas included in the sub-area is less than or equal to the length of the control area, the terminal device generates control information and continues to execute step B.
或,在执行步骤B之前,所述终端设备执行步骤A1;Or, before executing step B, the terminal device executes step A1;
步骤A1、接收用户输入的用于生成所述控制信息的操作。Step A1: Receive an operation input by a user for generating the control information.
具体的,当用户对所述终端设备进行语言的重新设定时,本实施例以用户将终端设备的语言由中文设定为英文为例,则所述终端设备可通过显示屏显示有操作界面,该操作界面可指示用户是否需要对控件区域进行设定以形成所述重设控件区域,若用户通过所述操作界面通知所述终端设备需要对控件区域进行设定以形成所述重设控件区域,则所述终端设备可根据用户的操作生成所述控制信息,所述控制信息用于触发所述终端设备对步骤B的执行。Specifically, when the user resets the language of the terminal device, this embodiment takes the example of the user setting the language of the terminal device from Chinese to English, then the terminal device can display an operation interface through the display screen, and the operation interface can indicate whether the user needs to set the control area to form the reset control area. If the user notifies the terminal device through the operation interface that the control area needs to be set to form the reset control area, then the terminal device can generate the control information according to the user's operation, and the control information is used to trigger the terminal device to execute step B.
步骤B、接收控制信息。Step B: Receive control information.
本实施例所述的控制信息用于指示终端设备对所述控件区域进行处理以形成满足第一目标条件的重设控件区域,所述第一目标条件为所述至少两个重设控件区域中沿所述显示屏横向方向任意相邻的两个重设控件区域之间相互连接,即相邻的两个重设控件区域之间不再设置有所述第一间隔。The control information described in this embodiment is used to instruct the terminal device to process the control area to form a reset control area that meets the first target condition, and the first target condition is that any two adjacent reset control areas along the horizontal direction of the display screen among the at least two reset control areas are connected to each other, that is, the first interval is no longer set between the two adjacent reset control areas.
步骤C、将所述重设控件区域显示在显示屏上。Step C: displaying the reset control area on a display screen.
具体的,所述终端设备在接收到所述控制信息后,所述终端设备即可根据所述控制信息将所述至少两个重设控件区域显示在所述显示屏上。Specifically, after receiving the control information, the terminal device may display the at least two reset control areas on the display screen according to the control information.
具体的,目标子区域为满足所述预设条件的子区域。Specifically, the target sub-region is a sub-region that meets the preset condition.
所述重设控件区域所具有的长度为重设长度。The reset control area has a length that is a reset length.
具体的,所述目标子区域所包括的多个所述控件区域中包括至少一个所述目标控件区域。Specifically, the multiple control areas included in the target sub-area include at least one target control area.
具体对所述目标子区域进行重新设置的流程为:The specific process of resetting the target sub-area is as follows:
获取所述目标子区域沿所述终端设备的横向方向的长度L;Obtaining a length L of the target sub-area along a horizontal direction of the terminal device;
获取所述目标子区域所包括的控件区域的数目N;Obtain the number N of control areas included in the target sub-area;
确定各所述重设控件区域的重设长度为L/N。The reset length of each reset control area is determined to be L/N.
本实施例对所述目标子区域的长度不作更改,以使对所述目标子区域进行重新设置后的长度与对所述目标子区域进行重新设置前的长度相同。In this embodiment, the length of the target sub-region is not changed, so that the length of the target sub-region after the reset is the same as the length before the reset.
所述终端设备获取所述目标子区域沿所述终端设备的横向方向的长度L;The terminal device acquires a length L of the target sub-area along a horizontal direction of the terminal device;
获取所述目标子区域所包括的控件区域的数目N;Obtain the number N of control areas included in the target sub-area;
确定各所述重设控件区域的重设长度为L/N。The reset length of each reset control area is determined to be L/N.
对所述目标子区域进行重新设置后满足两个条件:After resetting the target sub-area, two conditions are met:
第一个条件:在对所述目标子区域进行重新设置前,位于所述目标子区域内任意相邻的两个所述控件区域之间设置有所述第一预设间隔,在对所述目标子区域进行重新设置后,位于所述目标子区域内任意相邻的两个所述重设控件区域之间不再设置所述第一预设间隔,即所述目标子区域内任意相邻的两个所述重设控件区域是彼此抵靠的,在显示效果上,所述目标子区域内任意相邻的两个所述重设控件区域的边界线是彼此重合的。The first condition: before the target sub-area is reset, the first preset interval is set between any two adjacent control areas within the target sub-area; after the target sub-area is reset, the first preset interval is no longer set between any two adjacent reset control areas within the target sub-area, that is, any two adjacent reset control areas within the target sub-area are against each other, and in terms of display effect, the boundary lines of any two adjacent reset control areas within the target sub-area coincide with each other.
第二个条件:位于所述目标子区域内两侧的重设控件区域为重设控件区域以及重设控件区域,所述重设控件区域与终端设备的显示屏的边缘之间设置有第二预设间隔,所述重设控件区域与终端设备的显示屏的边缘之间设置有第二预设间隔,本实施例对所述第二预设间隔的大小不做限定。The second condition: the reset control areas located on both sides of the target sub-area are the reset control area and the reset control area, and a second preset interval is set between the reset control area and the edge of the display screen of the terminal device. A second preset interval is set between the reset control area and the edge of the display screen of the terminal device. This embodiment does not limit the size of the second preset interval.
步骤D、在所述重设控件区域中显示字符串。Step D: Displaying a character string in the reset control area.
本实施例中,因对控件区域进行处理以形成所述重设空间区域,且在沿所述显示屏横向方向上,所述重设控件区域的长度大于所述控件区域的长度,则所述重设控件区域所能够显示的字符串的长度大于所述控件区域所能够显示的字符串的长度,则本实施例通过所述重设控件区域进行字符串的显示,能够有效的减少控件区域所显示的字符串的行数,从而提升了用户阅读重设控件区域内所显示的字符串的效率。In this embodiment, since the control area is processed to form the reset space area, and the length of the reset control area is greater than the length of the control area along the horizontal direction of the display screen, the length of the character string that can be displayed in the reset control area is greater than the length of the character string that can be displayed in the control area. In this embodiment, the display of the character string through the reset control area can effectively reduce the number of lines of the character string displayed in the control area, thereby improving the user's efficiency in reading the character string displayed in the reset control area.
结合本发明实施例的第一方面,本发明实施例第一方面的第一种实现方式中,所述步骤D包括:In conjunction with the first aspect of the embodiment of the present invention, in a first implementation manner of the first aspect of the embodiment of the present invention, step D includes:
步骤D11、确定第一目标重设控件区域。Step D11: Determine a first target reset control area.
本实施例中,所述第一目标重设控件区域的两侧均设置有第二目标重设控件区域,且所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,所述第二目标重设控件区域内所包括的第二字符串的长度大于所述第二目标重设控件区域的长度。In this embodiment, a second target reset control area is provided on both sides of the first target reset control area, and the length of the first character string included in the first target reset control area is greater than the length of the first target reset control area, and the length of the second character string included in the second target reset control area is greater than the length of the second target reset control area.
步骤D12、对所述第一字符串进行目标处理。Step D12: performing target processing on the first character string.
其中,所述目标处理为对所述第一目标重设控件区域内所包括的第一字符串的任一字符进行缩小处理,以使缩小处理后的所述第一字符串的任一字符大于或等于第一预设值。The target processing is to reduce the size of any character of the first character string included in the first target reset control area, so that any character of the first character string after the reduction processing is greater than or equal to a first preset value.
本实施例对所述第一预设值的大小不做限定,只要大于或等于所述第一预设值的所述字符能够被用户看清即可。This embodiment does not limit the size of the first preset value, as long as the characters greater than or equal to the first preset value can be clearly seen by the user.
步骤D13、将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一目标重设控件区域内。Step D13: Display the first character string after target processing in the first target reset control area in a display mode of at least one line of character strings.
通过本实施例所示的步骤D13,以使所述第一字符串的所述至少一行字符串中的任一行字符串满足第二目标条件。Through step D13 shown in this embodiment, any one line of character strings in the at least one line of character strings of the first character string satisfies the second target condition.
所述第二目标条件为经过所述目标处理后的所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一目标重设控件区域的重设长度,且所述第一字符串的所述至少一行字符串中的任一行字符串和所述第二字符串之间的间隔大于或等于第二预设值。The second target condition is that the length of any one line of character strings in the at least one line of character strings of the first character string after the target processing is less than or equal to the reset length of the first target reset control area, and the interval between any one line of character strings in the at least one line of character strings of the first character string and the second character string is greater than or equal to a second preset value.
采用本实施例所示的方法可知,在所述第一目标重设控件区域的两侧均设置有第二目标重设控件区域,且所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,所述第二目标重设控件区域内所包括的第二字符串的长度大于所述第二目标重设控件区域的长度的情况下,本实施例能够对所述第一字符串进行目标处理,从而使得所述第一字符串的所述至少一行字符串中的任一行字符串满足第二目标条件。It can be seen from the method shown in this embodiment that when a second target reset control area is provided on both sides of the first target reset control area, and the length of the first character string included in the first target reset control area is greater than the length of the first target reset control area, and the length of the second character string included in the second target reset control area is greater than the length of the second target reset control area, this embodiment can perform target processing on the first character string, so that any one line of the at least one line of character strings of the first character string satisfies the second target condition.
可选的,若经过所述目标处理后的第一字符串的长度小于或等于所述重设控件区域的长度,则将经过所述目标处理后的第一字符串居中显示在所述重设控件区域内。Optionally, if the length of the first character string after the target processing is less than or equal to the length of the reset control area, the first character string after the target processing is displayed in the center of the reset control area.
还可选的,若经过所述目标处理后的第一字符串的长度大于所述重设控件区域的长度,则将经过所述目标处理后的第一字符串分行显示在所述重设控件区域内。Optionally, if the length of the first character string after the target processing is greater than the length of the reset control area, the first character string after the target processing is displayed in the reset control area in separate lines.
还可选的,若所述终端设备确定出即便将所述重设控件区域内的字符进行缩小处理也无法在所述重设控件区域内进行单行显示,则所述终端设备可不对所述重设控件区域内的字符进行缩小处理,而是直接进行分行显示。Optionally, if the terminal device determines that the characters in the reset control area cannot be displayed in a single line in the reset control area even if they are reduced in size, the terminal device may not reduce the characters in the reset control area, but directly display them in separate lines.
采用本实施例所示的方法,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在重设控件区域的左右两侧的重设控件区域均满足所述第一条件的情况下,可对所述重设控件区域内的字符串进行缩小处理,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。By adopting the method shown in this embodiment, the length of the control area shown in the prior art is expanded, so that the reset control area shown in this embodiment can display a longer character string, and when the reset control areas on the left and right sides of the reset control area meet the first condition, the character string in the reset control area can be reduced. Therefore, compared with the prior art that does not modify the character string, the embodiment shown in this embodiment can avoid the character string in the reset control area from wrapping or reduce the number of lines of the character string in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例的第一方面,本发明实施例第一方面的第二种实现方式中,所述步骤D包括:In conjunction with the first aspect of the embodiment of the present invention, in a second implementation of the first aspect of the embodiment of the present invention, step D includes:
步骤D21、确定第一目标重设控件区域。Step D21: Determine a first target reset control area.
本实施例中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度大于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度。In this embodiment, the length of the first character string included in the first target reset control area is greater than the length of the first target reset control area, the length of the second character string in the second target reset control area located on the first side of the first target reset control area is less than the second length, and the second length is the reset length of the second target reset control area located on the first side of the first target reset control area, and the length of the third character string in the second target reset control area located on the second side of the first target reset control area is greater than the third length, and the third length is the reset length of the second target reset control area located on the second side of the first target reset control area.
步骤D22、确定第一字符串单行显示区域。Step D22: Determine a single-line display area for the first character string.
所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域与所述第二字符串之间的间隔大于或等于第二预设值;The first character string single-line display area is extended from the first target reset control area toward the second character string, so that the length of the first character string single-line display area is greater than the reset length of the first target reset control area, and the interval between the first character string single-line display area and the second character string is greater than or equal to a second preset value;
步骤D23、将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内。Step D23: Display the first character string in a first character string single-line display area in a display mode of at least one line of character strings.
采用本实施例所示的方法能够使得所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的重设长度。The method shown in this embodiment can ensure that the length of any one line of the at least one line of the first character string is less than or equal to the reset length of the single-line display area of the first character string.
具体的,所述第一目标重设控件区域可包括用于显示图标的区域和用于显示字符串的区域,在所述第一字符串的长度大于所述第一目标重设控件区域的长度的情况下,可将所述第一目标重设控件区域全部区域沿所述第二字符串的方向延伸,直至所述第一字符串单行显示区域与所述第二字符串之间的距离大于或等于所述第二预设值,或者,可将所述第一目标重设控件区域内用于显示字符串的区域沿所述第二字符串的方向延伸,直至所述第一字符串单行显示区域内用于显示字符串的区域与所述第二字符串之间的距离大于或等于所述第二预设值。Specifically, the first target reset control area may include an area for displaying icons and an area for displaying strings. When the length of the first string is greater than the length of the first target reset control area, the entire area of the first target reset control area may be extended in the direction of the second string until the distance between the single-line display area of the first string and the second string is greater than or equal to the second preset value, or the area for displaying strings within the first target reset control area may be extended in the direction of the second string until the distance between the area for displaying strings within the single-line display area of the first string and the second string is greater than or equal to the second preset value.
具体的,在所述第一字符串单行显示区域向所述第二字符串延伸的过程中,若所述第一字符串单行显示区域的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域不再延伸;Specifically, in the process of extending the first character string single-line display area toward the second character string, if the length of the first character string single-line display area is greater than or equal to the length of the first character string single-line display, the first character string single-line display area is no longer extended;
若所述第一字符串单行显示区域向所述第二字符串延伸过程中,所述第一字符串单行显示区域与所述第二字符串之间的距离等于所述第二预设值,和/或所述第一字符串单行显示区域的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域不再向所述第二字符串方向延伸。If, during the process of extending the single-line display area of the first character string toward the second character string, the distance between the single-line display area of the first character string and the second character string is equal to the second preset value, and/or the length of the single-line display area of the first character string is greater than or equal to the length of the single-line display of the first character string, the single-line display area of the first character string no longer extends toward the second character string.
本实施例所示的显示所述第一字符串的具体流程为:The specific process of displaying the first character string shown in this embodiment is:
判断所述第一字符串的长度是否小于或等于所述第一字符串单行显示区域的长度。It is determined whether the length of the first character string is less than or equal to the length of the single-line display area of the first character string.
若是,则将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域内;If yes, displaying the first character string in a single line in the first character string single line display area;
若否,则将所述第一字符串以分行的方式显示在所述第一字符串单行显示区域内。If not, the first character string is displayed in a line-by-line manner in the first character string single-line display area.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在第一目标重设控件区域的一侧满足第一条件,所述第一条件为:所述重设控件区域内的字符串的长度大于所述重设控件区域的重设长度,所述第一目标重设控件区域的另一侧满足第二条件的情况下,所述第二条件为:所述重设控件区域内的字符串的长度小于所述重设控件区域的重设长度,所述第一目标重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer string, and the first condition is met on one side of the first target reset control area, the first condition is: the length of the string in the reset control area is greater than the reset length of the reset control area, and when the other side of the first target reset control area meets the second condition, the second condition is: the length of the string in the reset control area is less than the reset length of the reset control area, the first string in the first target reset control area can be extended to the second string in the reset control area that meets the second condition, and the distance between the first string and the second string is greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the string, this embodiment can avoid the string in the reset control area from wrapping or reduce the number of lines of the string in the reset control area, thereby reducing the number of string truncation and improving the efficiency of user reading of the string.
结合本发明实施例的第一方面,本发明实施例第一方面的第三种实现方式中,所述步骤D包括:In conjunction with the first aspect of the embodiment of the present invention, in a third implementation manner of the first aspect of the embodiment of the present invention, step D includes:
步骤D31、确定第一目标重设控件区域。Step D31: Determine a first target reset control area.
其中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度小于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度。Among them, the length of the first character string included in the first target reset control area is greater than the length of the first target reset control area, the length of the second character string in the second target reset control area located on the first side of the first target reset control area is less than the second length, and the second length is the reset length of the second target reset control area located on the first side of the first target reset control area; the length of the third character string in the second target reset control area located on the second side of the first target reset control area is less than the third length, and the third length is the reset length of the second target reset control area located on the second side of the first target reset control area.
步骤D32、确定第一字符串单行显示区域。Step D32: Determine a single-line display area for the first character string.
所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串和所述第三字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域分别与所述第二字符串和所述第三字符串之间的间隔大于或等于第二预设值。The first character string single-line display area is extended from the first target reset control area toward the second character string and the third character string, so that the length of the first character string single-line display area is greater than the reset length of the first target reset control area, and the intervals between the first character string single-line display area and the second character string and the third character string are greater than or equal to a second preset value.
步骤D33、将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内。Step D33: Display the first character string in a first character string single-line display area in a display mode of at least one line of character strings.
采用本实施例所示的方法,能够使得所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的长度。By adopting the method shown in this embodiment, the length of any one line of the at least one line of the first character string can be made less than or equal to the length of the single-line display area of the first character string.
本实施例所示的第一字符串能够居中对齐后在所述重设控件区域内分别向所述第二字符串和所述第三字符串的方向移动。The first character string shown in this embodiment can be aligned in the center and then moved toward the second character string and the third character string respectively within the reset control area.
在本实施例中,所述第一字符串单行显示区域的延伸的具体过程可为:In this embodiment, the specific process of extending the single-line display area of the first character string may be:
具体的,若所述第一字符串单行显示区域均匀向两边延伸过程中,若所述第一字符串单行显示区域的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域不再向两边延伸;Specifically, if the first character string single-line display area is uniformly extended to both sides, and if the length of the first character string single-line display area is greater than or equal to the length of the first character string single-line display, the first character string single-line display area is no longer extended to both sides;
若所述第一字符串单行显示区域向所述第二字符串和所述第三字符串延伸过程中,所述第一字符串单行显示区域与所述第二字符串之间的距离等于所述第二预设值,且所述第一字符串单行显示区域与所述第三字符串之间的距离大于所述第二预设值,则所述第一字符串单行显示区域不再向所述第二字符串方向延伸,而是向所述第三字符串方向延伸,直至所述第一字符串单行显示区域的长度大于或等于所述第一字符串单行显示的长度和/或所述第一字符串单行显示区域805与所述第三字符串之间的距离等于所述第二预设值;If, during the process of extending the first character string single-line display area toward the second character string and the third character string, the distance between the first character string single-line display area and the second character string is equal to the second preset value, and the distance between the first character string single-line display area and the third character string is greater than the second preset value, the first character string single-line display area no longer extends toward the second character string, but instead extends toward the third character string, until the length of the first character string single-line display area is greater than or equal to the length of the first character string single-line display and/or the distance between the first character string single-line display area 805 and the third character string is equal to the second preset value;
若所述第一字符串单行显示区域向所述第二字符串和所述第三字符串延伸过程中,所述第一字符串单行显示区域与所述第三字符串之间的距离等于所述第二预设值,且所述第一字符串单行显示区域与所述第二字符串之间的距离大于所述第二预设值,则所述第一字符串单行显示区域不再向所述第三字符串方向延伸,而是向所述第二字符串方向延伸,直至所述第一字符串单行显示区域的长度大于或等于所述第一字符串单行显示的长度和/或所述第一字符串单行显示区域与所述第二字符串之间的距离等于所述第二预设值。If, during the process of extending the single-line display area of the first character string toward the second character string and the third character string, the distance between the single-line display area of the first character string and the third character string is equal to the second preset value, and the distance between the single-line display area of the first character string and the second character string is greater than the second preset value, the single-line display area of the first character string no longer extends toward the third character string, but instead extends toward the second character string until the length of the single-line display area of the first character string is greater than or equal to the length of the single-line display of the first character string and/or the distance between the single-line display area of the first character string and the second character string is equal to the second preset value.
本实施例所示的显示所述第一字符串的具体流程为:The specific process of displaying the first character string shown in this embodiment is:
判断所述第一字符串的长度是否小于或等于所述第一字符串单行显示区域的长度。It is determined whether the length of the first character string is less than or equal to the length of the single-line display area of the first character string.
若是,则将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域内;If yes, displaying the first character string in a single line in the first character string single line display area;
若否,则将所述第一字符串以分行的方式显示在所述第一字符串单行显示区域内。If not, the first character string is displayed in a line-by-line manner in the first character string single-line display area.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的第一目标重设控件区域能够显示更长的字符串,且在位于第一位置的第一目标重设控件区域的两侧的重设控件区域均满足所述第二条件的情况下,所述第一目标重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串和所述第三字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,以及保障所述第一字符串和所述第三字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the first target reset control area shown in this embodiment can display a longer character string, and when the reset control areas on both sides of the first target reset control area located at the first position meet the second condition, the first character string in the first target reset control area can be extended to the second character string and the third character string in the reset control area that meets the second condition, and ensure that the distance between the first character string and the second character string is greater than or equal to the second preset value, and ensure that the distance between the first character string and the third character string is greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the character string, this embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of string truncation times and improving the efficiency of user reading of the character string.
结合本发明实施例第一方面的第二种实现方式或本发明实施例第一方面的第三种实现方式,本发明实施例第一方面的第四种实现方式中,所述步骤D还包括:In combination with the second implementation of the first aspect of the embodiment of the present invention or the third implementation of the first aspect of the embodiment of the present invention, in the fourth implementation of the first aspect of the embodiment of the present invention, step D further includes:
步骤D41、对第一字符串进行目标处理。Step D41: perform target processing on the first character string.
其中,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。The target processing is to reduce the character string so that the reduced character string is greater than or equal to a first preset value.
步骤D42、将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内。Step D42: Display the first character string after target processing in the first character string single-line display area in a display mode of at least one line of character strings.
本实施例中,能够对位于所述第一目标重设控件区域内的第一字符串进行缩小处理,从而使得提升了所述第一目标重设控件区域单行所能够显示的字符数目,从而进一步的避免显示在所述第一目标重设控件区域内的第一字符串进行换行,或进一步的减少显示在所述第一目标重设控件区域内的第一字符串所换的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。In this embodiment, the first character string located in the first target reset control area can be reduced in size, thereby increasing the number of characters that can be displayed in a single line in the first target reset control area, thereby further avoiding line wrapping of the first character string displayed in the first target reset control area, or further reducing the number of lines wrapped by the first character string displayed in the first target reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of user reading of the character string.
结合本发明实施例的第一方面,本发明实施例第一方面的第五种实现方式中,所述步骤D包括:In conjunction with the first aspect of the embodiments of the present invention, in a fifth implementation of the first aspect of the embodiments of the present invention, step D includes:
步骤D51、确定第四目标重设控件区域。Step D51: Determine a fourth target reset control area.
其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度大于所述第五目标重设控件区域的长度。Among them, the length of the fourth character string included in the fourth target reset control area is greater than the length of the fourth target reset control area, the fourth target reset control area is located between the edge of the display screen and the fifth target reset control area, and the length of the fifth character string included in the fifth target reset control area is greater than the length of the fifth target reset control area.
步骤D52、确定第四字符串单行显示区域。Step D52: Determine a single-line display area for the fourth character string.
所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值。The fourth character string single-line display area is extended from the fourth target reset control area toward the edge of the display screen, so that the length of the fourth character string single-line display area is greater than the reset length of the fourth target reset control area, and the interval between the fourth character string single-line display area and the edge of the display screen is greater than or equal to a third preset value.
步骤D53、将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内。Step D53: Display the fourth character string in the fourth character string single-line display area in a display mode of at least one line of character strings.
采用本实施例所示的方法,能够使得所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。By adopting the method shown in this embodiment, the length of any one line of the at least one line of the fourth character string can be less than or equal to the length of the single-line display area of the fourth character string.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且本实施例所示的所述第四字符串能够向所述显示屏的边缘方向延伸设置,从而进一步提升了所述第四目标重设控件区域所能够显示的字符串的长度,即本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and the fourth character string shown in this embodiment can be extended toward the edge of the display screen, thereby further improving the length of the character string that can be displayed in the fourth target reset control area. That is, this embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例的第一方面,本发明实施例第一方面的第六种实现方式中,所述步骤D包括:In conjunction with the first aspect of the embodiments of the present invention, in a sixth implementation of the first aspect of the embodiments of the present invention, step D includes:
步骤D61、确定第四目标重设控件区域。Step D61: Determine a fourth target reset control area.
其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度小于所述第五目标重设控件区域的长度。Among them, the length of the fourth character string included in the fourth target reset control area is greater than the length of the fourth target reset control area, the fourth target reset control area is located between the edge of the display screen and the fifth target reset control area, and the length of the fifth character string included in the fifth target reset control area is less than the length of the fifth target reset control area.
步骤D62、确定第四字符串单行显示区域。Step D62: Determine a single-line display area for the fourth character string.
所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘和所述第五字符串方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值,所述第四字符串与所述第五字符串之间的间隔大于或等于第二预设值;The fourth character string single-line display area is extended from the fourth target reset control area toward the edge of the display screen and the fifth character string, so that the length of the fourth character string single-line display area is greater than the reset length of the fourth target reset control area, and the interval between the fourth character string single-line display area and the edge of the display screen is greater than or equal to a third preset value, and the interval between the fourth character string and the fifth character string is greater than or equal to a second preset value;
步骤D63、将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内。Step D63: Display the fourth character string in the fourth character string single-line display area in a display mode of at least one line of character strings.
采用不能实施例所示的方法,能够使得所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。By adopting the method shown in the embodiment, the length of any one line of the at least one line of the fourth character string can be made less than or equal to the length of the single-line display area of the fourth character string.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且本实施例所示的所述第四字符串能够向所述显示屏的边缘方向和所述第五字符串方向延伸设置,从而进一步提升了所述第四目标重设控件区域所能够显示的字符串的长度,即本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and the fourth character string shown in this embodiment can be extended toward the edge direction of the display screen and the direction of the fifth character string, thereby further improving the length of the character string that can be displayed in the fourth target reset control area, that is, the present embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例第一方面的第五种实现方式或本发明实施例第一方面的第六种实现方式,本发明实施例第一方面的第七种实现方式中,所述步骤D包括:In conjunction with the fifth implementation of the first aspect of the embodiment of the present invention or the sixth implementation of the first aspect of the embodiment of the present invention, in the seventh implementation of the first aspect of the embodiment of the present invention, step D includes:
步骤D71、对第四字符串进行目标处理。Step D71: Perform target processing on the fourth character string.
所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。The target processing is to perform shrinking processing on the character string, and make the character string after shrinking processing greater than or equal to a first preset value.
步骤D72、将经过目标处理后的所述第四字符串以至少一行字符串的显示方式显示在所述第四目标重设控件区域内。Step D72: Display the fourth character string after target processing in the fourth target reset control area in a display mode of at least one line of character strings.
采用本实施例所示的方法,使得所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四目标重设控件区域的重设长度。By adopting the method shown in this embodiment, the length of any one line of character strings in the at least one line of character strings of the fourth character string is made less than or equal to the reset length of the fourth target reset control area.
本实施例中,能够对位于所述第四目标重设控件区域内的第四字符串进行缩小处理,从而使得提升了所述第四目标重设控件区域单行所能够显示的字符数目,从而进一步的避免显示在所述第四目标重设控件区域内的第四字符串进行换行,或进一步的减少显示在所述第四目标重设控件区域内的第四字符串所换的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。In this embodiment, the fourth character string located in the fourth target reset control area can be reduced, thereby increasing the number of characters that can be displayed in a single line in the fourth target reset control area, thereby further avoiding the fourth character string displayed in the fourth target reset control area from wrapping, or further reducing the number of lines wrapped by the fourth character string displayed in the fourth target reset control area, thereby reducing the number of times the character string is truncate and improving the efficiency of the user in reading the character string.
本发明实施例第二方面提供了一种终端设备,包括:A second aspect of an embodiment of the present invention provides a terminal device, including:
接收单元,用于接收控制信息,所述控制信息用于指示终端设备对至少两个控件区域进行处理以形成满足第一目标条件的至少两个重设控件区域,所述至少两个控件区域中沿显示屏横向方向任意相邻的两个控件区域之间设置有第一间隔,所述第一目标条件为所述至少两个重设控件区域中沿所述显示屏横向方向任意相邻的两个重设控件区域之间相互连接;a receiving unit, configured to receive control information, wherein the control information is configured to instruct the terminal device to process at least two control areas to form at least two reset control areas that meet a first target condition, wherein a first interval is provided between any two adjacent control areas in a horizontal direction of the display screen in the at least two reset control areas, and the first target condition is that any two adjacent reset control areas in the at least two reset control areas in the horizontal direction of the display screen are connected to each other;
需明确的是,本实施例所提供的所述接收单元用于执行本发明实施例第一方面的步骤步骤A0或步骤A1,以及用于执行步骤B。It should be clarified that the receiving unit provided in this embodiment is used to perform step A0 or step A1 of the first aspect of the embodiment of the present invention, and is used to perform step B.
步骤A0或步骤A1,以及步骤B的具体执行过程请详见本发明实施例第一方面所示,具体在本实施例中不再赘述。The specific execution process of step A0 or step A1, and step B is shown in the first aspect of the embodiment of the present invention, and will not be repeated in this embodiment.
第一显示单元,用于根据所述控制信息将所述至少两个重设控件区域显示在所述显示屏上。A first display unit is configured to display the at least two reset control areas on the display screen according to the control information.
本实施例所示的第一显示单元用于执行本发明实施例第一方面所示的步骤C,所述步骤C的具体执行过程请详见本发明实施例第一方面所示,具体在本发明实施例中不做赘述。The first display unit shown in this embodiment is used to execute step C shown in the first aspect of the embodiment of the present invention. The specific execution process of step C is detailed in the first aspect of the embodiment of the present invention, and will not be described in detail in the embodiment of the present invention.
第二显示单元,用于在所述至少两个重设控件区域中的任一重设控件区域内显示字符串。The second display unit is configured to display a character string in any one of the at least two reset control areas.
本实施例所示的第二显示单元用于执行本发明实施例第一方面所示的步骤D,所述步骤D的具体执行过程请详见本发明实施例第一方面所示,具体在本发明实施例中不做赘述。The second display unit shown in this embodiment is used to execute step D shown in the first aspect of the embodiment of the present invention. The specific execution process of step D is detailed in the first aspect of the embodiment of the present invention, and will not be described in detail in the embodiment of the present invention.
本实施例中,因对控件区域进行处理以形成所述重设空间区域,且在沿所述显示屏横向方向上,所述重设控件区域的长度大于所述控件区域的长度,则所述重设控件区域所能够显示的字符串的长度大于所述控件区域所能够显示的字符串的长度,则本实施例通过所述重设控件区域进行字符串的显示,能够有效的减少控件区域所显示的字符串的行数,从而提升了用户阅读重设控件区域内所显示的字符串的效率。In this embodiment, since the control area is processed to form the reset space area, and the length of the reset control area is greater than the length of the control area along the horizontal direction of the display screen, the length of the character string that can be displayed in the reset control area is greater than the length of the character string that can be displayed in the control area. In this embodiment, the display of the character string through the reset control area can effectively reduce the number of lines of the character string displayed in the control area, thereby improving the user's efficiency in reading the character string displayed in the reset control area.
结合本发明实施例第二方面,本发明实施例第二方面的第一种实现方式中,In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第一确定模块,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域的两侧均设置有第二目标重设控件区域,且所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,所述第二目标重设控件区域内所包括的第二字符串的长度大于所述第二目标重设控件区域的长度;a first determining module configured to determine at least one first target reset control area included in the at least two reset control areas, wherein a second target reset control area is provided on both sides of the first target reset control area, a first character string included in the first target reset control area is longer than a length of the first target reset control area, and a second character string included in the second target reset control area is longer than a length of the second target reset control area;
本实施例所示的第一确定模块用于执行本发明实施例本发明实施例第一方面的第一种实现方式所示的步骤D11,所述步骤D11的具体执行过程请详见本发明实施例第一方面所示,具体在本发明实施例中不做赘述。The first determination module shown in this embodiment is used to execute step D11 shown in the first implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D11 is shown in the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第一显示模块,用于将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一目标重设控件区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串满足第二目标条件,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值,所述第二目标条件为经过所述目标处理后的所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一目标重设控件区域的重设长度,且所述第一字符串的所述至少一行字符串中的任一行字符串和所述第二字符串之间的间隔大于或等于第二预设值。A first display module is used to display the first character string after target processing in the first target reset control area in the form of at least one line of character strings, so that any line of character strings in the at least one line of character strings of the first character string meets a second target condition, the target processing is to shrink the character string, and the character string after shrinkage processing is greater than or equal to a first preset value, and the second target condition is that the length of any line of character strings in the at least one line of character strings of the first character string after the target processing is less than or equal to the reset length of the first target reset control area, and the interval between any line of character strings in the at least one line of character strings of the first character string and the second character string is greater than or equal to a second preset value.
本实施例所示的第一确定模块用于执行本发明实施例本发明实施例第一方面的第一种实现方式所示的步骤D12和步骤D13,所述步骤D12和步骤D13的具体执行过程请详见本发明实施例第一方面所示,具体在本发明实施例中不做赘述。The first determination module shown in this embodiment is used to execute step D12 and step D13 shown in the first implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D12 and step D13 is shown in the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
采用本实施例所示的终端设备,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在重设控件区域的左右两侧的重设控件区域均满足所述第一条件的情况下,可对所述重设控件区域内的字符串进行缩小处理,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。With the terminal device shown in this embodiment, the length of the control area shown in the prior art is expanded, so that the reset control area shown in this embodiment can display a longer character string, and when the reset control areas on the left and right sides of the reset control area meet the first condition, the character string in the reset control area can be reduced. Therefore, compared with the prior art that does not modify the character string, the embodiment shown in this embodiment can avoid line wrapping of the character string in the reset control area or reduce the number of lines of the character string in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例第二方面,本发明实施例第二方面的第二种实现方式中,In conjunction with the second aspect of the embodiment of the present invention, in a second implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第二确定模块,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度大于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度;a second determining module, configured to determine at least one first target reset control area included in the at least two reset control areas, wherein a length of a first character string included in the first target reset control area is greater than a length of the first target reset control area, a length of a second character string in a second target reset control area located on a first side of the first target reset control area is less than a second length, the second length being the reset length of the second target reset control area located on the first side of the first target reset control area, and a length of a third character string in the second target reset control area located on a second side of the first target reset control area is greater than a third length, the third length being the reset length of the second target reset control area located on the second side of the first target reset control area;
本实施例所示的第二确定模块用于执行本发明实施例本发明实施例第一方面的第二种实现方式所示的步骤D21,所述步骤D21的具体执行过程请详见本发明实施例第一方面的第二种实现方式所示,具体在本发明实施例中不做赘述。The second determination module shown in this embodiment is used to execute step D21 shown in the second implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D21 is shown in the second implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第三确定模块,用于确定第一字符串单行显示区域,所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域与所述第二字符串之间的间隔大于或等于第二预设值。The third determination module is used to determine a single-line display area for a first string, where the single-line display area for the first string extends from the first target reset control area toward the second string, so that the length of the single-line display area for the first string is greater than the reset length of the first target reset control area, and the interval between the single-line display area for the first string and the second string is greater than or equal to a second preset value.
本实施例所示的第三确定模块用于执行本发明实施例本发明实施例第一方面的第二种实现方式所示的步骤D31,所述步骤D31的具体执行过程请详见本发明实施例第一方面的第二种实现方式所示,具体在本发明实施例中不做赘述。The third determination module shown in this embodiment is used to execute step D31 shown in the second implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D31 is shown in the second implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第二显示模块,用于将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的重设长度。The second display module is configured to display the first character string in the first character string single-line display area in a display manner of at least one line of character strings, so that a length of any one line of character strings in the at least one line of character strings of the first character string is less than or equal to a reset length of the first character string single-line display area.
本实施例所示的第二显示模块用于执行本发明实施例本发明实施例第一方面的第二种实现方式所示的步骤D23,所述步骤D23的具体执行过程请详见本发明实施例第一方面的第二种实现方式所示,具体在本发明实施例中不做赘述。The second display module shown in this embodiment is used to execute step D23 shown in the second implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D23 is shown in the second implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在第一目标重设控件区域的一侧满足第一条件,所述第一条件为:所述重设控件区域内的字符串的长度大于所述重设控件区域的重设长度,所述第一目标重设控件区域的另一侧满足第二条件的情况下,所述第二条件为:所述重设控件区域内的字符串的长度小于所述重设控件区域的重设长度,所述第一目标重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer string, and the first condition is met on one side of the first target reset control area, the first condition is: the length of the string in the reset control area is greater than the reset length of the reset control area, and when the other side of the first target reset control area meets the second condition, the second condition is: the length of the string in the reset control area is less than the reset length of the reset control area, the first string in the first target reset control area can be extended to the second string in the reset control area that meets the second condition, and the distance between the first string and the second string is greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the string, this embodiment can avoid the string in the reset control area from wrapping or reduce the number of lines of the string in the reset control area, thereby reducing the number of string truncation and improving the efficiency of user reading of the string.
结合本发明实施例第二方面,本发明实施例第二方面的第三种实现方式中,In conjunction with the second aspect of the embodiment of the present invention, in a third implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第四确定模块,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度小于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度。A fourth determination module is used to determine at least one first target reset control area included in the at least two reset control areas, wherein the length of the first character string included in the first target reset control area is greater than the length of the first target reset control area, the length of the second character string in the second target reset control area located on the first side of the first target reset control area is less than the second length, and the second length is the reset length of the second target reset control area located on the first side of the first target reset control area, and the length of the third character string in the second target reset control area located on the second side of the first target reset control area is less than the third length, and the third length is the reset length of the second target reset control area located on the second side of the first target reset control area.
本实施例所示的第四确定模块用于执行本发明实施例本发明实施例第一方面的第三种实现方式所示的步骤D31,所述步骤D31的具体执行过程请详见本发明实施例第一方面的第三种实现方式所示,具体在本发明实施例中不做赘述。The fourth determination module shown in this embodiment is used to execute step D31 shown in the third implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D31 is shown in the third implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第五确定模块,用于确定第一字符串单行显示区域,所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串和所述第三字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域分别与所述第二字符串和所述第三字符串之间的间隔大于或等于第二预设值;a fifth determining module, configured to determine a single-line display area for a first character string, the single-line display area for the first character string extending from the first target reset control area toward the second character string and the third character string, such that a length of the single-line display area for the first character string is greater than a reset length of the first target reset control area, and a spacing between the single-line display area for the first character string and the second character string and the third character string, respectively, is greater than or equal to a second preset value;
本实施例所示的第四确定模块用于执行本发明实施例本发明实施例第一方面的第三种实现方式所示的步骤D32,所述步骤D32的具体执行过程请详见本发明实施例第一方面的第三种实现方式所示,具体在本发明实施例中不做赘述。The fourth determination module shown in this embodiment is used to execute step D32 shown in the third implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D32 is shown in the third implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第三显示模块,用于将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的长度。The third display module is configured to display the first character string in the first character string single-line display area in a display manner of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the first character string is less than or equal to the length of the first character string single-line display area.
本实施例所示的第四确定模块用于执行本发明实施例本发明实施例第一方面的第三种实现方式所示的步骤D33,所述步骤D33的具体执行过程请详见本发明实施例第一方面的第三种实现方式所示,具体在本发明实施例中不做赘述。The fourth determination module shown in this embodiment is used to execute step D33 shown in the third implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D33 is shown in the third implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的第一目标重设控件区域能够显示更长的字符串,且在位于第一位置的第一目标重设控件区域的两侧的重设控件区域均满足所述第二条件的情况下,所述第一目标重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串和所述第三字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,以及保障所述第一字符串和所述第三字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the first target reset control area shown in this embodiment can display a longer character string, and when the reset control areas on both sides of the first target reset control area located at the first position meet the second condition, the first character string in the first target reset control area can be extended to the second character string and the third character string in the reset control area that meets the second condition, and ensure that the distance between the first character string and the second character string is greater than or equal to the second preset value, and ensure that the distance between the first character string and the third character string is greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the character string, this embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of string truncation times and improving the efficiency of user reading of the character string.
结合本发明实施例第二方面的第二种实现方式或本发明实施例第二方面的第三种实现方式,本发明实施例第二方面的第四种实现方式中,所述第二显示单元包括:In combination with the second implementation of the second aspect of the embodiment of the present invention or the third implementation of the second aspect of the embodiment of the present invention, in a fourth implementation of the second aspect of the embodiment of the present invention, the second display unit includes:
第四显示模块,用于将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。The fourth display module is used to display the first character string after target processing in the first character string single-line display area in the form of at least one line of character strings, wherein the target processing is to reduce the character string so that the reduced character string is greater than or equal to a first preset value.
本实施例所示的第四显示模块用于执行本发明实施例本发明实施例第一方面的第四种实现方式所示的步骤D41和步骤D42,所述步骤D41和步骤D42的具体执行过程请详见本发明实施例第一方面的第四种实现方式所示,具体在本发明实施例中不做赘述。The fourth display module shown in this embodiment is used to execute step D41 and step D42 shown in the fourth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D41 and step D42 is shown in the fourth implementation method of the first aspect of the embodiment of the present invention. The specific details will not be repeated in the embodiment of the present invention.
结合本发明实施例第二方面,本发明实施例第二方面的第五种实现方式中,In conjunction with the second aspect of the embodiment of the present invention, in a fifth implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第六确定模块,用于确定所述至少两个重设控件区域中所包括的至少一个第四目标重设控件区域,其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度大于所述第五目标重设控件区域的长度;a sixth determining module, configured to determine at least one fourth target reset control area included in the at least two reset control areas, wherein a length of a fourth character string included in the fourth target reset control area is greater than a length of the fourth target reset control area, the fourth target reset control area is located between an edge of the display screen and a fifth target reset control area, and a length of a fifth character string included in the fifth target reset control area is greater than a length of the fifth target reset control area;
本实施例所示的第六确定模块用于执行本发明实施例本发明实施例第一方面的第五种实现方式所示的步骤D51,所述步骤D51的具体执行过程请详见本发明实施例第一方面的第五种实现方式所示,具体在本发明实施例中不做赘述。The sixth determination module shown in this embodiment is used to execute step D51 shown in the fifth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D51 is shown in the fifth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第七确定模块,用于确定第四字符串单行显示区域,所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值;a seventh determining module, configured to determine a fourth character string single-line display area, the fourth character string single-line display area extending from the fourth target reset control area toward an edge of the display screen, such that a length of the fourth character string single-line display area is greater than a reset length of the fourth target reset control area, and a spacing between the fourth character string single-line display area and the edge of the display screen is greater than or equal to a third preset value;
本实施例所示的第六确定模块用于执行本发明实施例本发明实施例第一方面的第五种实现方式所示的步骤D52,所述步骤D52的具体执行过程请详见本发明实施例第一方面的第五种实现方式所示,具体在本发明实施例中不做赘述。The sixth determination module shown in this embodiment is used to execute step D52 shown in the fifth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D52 is shown in the fifth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第五显示模块,用于将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。a fifth display module, configured to display the fourth character string in the fourth character string single-line display area in a display manner of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the length of the fourth character string single-line display area.
本实施例所示的第六确定模块用于执行本发明实施例本发明实施例第一方面的第五种实现方式所示的步骤D53,所述步骤D53的具体执行过程请详见本发明实施例第一方面的第五种实现方式所示,具体在本发明实施例中不做赘述。The sixth determination module shown in this embodiment is used to execute step D53 shown in the fifth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D53 is shown in the fifth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且本实施例所示的所述第四字符串能够向所述显示屏的边缘方向延伸设置,从而进一步提升了所述第四目标重设控件区域所能够显示的字符串的长度,即本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and the fourth character string shown in this embodiment can be extended toward the edge of the display screen, thereby further improving the length of the character string that can be displayed in the fourth target reset control area. That is, this embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例第二方面,本发明实施例第二方面的第六种实现方式中,In conjunction with the second aspect of the embodiment of the present invention, in a sixth implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第八确定模块,用于确定所述至少两个重设控件区域中所包括的至少一个第四目标重设控件区域,其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度小于所述第五目标重设控件区域的长度;an eighth determining module, configured to determine at least one fourth target reset control area included in the at least two reset control areas, wherein a length of a fourth character string included in the fourth target reset control area is greater than a length of the fourth target reset control area, the fourth target reset control area is located between an edge of the display screen and a fifth target reset control area, and a length of a fifth character string included in the fifth target reset control area is less than a length of the fifth target reset control area;
本实施例所示的第八确定模块用于执行本发明实施例本发明实施例第一方面的第六种实现方式所示的步骤D61,所述步骤D61的具体执行过程请详见本发明实施例第一方面的第六种实现方式所示,具体在本发明实施例中不做赘述。The eighth determination module shown in this embodiment is used to execute step D61 shown in the sixth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D61 is shown in the sixth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第九确定模块,用于确定第四字符串单行显示区域,所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘和所述第五字符串方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值,所述第四字符串与所述第五字符串之间的间隔大于或等于第二预设值;a ninth determining module, configured to determine a single-line display area for a fourth character string, the single-line display area for the fourth character string extending from the fourth target reset control area toward an edge of the display screen and toward the fifth character string, such that a length of the single-line display area for the fourth character string is greater than a reset length of the fourth target reset control area, a spacing between the single-line display area for the fourth character string and the edge of the display screen is greater than or equal to a third preset value, and a spacing between the fourth character string and the fifth character string is greater than or equal to a second preset value;
本实施例所示的第九确定模块用于执行本发明实施例本发明实施例第一方面的第六种实现方式所示的步骤D62,所述步骤D62的具体执行过程请详见本发明实施例第一方面的第六种实现方式所示,具体在本发明实施例中不做赘述。The ninth determination module shown in this embodiment is used to execute step D62 shown in the sixth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D62 is shown in the sixth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
第六显示模块,用于将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。a sixth display module, configured to display the fourth character string in the fourth character string single-line display area in a display manner of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the length of the fourth character string single-line display area.
本实施例所示的第六显示模块用于执行本发明实施例本发明实施例第一方面的第六种实现方式所示的步骤D63,所述步骤D63的具体执行过程请详见本发明实施例第一方面的第六种实现方式所示,具体在本发明实施例中不做赘述。The sixth display module shown in this embodiment is used to execute step D63 shown in the sixth implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D63 is shown in the sixth implementation method of the first aspect of the embodiment of the present invention, and will not be repeated in the embodiment of the present invention.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且本实施例所示的所述第四字符串能够向所述显示屏的边缘方向和所述第五字符串方向延伸设置,从而进一步提升了所述第四目标重设控件区域所能够显示的字符串的长度,即本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and the fourth character string shown in this embodiment can be extended toward the edge direction of the display screen and the direction of the fifth character string, thereby further improving the length of the character string that can be displayed in the fourth target reset control area, that is, the present embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
结合本发明实施例第二方面的第五种实现方式或本发明实施例第二方面的第六种实现方式,本发明实施例第二方面的第七种实现方式中,In combination with the fifth implementation of the second aspect of the embodiment of the present invention or the sixth implementation of the second aspect of the embodiment of the present invention, in the seventh implementation of the second aspect of the embodiment of the present invention,
所述第二显示单元包括:The second display unit includes:
第七显示模块,用于将经过目标处理后的所述第四字符串以至少一行字符串的显示方式显示在所述第四目标重设控件区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四目标重设控件区域的重设长度,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。A seventh display module is used to display the fourth character string after target processing in the fourth target reset control area in the form of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the reset length of the fourth target reset control area, and the target processing is to reduce the character string, and make the character string after reduction processing greater than or equal to the first preset value.
本实施例所示的第七显示模块用于执行本发明实施例本发明实施例第一方面的第七种实现方式所示的步骤D71和步骤D72,所述步骤D71和步骤D72的具体执行过程请详见本发明实施例第一方面的第七种实现方式所示,具体在本发明实施例中不做赘述。The seventh display module shown in this embodiment is used to execute step D71 and step D72 shown in the seventh implementation method of the first aspect of the embodiment of the present invention. The specific execution process of step D71 and step D72 is shown in the seventh implementation method of the first aspect of the embodiment of the present invention. The specific details will not be repeated in the embodiment of the present invention.
本实施例中,能够对位于所述第四目标重设控件区域内的第四字符串进行缩小处理,从而使得提升了所述第四目标重设控件区域单行所能够显示的字符数目,从而进一步的避免显示在所述第四目标重设控件区域内的第四字符串进行换行,或进一步的减少显示在所述第四目标重设控件区域内的第四字符串所换的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。In this embodiment, the fourth character string located in the fourth target reset control area can be reduced, thereby increasing the number of characters that can be displayed in a single line in the fourth target reset control area, thereby further avoiding the fourth character string displayed in the fourth target reset control area from wrapping, or further reducing the number of lines wrapped by the fourth character string displayed in the fourth target reset control area, thereby reducing the number of times the character string is truncate and improving the efficiency of the user in reading the character string.
本发明实施例第三方面提供了一种终端设备,包括:A third aspect of an embodiment of the present invention provides a terminal device, including:
一个或多个处理器、存储器、总线系统、以及一个或多个程序,所述处理器和所述存储器通过所述总线系统相连;One or more processors, a memory, a bus system, and one or more programs, wherein the processor and the memory are connected via the bus system;
其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,所述指令当被所述终端设备执行时使所述终端设备执行如本发明实施例第一方面至本发明实施例第一方面第七种实现方式任一项所述的方法。The one or more programs are stored in the memory, and the one or more programs include instructions, which, when executed by the terminal device, enable the terminal device to execute the method described in any one of the first aspect of the embodiment of the present invention to the seventh implementation method of the first aspect of the embodiment of the present invention.
本发明实施例第四方面提供了一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序包括指令,所述指令当被终端设备执行时使所述终端设备执行如本发明实施例第一方面至本发明实施例第一方面第七种实现方式任一项所述的方法。A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a terminal device, enable the terminal device to execute a method as described in any one of the first aspect of the embodiment of the present invention to the seventh implementation method of the first aspect of the embodiment of the present invention.
本发明实施例提供了一种显示字符串的方法以及终端设备,采用本实施例所示的方法对控件区域进行处理以形成重设空间区域,且在沿所述显示屏横向方向上,重设控件区域的长度大于控件区域的长度,则所述重设控件区域所能够显示的字符串的长度大于所述控件区域所能够显示的字符串的长度,则本实施例通过所述重设控件区域进行字符串的显示,能够有效的减少控件区域所显示的字符串的行数,从而提升了用户阅读重设控件区域内所显示的字符串的效率。An embodiment of the present invention provides a method for displaying strings and a terminal device. The method shown in this embodiment is used to process a control area to form a reset space area, and in the horizontal direction of the display screen, the length of the reset control area is greater than the length of the control area. Then, the length of the string that can be displayed in the reset control area is greater than the length of the string that can be displayed in the control area. Then, this embodiment displays the string by using the reset control area, which can effectively reduce the number of lines of the string displayed in the control area, thereby improving the user's efficiency in reading the string displayed in the reset control area.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为现有技术所提供的终端设备的显示屏显示有多个控件区域的一种实施例显示效果示意图;FIG1 is a schematic diagram showing a display effect of an embodiment of a terminal device provided by the prior art showing multiple control areas on a display screen;
图2为本发明所提供的终端设备的一种实施例结构示意图;FIG2 is a schematic structural diagram of an embodiment of a terminal device provided by the present invention;
图3为本发明所提供的在控件区域内绘制字符串的一种实施例步骤流程图;FIG3 is a flowchart of an embodiment of drawing a character string in a control area provided by the present invention;
图4为本发明所提供的终端设备所显示的子区域的一种实施例结构示意图;FIG4 is a schematic structural diagram of an embodiment of a sub-area displayed by a terminal device provided by the present invention;
图5为本发明所提供的终端设备所显示的子区域的另一种实施例结构示意图;FIG5 is a schematic structural diagram of another embodiment of a sub-area displayed by a terminal device provided by the present invention;
图6为本发明所提供的终端设备在控件区域内显示字符串的一种实施例示意图;FIG6 is a schematic diagram of an embodiment of a terminal device displaying a character string in a control area provided by the present invention;
图7为本发明所提供的终端设备在控件区域内显示字符串的另一种实施例示意图;FIG7 is a schematic diagram of another embodiment of a terminal device displaying a character string in a control area provided by the present invention;
图8为本发明所提供的终端设备在控件区域内显示字符串的另一种实施例示意图;FIG8 is a schematic diagram of another embodiment of a terminal device displaying a character string in a control area provided by the present invention;
图9为本发明所提供的终端设备在控件区域内显示字符串的另一种实施例示意图;FIG9 is a schematic diagram of another embodiment of a terminal device displaying a character string in a control area provided by the present invention;
图10为本发明所提供的终端设备在控件区域内显示字符串的另一种实施例示意图;FIG10 is a schematic diagram of another embodiment of a terminal device displaying a character string in a control area provided by the present invention;
图11为本发明所提供的终端设备的主界面在中文使用环境中的示例图;FIG11 is an example diagram of the main interface of the terminal device provided by the present invention in a Chinese usage environment;
图12为本发明所提供的终端设备的主界面在俄文的使用环境中的示例图;FIG12 is an example diagram of the main interface of the terminal device provided by the present invention in a Russian usage environment;
图13为本发明所提供的终端设备的主界面在俄文的使用环境中的示例图;FIG13 is an example diagram of the main interface of the terminal device provided by the present invention in a Russian usage environment;
图14为本发明所提供的终端设备的联系人应用在英文使用环境中的示例图;FIG14 is an example diagram of a contact application of a terminal device provided by the present invention in an English usage environment;
图15为本发明所提供的终端设备的联系人应用在葡萄牙文的使用环境中的示例图;FIG15 is an example diagram of a contact application of a terminal device provided by the present invention in a Portuguese usage environment;
图16为本发明所提供的终端设备的联系人应用在葡萄牙文的使用环境中的示例图;FIG16 is an example diagram of a contact application of a terminal device provided by the present invention in a Portuguese usage environment;
图17为本发明所提供的终端设备的新闻应用在中文使用环境中的示例图;FIG17 is an example diagram of a news application of a terminal device provided by the present invention in a Chinese usage environment;
图18为本发明所提供的终端设备的新闻应用在西班牙文的使用环境中的示例图;FIG18 is an example diagram of a news application of a terminal device provided by the present invention in a Spanish usage environment;
图19为本发明所提供的终端设备的新闻应用程序应用在西班牙文的使用环境中的示例图;FIG19 is an example diagram of a news application program of a terminal device provided by the present invention being applied in a Spanish usage environment;
图20为本发明所提供的终端设备显示有主界面的一种实施例示意图;FIG20 is a schematic diagram of an embodiment of a terminal device provided by the present invention displaying a main interface;
图21为本发明所提供的终端设备显示有应用的一级界面的一种实施例示意图;FIG21 is a schematic diagram of an embodiment of a terminal device provided by the present invention displaying a primary interface of an application;
图22为本发明所提供的终端设备显示有应用的一级界面的另一种实施例示意图;FIG22 is a schematic diagram of another embodiment of a terminal device provided by the present invention displaying a primary interface of an application;
图23为本发明所提供的终端设备的另一种实施例结构示意图。FIG23 is a schematic structural diagram of another embodiment of the terminal device provided by the present invention.
具体实施方式DETAILED DESCRIPTION
本发明实施例基于终端设备提供了一种显示字符串的方法,以下结合图2所示对能够实现本发明实施例所示的显示字符串的方法的终端设备的具体结构进行说明。The embodiment of the present invention provides a method for displaying a character string based on a terminal device. The specific structure of the terminal device capable of implementing the method for displaying a character string according to the embodiment of the present invention will be described below with reference to FIG. 2 .
以下结合图2所示对本实施例所示的终端设备的具体结构进行说明,其中,图2为本发明所提供的终端设备的一种实施例结构示意图。The specific structure of the terminal device shown in this embodiment is described below with reference to FIG2 , wherein FIG2 is a schematic structural diagram of an embodiment of the terminal device provided by the present invention.
所述终端设备包括输入单元205、处理器203、输出单元201、通信单元207、存储器204、射频电路208等组件。The terminal device includes components such as an input unit 205, a processor 203, an output unit 201, a communication unit 207, a memory 204, and a radio frequency circuit 208.
这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图2中示出的终端设备的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the terminal device shown in FIG2 does not limit the present invention; it may be a bus structure or a star structure, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
在本发明实施方式中,所述终端设备可以是任何移动或便携式电子设备,包括但不限于智能手机、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器等。In the embodiment of the present invention, the terminal device can be any mobile or portable electronic device, including but not limited to a smart phone, a mobile computer, a tablet computer, a personal digital assistant (PDA), a media player, etc.
所述终端设备包括:The terminal device includes:
输出单元201,用于输出待显示的图像。The output unit 201 is configured to output an image to be displayed.
具体的,所述输出单元201包括但不限于影像输出单元2011和声音输出单元2012。Specifically, the output unit 201 includes but is not limited to an image output unit 2011 and a sound output unit 2012 .
所述影像输出单元2011用于输出文字、图片和/或视频。所述影像输出单元2011可包括显示面板,例如采用液晶显示器(英文全称:Liquid Crystal Display,英文简称:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文简称:OLED)、场发射显示器(英文全称:field emission display,英文简称FED)等形式来配置的显示面板。或者所述影像输出单元2011可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(英文全称:Interferometric Modulation of Light)的显示器。The image output unit 2011 is used to output text, images, and/or videos. The image output unit 2011 may include a display panel, such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), or a field emission display (FED). Alternatively, the image output unit 2011 may include a reflective display, such as an electrophoretic display, or a display utilizing interferometric modulation of light (IML).
所述影像输出单元2011可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,触摸屏亦可同时作为输出单元201的显示面板。The image output unit 2011 may include a single display or multiple displays of different sizes. In a specific embodiment of the present invention, a touch screen may also serve as a display panel of the output unit 201 .
例如,当触摸屏检测到在其上的触摸或接近的手势操作后,传送给处理器203以确定触摸事件的类型,随后处理器203根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图2中,输入单元205与输出单元201是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触摸屏与显示面板集成一体而实现终端设备的输入和输出功能。例如,所述影像输出单元2011可以显示各种图形化用户接口(英文全称:Graphical User Interface,英文简称GUI)以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。For example, when the touch screen detects a touch or proximity gesture operation on it, it transmits it to the processor 203 to determine the type of touch event, and then the processor 203 provides a corresponding visual output on the display panel based on the type of touch event. Although in Figure 2, the input unit 205 and the output unit 201 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch screen and the display panel can be integrated to implement the input and output functions of the terminal device. For example, the image output unit 2011 can display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll bars, icons, and clipboards, for users to operate through touch.
在本发明具体实施方式中,所述影像输出单元2011包括滤波器及放大器,用来将处理器203所输出的视频滤波及放大。声音输出单元2012包括数字模拟转换器,用来将处理器203所输出的音频信号从数字格式转换为模拟格式。In a specific embodiment of the present invention, the image output unit 2011 includes a filter and an amplifier for filtering and amplifying the video output by the processor 203. The sound output unit 2012 includes a digital-to-analog converter for converting the audio signal output by the processor 203 from a digital format to an analog format.
处理器203,用于运行相应的代码,对接收信息进行处理,以生成并输出相应的界面。The processor 203 is used to run corresponding codes, process the received information, and generate and output a corresponding interface.
具体的,所述处理器203为终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行终端设备的各种功能和/或处理数据。所述处理器203可以由集成电路(英文全称:Integrated Circuit,英文简称:IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。Specifically, the processor 203 is the control center of the terminal device. It connects various components of the terminal device using various interfaces and circuits. It executes software programs and/or modules stored in memory and accesses data stored in memory to perform various functions of the terminal device and/or process data. The processor 203 can be composed of an integrated circuit (IC), for example, a single packaged IC or a combination of multiple packaged ICs with the same or different functions.
举例来说,所述处理器203可以仅包括中央处理器(英文全称:CentralProcessing Unit,英文简称:CPU),也可以是图形处理器(英文全称:Graphics ProcessingUnit,英文简称:GPU),数字信号处理器(英文全称:Digital Signal Processor,英文简称:DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。For example, the processor 203 may include only a central processing unit (CPU), or a combination of a graphics processing unit (GPU), a digital signal processor (DSP), and a control chip (e.g., a baseband chip) in a communication unit. In the embodiment of the present invention, the CPU may have a single computing core or multiple computing cores.
存储器204,用于存储代码和数据,代码供处理器203运行。The memory 204 is used to store codes and data, and the codes are executed by the processor 203 .
具体的,存储器204可用于存储软件程序以及模块,处理器203通过运行存储在存储器204的软件程序以及模块,从而执行终端设备的各种功能应用以及实现数据处理。存储器204主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用,比如声音播放程序、图像播放程序等等;数据存储区可存储根据终端设备的使用所创建的数据(比如音频数据、电话本等)等。Specifically, the memory 204 can be used to store software programs and modules. The processor 203 executes the various functional applications of the terminal device and realizes data processing by running the software programs and modules stored in the memory 204. The memory 204 mainly includes a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function, such as a sound player program, an image player program, etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, phone book, etc.).
在本发明具体实施方式中,存储器204可以包括易失性存储器,例如非挥发性动态随机存取内存(英文全称:Nonvolatile Random Access Memory,英文简称NVRAM)、相变化随机存取内存(英文全称:Phase Change RAM,英文简称PRAM)、磁阻式随机存取内存(英文全称:Magetoresistive RAM,英文简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(英文全称:Electrically ErasableProgrammable Read-Only Memory,英文简称EEPROM)、闪存器件,例如反或闪存(英文全称:NOR flash memory)或是反及闪存(英文全称:NAND flash memory)。In a specific embodiment of the present invention, the memory 204 may include a volatile memory, such as non-volatile dynamic random access memory (NVRAM), phase change random access memory (PRAM), magnetoresistive random access memory (MRAM), etc. It may also include a non-volatile memory, such as at least one disk storage device, electrically erasable programmable read-only memory (EEPROM), and a flash memory device, such as NOR flash memory or NAND flash memory.
非易失存储器储存处理器203所执行的操作系统及应用。所述处理器203从所述非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。所述操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。The non-volatile memory stores the operating system and applications executed by the processor 203. The processor 203 loads programs and data from the non-volatile memory into the internal memory and stores digital content on a mass storage device. The operating system includes various components and/or drivers for controlling and managing general system tasks, such as memory management, storage device control, and power management, as well as facilitating communication between various software and hardware components.
在本发明实施方式中,所述操作系统可以是Google公司的Android操作系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。In the embodiment of the present invention, the operating system may be the Android operating system developed by Google, the iOS system developed by Apple, the Windows operating system developed by Microsoft, or an embedded operating system such as Vxworks.
所述应用包括安装在终端设备上的任何应用,包括但不限于浏览器、电子邮件、即时消息服务、文字处理、键盘虚拟、窗口小部件(Widget)、加密、数字版权管理、语音识别、语音复制、定位(例如由全球定位系统提供的功能)、音乐播放等等。The application includes any application installed on the terminal device, including but not limited to browsers, email, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, voice replication, positioning (such as functions provided by the global positioning system), music playback, etc.
输入单元205,用于实现用户与终端设备的交互和/或信息输入到终端设备中。The input unit 205 is used to implement interaction between the user and the terminal device and/or input information into the terminal device.
例如,所述输入单元205可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入单元205可以是触摸屏,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。For example, the input unit 205 can receive digital or character information input by the user to generate a signal input related to user settings or function control. In a specific embodiment of the present invention, the input unit 205 can be a touch screen, or other human-computer interaction interface, such as physical input keys, a microphone, or other external information acquisition device, such as a camera.
本发明实施例所示的触摸屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触摸屏上或接近触摸屏的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将所述电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收所述电信号,并将它转换成触点坐标,再送给所述处理器203。The touch screen shown in the embodiment of the present invention can collect the user's operating actions of touching or approaching it. For example, the user uses any suitable object or accessory such as a finger, a stylus, etc. to operate on the touch screen or near the touch screen, and drives the corresponding connection device according to a pre-set program. Optionally, the touch screen may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch operation, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 203.
所述触摸控制器还可以接收处理器203发来的命令并执行。此外,所述触摸屏可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏。The touch controller can also receive and execute commands sent by the processor 203. In addition, the touch screen can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave touch screens.
在本发明的其他实施方式中,所述输入单元205所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入单元205可以收集用户或环境输入的语音并将其转换成电信号形式的、处理器203可执行的命令。In other embodiments of the present invention, the physical input keys used by the input unit 205 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a power key, etc.), a trackball, a mouse, a joystick, etc. The input unit 205 in the form of a microphone can collect voice input from the user or the environment and convert it into a command in the form of an electrical signal that can be executed by the processor 203.
在本发明的其他一些实施方式中,所述输入单元205还可以是各类传感器件,例如霍尔器件,用于侦测终端设备的物理量,例如力、力矩、压力、应力、位置、位移、速度、加速度、角度、角速度、转数、转速以及工作状态发生变化的时间等,转变成电量来进行检测和控制。其他的一些传感器件还可以包括重力感应计、三轴加速计、陀螺仪、电子罗盘、环境光传感器、接近传感器、温度传感器、湿度传感器、压力传感器、心率传感器、指纹识别器等。In other embodiments of the present invention, the input unit 205 may also be various sensor devices, such as Hall effect devices, for detecting physical quantities of the terminal device, such as force, torque, pressure, stress, position, displacement, speed, acceleration, angle, angular velocity, number of revolutions, rotational speed, and the time when the operating state changes, and converting them into electrical quantities for detection and control. Other sensor devices may also include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure sensors, heart rate sensors, fingerprint sensors, etc.
通信单元207,用于建立通信信道,使终端设备通过所述通信信道以连接至远程服务器,并从所述远程服务器下媒体数据。所述通信单元207可以包括无线局域网(英文全称:Wireless Local Area Network,英文简称:wireless LAN)模块、蓝牙模块、基带模块等通信模块,以及所述通信模块对应的射频(英文全称:Radio Frequency,英文简称:RF)电路,用于进行无线局域网络通信、蓝牙通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(英文全称:Wideband Code Division Multiple Access,英文简称:W-CDMA)及/或高速下行封包存取(英文全称:High Speed Downlink Packet Access,英文简称HSDPA)。所述通信模块用于控制终端设备中的各组件的通信,并且可以支持直接内存存取。Communication unit 207 is configured to establish a communication channel, enabling the terminal device to connect to a remote server via the communication channel and download media data from the remote server. Communication unit 207 may include communication modules such as a wireless local area network (WLAN) module, a Bluetooth module, and a baseband module, as well as corresponding radio frequency (RF) circuits for performing WLAN, Bluetooth, infrared, and/or cellular communication systems, such as Wideband Code Division Multiple Access (W-CDMA) and/or High Speed Downlink Packet Access (HSDPA). The communication module controls communications among various components within the terminal device and may support direct memory access.
在本发明的不同实施方式中,所述通信单元207中的各种通信模块一般以集成电路芯片(英文全称:Integrated Circuit Chip)的形式出现,并可进行选择性组合,而不必包括所有通信模块及对应的天线组。例如,所述通信单元207可以仅包括基带芯片、射频芯片以及相应的天线以在一个蜂窝通信系统中提供通信功能。经由所述通信单元207建立的无线通信连接,例如无线局域网接入或WCDMA接入,所述终端设备可以连接至蜂窝网(英文全称:Cellular Network)或因特网。在本发明的一些可选实施方式中,所述通信单元207中的通信模块,例如基带模块可以集成到处理器203中,典型的如高通(Qualcomm)公司提供的APQ+MDM系列平台。In different embodiments of the present invention, the various communication modules in the communication unit 207 generally appear in the form of an integrated circuit chip (full name in English: Integrated Circuit Chip) and can be selectively combined without having to include all communication modules and corresponding antenna groups. For example, the communication unit 207 may only include a baseband chip, a radio frequency chip and corresponding antennas to provide communication functions in a cellular communication system. Through the wireless communication connection established by the communication unit 207, such as wireless LAN access or WCDMA access, the terminal device can be connected to a cellular network (full name in English: Cellular Network) or the Internet. In some optional embodiments of the present invention, the communication modules in the communication unit 207, such as the baseband module, can be integrated into the processor 203, typically such as the APQ+MDM series platform provided by Qualcomm.
射频电路208,用于信息收发或通话过程中接收和发送信号。例如,将基站的下行信息接收后,给处理器203处理;另外,将设计上行的数据发送给基站。通常,所述射频电路208包括用于执行这些功能的公知电路,包括但不限于天线系统、射频收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编解码(Codec)芯片组、用户身份模块(SIM)卡、存储器等等。此外,射频电路208还可以通过无线通信与网络和其他设备通信。RF circuit 208 is used for sending and receiving information or receiving and sending signals during calls. For example, it receives downlink information from the base station and passes it to processor 203 for processing; in addition, it sends uplink data to the base station. Typically, RF circuit 208 includes well-known circuitry for performing these functions, including but not limited to an antenna system, a RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec chipset, a subscriber identity module (SIM) card, memory, and so on. RF circuit 208 can also communicate with the network and other devices via wireless communication.
所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文简称:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,英文简称:GPRS)、码分多址(英文全称:Code Division Multiple Access,英文简称:CDMA)、宽带码分多址(英文全称:WidebandCode Division Multiple Access,英文简称:WCDMA)、高速上行行链路分组接入技术(英文全称:High Speed Uplink Packet Access,英文简称:HSUPA)、长期演进(英文全称:LongTerm Evolution,英文简称:LTE)、电子邮件、短消息服务(英文全称:Short MessagingService,英文简称:SMS)等。The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), High Speed Uplink Packet Access (HSUPA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
电源209,用于给终端设备的不同部件进行供电以维持其运行。作为一般性理解,所述电源209可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向终端设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,所述电源209还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与终端设备的电能生成、管理及分布相关联的其他任何组件。The power supply 209 is used to supply power to the various components of the terminal device to maintain its operation. Generally speaking, the power supply 209 can be a built-in battery, such as a common lithium-ion battery or nickel-metal hydride battery, or an external power supply that directly supplies power to the terminal device, such as an AC adapter. In some embodiments of the present invention, the power supply 209 can be defined more broadly, for example, to include a power management system, a charging system, a power fault detection circuit, a power converter or inverter, a power status indicator (such as a light-emitting diode), and any other components associated with the generation, management, and distribution of electrical energy in the terminal device.
以下结合图3所示对本发明实施例所提供的显示字符串的方法进行说明,其中,图3为本发明所提供的在控件区域内绘制字符串的一种实施例步骤流程图。The following describes a method for displaying a character string provided by an embodiment of the present invention in conjunction with FIG3 , wherein FIG3 is a flowchart of steps of an embodiment of drawing a character string in a control area provided by the present invention.
为更好的理解本发明实施例,以下首先对本实施例所示的控件区域进行说明:To better understand the embodiment of the present invention, the control area shown in this embodiment is first described below:
具体的,所述终端设备可预先设置预设坐标范围,且各预设坐标范围与各所述控件区域对应,以使控件区域显示在与所述控件区域对应的所述预设坐标范围内,可见,本实施例所示的终端设备以通过所述预设坐标范围设定了控件区域在所述显示屏上的显示位置和显示的范围。Specifically, the terminal device can pre-set a preset coordinate range, and each preset coordinate range corresponds to each control area, so that the control area is displayed within the preset coordinate range corresponding to the control area. It can be seen that the terminal device shown in this embodiment sets the display position and display range of the control area on the display screen through the preset coordinate range.
具体的,本实施例所提供的所述控件区域内包含有用于显示在终端设备显示屏上的字符串。Specifically, the control area provided in this embodiment includes a character string for displaying on a display screen of a terminal device.
本实施例对预设的各所述控件区域的大小不做限定,且本实施例对各所述控件区域内所包含的内容不做限定。This embodiment does not limit the size of each of the preset control areas, and this embodiment does not limit the content contained in each of the control areas.
可选的,所述控件区域内可包括用于响应用户所输入的操作事件的图标和/或虚拟按键。Optionally, the control area may include icons and/or virtual keys for responding to operation events input by the user.
本实施例对显示在终端设备的显示屏上的所述控件区域的数目不做限定。This embodiment does not limit the number of the control areas displayed on the display screen of the terminal device.
以下对终端设备不同的使用场景下,所示控件区域的应用场景进行说明:The following describes the application scenarios of the control areas shown in different usage scenarios of terminal devices:
首先请参见图20所示,在终端设备显示主界面的场景下,终端设备的显示屏上显示有多个控件区域2000,各所述控件区域2000内设置有应用的图标和与应用对应的应用名称,且沿所述终端设备的显示屏横向方向任意相邻的两个控件区域之间设置有第一间隔2001,以图20所示为例,用于显示百度音乐图标的控件区域和用于显示新浪微博图标的控件区域之间设置有第一间隔2001,本实施例对所述控件区域2000的具体数目以及所述第一间隔的大小不做限定。First, please refer to Figure 20. In the scenario where the terminal device displays the main interface, multiple control areas 2000 are displayed on the display screen of the terminal device. Each control area 2000 is provided with an application icon and an application name corresponding to the application, and a first interval 2001 is provided between any two adjacent control areas along the horizontal direction of the display screen of the terminal device. Taking Figure 20 as an example, a first interval 2001 is provided between the control area for displaying the Baidu Music icon and the control area for displaying the Sina Weibo icon. This embodiment does not limit the specific number of the control areas 2000 and the size of the first interval.
另一种应用场景请参见图21所示,本应用场景中,所述控件区域显示在应用界面上,本实施例对应用界面不做限定,例如所述应用界面可为应用的一级界面,二级界面等。Another application scenario is shown in Figure 21. In this application scenario, the control area is displayed on the application interface. This embodiment does not limit the application interface. For example, the application interface can be the first-level interface, second-level interface, etc. of the application.
本应用场景以手机百度的一级应用界面为例,需明确的是,本实施例对应用的举例为可选的示例,不做限定。This application scenario takes the first-level application interface of Baidu Mobile as an example. It should be clear that the examples of applications in this embodiment are optional examples and are not limiting.
如图21所示,在应用手机百度的一级界面上,显示有多个多个控件区域2100,各所述控件区域2100内设置有虚拟按键2101,所述虚拟按键2101用于接收用户输入的触摸指令,在接收到用户输入的触摸指令后,所述终端设备控制所述应用的界面跳转至所述虚拟按键所对应的应用界面。As shown in Figure 21, on the first-level interface of the Baidu application mobile phone, multiple control areas 2100 are displayed, and each control area 2100 is provided with a virtual button 2101. The virtual button 2101 is used to receive touch instructions input by the user. After receiving the touch instructions input by the user, the terminal device controls the interface of the application to jump to the application interface corresponding to the virtual button.
例如,以图21所示为例,若虚拟按键“地图”接收到用户输入的触摸指令,则所述终端设备控制手机百度由一级界面跳转至用于实现地图功能的界面。For example, taking FIG. 21 as an example, if the virtual button “Map” receives a touch instruction input by the user, the terminal device controls the mobile Baidu to jump from the first-level interface to the interface for realizing the map function.
本实施例中,沿所述终端设备的显示屏横向方向任意相邻的两个控件区域之间设置有第一间隔2102,以图21所示为例,用于显示虚拟按键“视频”的控件区域和用于显示虚拟按键“图标”的控件区域之间设置有第一间隔2102,本实施例对所述控件区域2100的具体数目以及所述第一间隔的大小不做限定。In this embodiment, a first interval 2102 is set between any two adjacent control areas along the horizontal direction of the display screen of the terminal device. Taking Figure 21 as an example, a first interval 2102 is set between the control area for displaying the virtual key "video" and the control area for displaying the virtual key "icon". This embodiment does not limit the specific number of the control areas 2100 and the size of the first interval.
另一种应用场景请参见图22所示,本应用场景中,所述控件区域用于显示菜单选项,各菜单选项用于控制所述终端设备执行与所述菜单选项对应的功能,需明确的是,本实施例对菜单选项的功能为可选的示例,不做限定,在其他应用场景中,所述菜单选项也可执行其他功能,例如,实现应用界面的跳转等。Please see Figure 22 for another application scenario. In this application scenario, the control area is used to display menu options, and each menu option is used to control the terminal device to perform the function corresponding to the menu option. It should be clear that the function of the menu option in this embodiment is an optional example and is not limited. In other application scenarios, the menu option can also perform other functions, for example, to realize the jump of the application interface, etc.
本应用场景以应用为终端设备的系统应用“设置”为例,如图22所示,在系统应用“设置”显示一级界面的情况下,应用“设置”的一级界面显示有多个控件区域,本实施例对所述控件区域的具体数目不做限定。This application scenario takes the system application "Settings" of the terminal device as an example. As shown in Figure 22, when the system application "Settings" displays the first-level interface, the first-level interface of the application "Settings" displays multiple control areas. This embodiment does not limit the specific number of the control areas.
本应用场景中,沿显示屏的横向方向设置有两个相互匹配的控件区域,例如,相互匹配的控件区域2201和控件区域2202。In this application scenario, two mutually matching control areas are provided along the horizontal direction of the display screen, for example, mutually matching control area 2201 and control area 2202 .
所述控件区域2201显示有菜单选项“飞行模式”,所述控件区域2202显示所述菜单选项“飞行模式”是否开启,以图22所示为例,用户通过控件区域2202所示可知,当前所述终端设备的飞行模式没有开启,则用户可在所述控件区域2201和/或控件区域2202上输入触摸指令,在所述控件区域2201和/或控件区域2202接收到所述触摸指令的情况下,所述终端设备控制所述“飞行模式”开启,并控制所述控件区域2202显示“飞行模式”开启的状态。The control area 2201 displays the menu option "Airplane Mode", and the control area 2202 displays whether the menu option "Airplane Mode" is turned on. Taking Figure 22 as an example, the user can know from the control area 2202 that the flight mode of the terminal device is not turned on. The user can input a touch instruction on the control area 2201 and/or the control area 2202. When the control area 2201 and/or the control area 2202 receives the touch instruction, the terminal device controls the "Airplane Mode" to be turned on, and controls the control area 2202 to display the status of the "Airplane Mode" being turned on.
又如,所述控件区域2203显示有菜单选项“蓝牙”,所述控件区域2204显示所述菜单选项“蓝牙”是否开启的字符串,以图22所示为例,用户通过控件区域2204所示可知,当前所述终端设备的蓝牙没有开启,则用户可在所述控件区域2203和/或控件区域2204上输入触摸指令,在所述控件区域2203和/或控件区域2204接收到所述触摸指令的情况下,所述终端设备显示与蓝牙对应的下拉菜单选项,与蓝牙对应的下拉菜单选项可显示是否开启蓝牙的触摸按键,用于显示蓝牙设备名称的字符串,用于显示当前终端设备名称的字符串等,本实施例对与蓝牙对应的下拉菜单选项的具体显示内容不做限定。For another example, the control area 2203 displays the menu option "Bluetooth", and the control area 2204 displays a character string indicating whether the menu option "Bluetooth" is turned on. Taking Figure 22 as an example, the user can know from the control area 2204 that the Bluetooth of the terminal device is not currently turned on, then the user can input a touch instruction on the control area 2203 and/or the control area 2204. When the control area 2203 and/or the control area 2204 receives the touch instruction, the terminal device displays a drop-down menu option corresponding to Bluetooth. The drop-down menu option corresponding to Bluetooth can display a touch button for whether Bluetooth is turned on, a character string for displaying the name of the Bluetooth device, a character string for displaying the name of the current terminal device, etc. This embodiment does not limit the specific display content of the drop-down menu option corresponding to Bluetooth.
本实施例中,沿所述终端设备的显示屏横向方向任意相邻的两个控件区域之间设置有第一间隔2205,以图22所示为例,用于显示菜单选项“蓝牙”的控件区域2203和用于显示蓝牙是否开启的字符串的控件区域2204之间设置有第一间隔2205,本实施例对所述控件区域的具体数目以及所述第一间隔的大小不做限定。In this embodiment, a first interval 2205 is set between any two adjacent control areas along the horizontal direction of the display screen of the terminal device. Taking Figure 22 as an example, a first interval 2205 is set between the control area 2203 for displaying the menu option "Bluetooth" and the control area 2204 for displaying the character string whether Bluetooth is turned on. This embodiment does not limit the specific number of the control areas and the size of the first interval.
步骤301、检测所述终端设备所显示的子区域是否满足预设条件,若否,则执行步骤302,若是,则执行步骤303。Step 301 : Detect whether the sub-area displayed by the terminal device meets a preset condition. If not, execute step 302 ; if so, execute step 303 .
本实施例所示的终端设备的显示屏沿所述终端设备的横向方向划分出至少一个子区域,各所述子区域内设置有至少一个所述控件区域。The display screen of the terminal device shown in this embodiment is divided into at least one sub-area along the horizontal direction of the terminal device, and at least one control area is set in each sub-area.
需明确的是,本实施例以显示屏沿所述终端设备的横向方向进行子区域的划分为可选的示例,不做限定,在具体应用中,本实施例对所述子区域的具体划分方式不做限定,例如,还可沿所述显示屏的纵向方向进行子区域的划分,还可随机的进行子区域的划分。It should be clarified that this embodiment takes the division of the display screen into sub-areas along the horizontal direction of the terminal device as an optional example and is not limited. In specific applications, this embodiment does not limit the specific division method of the sub-areas. For example, the sub-areas can also be divided along the vertical direction of the display screen, or randomly.
以图4所示为例,其中,图4为本发明所提供的终端设备所显示的子区域的一种实施例结构示意图。Take FIG. 4 as an example, where FIG. 4 is a schematic structural diagram of an embodiment of a sub-area displayed by a terminal device provided by the present invention.
如图4所示可知,所述终端设备的显示屏沿所述终端设备的横向方向划分出三个子区域,即子区域400、子区域401以及子区域402。As shown in FIG. 4 , the display screen of the terminal device is divided into three sub-areas along the horizontal direction of the terminal device, namely, sub-area 400 , sub-area 401 and sub-area 402 .
可选的,本实施例所示的子区域的两侧与所述终端显示屏的边缘之间设置有第二预设间隔405。Optionally, a second preset interval 405 is set between two sides of the sub-area shown in this embodiment and the edge of the terminal display screen.
本实施例对所述第二预设间隔405的大小不做限定。This embodiment does not limit the size of the second preset interval 405 .
在具体应用中,也可不设置所述第二预设间隔405,以使所述子区域的两侧连接所述终端设备的显示屏的边缘。In a specific application, the second preset interval 405 may not be set, so that both sides of the sub-area are connected to the edges of the display screen of the terminal device.
本实施例所示的所述子区域用于设置控件区域。The sub-area shown in this embodiment is used to set a control area.
具体的,位于相同的一个子区域中,任意相邻的两个控件区域之间设置有第一预设间隔403。Specifically, in the same sub-region, a first preset interval 403 is set between any two adjacent control regions.
本实施例对所述第一预设间隔403的大小不做限定。This embodiment does not limit the size of the first preset interval 403 .
本实施例所提供的终端设备的显示屏上所显示的各所述子区域包括有多个所述控件区域。Each of the sub-areas displayed on the display screen of the terminal device provided in this embodiment includes a plurality of the control areas.
本实施例所述的预设条件为:所述子区域包括有至少一个目标控件区域。The preset condition described in this embodiment is that the sub-area includes at least one target control area.
所述目标控件区域内所包含的字符串的长度大于所述目标控件区域的长度。The length of the character string contained in the target control area is greater than the length of the target control area.
本实施例中,若检测出所述终端设备的显示屏所显示的子区域不满足所述预设条件,即不满足所述预设条件的所述子区域内不包含所述目标控件区域,则会继续执行步骤302。In this embodiment, if it is detected that the sub-area displayed on the display screen of the terminal device does not meet the preset condition, that is, the sub-area that does not meet the preset condition does not include the target control area, step 302 will continue to be executed.
具体的,若所述终端设备确定子区域所包括的多个所述控件区域中任一控件区域内的字符串的长度小于或等于所述控件区域的长度,则继续执行步骤302。Specifically, if the terminal device determines that the length of the character string in any control area of the multiple control areas included in the sub-area is less than or equal to the length of the control area, step 302 is continued.
本实施例中,若检测出所述终端设备的显示屏所显示的子区域满足所述预设条件,即满足所述预设条件的所述子区域内包含至少一个所述目标控件区域,则会继续执行步骤303。In this embodiment, if it is detected that the sub-area displayed on the display screen of the terminal device meets the preset condition, that is, the sub-area meeting the preset condition contains at least one target control area, step 303 will be continued.
具体的,若所述终端设备确定子区域所包括的多个所述控件区域中至少一个控件区域内的字符串的长度大于所述控件区域的长度,则继续执行步骤303。Specifically, if the terminal device determines that the length of the character string in at least one of the multiple control areas included in the sub-area is greater than the length of the control area, step 303 is continued.
步骤302、按第一预设模式对不满足所述预设条件的所述子区域内的各所述控件区域进行显示。Step 302: Display each of the control areas in the sub-areas that do not meet the preset condition according to a first preset mode.
若检测出所述终端设备的显示屏所显示的子区域不满足所述预设条件,则无需对不满足所述预设条件的所述子区域中的各控件区域的显示效果进行更改,直接以第一预设模式进行显示即可。If it is detected that the sub-area displayed on the display screen of the terminal device does not meet the preset condition, there is no need to change the display effect of each control area in the sub-area that does not meet the preset condition, and it can be directly displayed in the first preset mode.
本实施例对所述第一预设模式不做限定,只要显示在各所述控件区域内的字符串能够以单行的方式进行显示,即位于各所述控件区域内的字符串无需进行换行显示,从而有效的保障了用户对字符串进行阅读的效率。This embodiment does not limit the first preset mode, as long as the character strings displayed in each control area can be displayed in a single line, that is, the character strings located in each control area do not need to be displayed in line breaks, thereby effectively ensuring the user's efficiency in reading the character strings.
例如,本实施例以各所述控件区域内所显示的字符串为所述图标的名称为例,所述第一预设模式可为将各所述控件区域内的字符串在所述控件区域内居中显示。For example, in this embodiment, taking the character string displayed in each control area as the name of the icon as an example, the first preset mode may be to display the character string in each control area in the center of the control area.
如图1所示,在控件区域100中的字符串“腾讯新闻”居中显示。As shown in FIG1 , the character string “Tencent News” is displayed in the center of the control area 100 .
步骤303、对目标子区域所包含的至少一个控件区域进行重新设置以形成出至少一个重设控件区域。Step 303: Reset at least one control area included in the target sub-area to form at least one reset control area.
可选的,在执行步骤301的过程中,若所述终端设备检测到所述终端设备所显示的子区域满足所述预设条件,则所述终端设备可生成控制信息,以使所述终端设备根据所述控制信息触摸对步骤303的执行。Optionally, during the execution of step 301, if the terminal device detects that the sub-area displayed by the terminal device meets the preset condition, the terminal device may generate control information so that the terminal device touches the execution of step 303 according to the control information.
可选的,本实施例所示的步骤301和步骤302为可选的步骤,在一种应用场景中,也可不执行所述步骤301和步骤302。所述控制信息也可为用户向所述终端设备输入的。Optionally, step 301 and step 302 shown in this embodiment are optional steps, and in an application scenario, step 301 and step 302 may not be performed. The control information may also be input by a user to the terminal device.
例如,当用户对所述终端设备进行语言的重新设定时,本实施例以用户将终端设备的语言由中文设定为英文为例,则所述终端设备可通过显示屏显示有操作界面,该操作界面可指示用户是否需要对控件区域进行设定以形成所述重设控件区域,若用户通过所述操作界面通知所述终端设备需要对控件区域进行设定以形成所述重设控件区域,则所述终端设备可根据用户的操作生成控制信息,所述控制信息用于触发所述终端设备对步骤303的执行。For example, when the user resets the language of the terminal device, this embodiment takes the example of the user setting the language of the terminal device from Chinese to English. The terminal device can display an operation interface through the display screen, and the operation interface can indicate whether the user needs to set the control area to form the reset control area. If the user notifies the terminal device through the operation interface that the control area needs to be set to form the reset control area, the terminal device can generate control information according to the user's operation, and the control information is used to trigger the terminal device to execute step 303.
本实施例中,所述目标子区域为满足所述预设条件的子区域。In this embodiment, the target sub-region is a sub-region that meets the preset condition.
所述重设控件区域所具有的长度为重设长度。The reset control area has a length that is a reset length.
具体的,所述目标子区域所包括的多个所述控件区域中包括至少一个所述目标控件区域。Specifically, the multiple control areas included in the target sub-area include at least one target control area.
继续参见图4所示,若确定出子区域401中的控件区域404内的字符串的长度大于所述控件区域404的长度,则确定所述控件区域404为目标控件区域。Continuing to refer to FIG. 4 , if it is determined that the length of the character string in the control area 404 in the sub-area 401 is greater than the length of the control area 404 , the control area 404 is determined to be the target control area.
本实施例对所确定出的所述目标子区域的数目不做限定。This embodiment does not limit the number of the determined target sub-regions.
本实施例对已确定出的所述目标子区域内所包含的所述目标控件区域的数目不做限定,只要所述目标子区域内包括有至少一个所述目标控件区域即可。This embodiment does not limit the number of the target control areas contained in the determined target sub-area, as long as the target sub-area includes at least one target control area.
具体对所述目标子区域进行重新设置的流程为:The specific process of resetting the target sub-area is as follows:
获取所述目标子区域沿所述终端设备的横向方向的长度L;Obtaining a length L of the target sub-area along a horizontal direction of the terminal device;
获取所述目标子区域所包括的控件区域的数目N;Obtain the number N of control areas included in the target sub-area;
确定各所述重设控件区域的重设长度为L/N。The reset length of each reset control area is determined to be L/N.
本实施例对所述目标子区域的长度不作更改,以使对所述目标子区域进行重新设置后的长度与对所述目标子区域进行重新设置前的长度相同。In this embodiment, the length of the target sub-region is not changed, so that the length of the target sub-region after the reset is the same as the length before the reset.
以下继续结合图5所示进行示例性说明,其中,图5为本发明所提供的终端设备所显示的子区域的另一种实施例结构示意图。The following is an exemplary description continued with reference to FIG5 , wherein FIG5 is a schematic structural diagram of another embodiment of the sub-area displayed by the terminal device provided by the present invention.
具体的,图5以一个目标子区域具体是如何进行重新设置的进行说明,若所述终端设备的显示屏划分出多个所述目标子区域,则对各所述目标子区域的划分方式分别详见图5所示,具体在本实施例中不做赘述。Specifically, Figure 5 illustrates how a target sub-area is specifically reset. If the display screen of the terminal device is divided into multiple target sub-areas, the division method of each target sub-area is shown in Figure 5 in detail, and will not be repeated in this embodiment.
在图5所示中,所述终端设备获取所述目标子区域401沿所述终端设备的横向方向的长度L;As shown in FIG5 , the terminal device obtains the length L of the target sub-area 401 along the horizontal direction of the terminal device;
本实施例因终端设备的显示屏的尺寸的不同,或因所述终端设备对显示模式不同的设计需求,会使得目标子区域401在不同的终端设备上具有不同的沿所述终端设备的横向方向的长度L,具体在本实施例中不做限定。In this embodiment, due to the different sizes of the display screens of the terminal devices or the different design requirements of the terminal devices for the display modes, the target sub-area 401 may have different lengths L along the horizontal direction of the terminal devices on different terminal devices, which is not specifically limited in this embodiment.
获取所述目标子区域401所包括的控件区域的数目N;Obtain the number N of control areas included in the target sub-area 401;
以图5所示可知,所述目标子区域401所包括的控件区域的数目N为3。As shown in FIG. 5 , the number N of control areas included in the target sub-area 401 is 3.
确定各所述重设控件区域500的重设长度为L/N。The reset length of each reset control area 500 is determined to be L/N.
结合图4和图5所示可知,对所述目标子区域进行重新设置后满足两个条件:As shown in FIG4 and FIG5 , after the target sub-area is reset, two conditions are satisfied:
第一个条件:在对所述目标子区域进行重新设置前,如图4所示,位于所述目标子区域401内任意相邻的两个所述控件区域之间设置有所述第一预设间隔403,在对所述目标子区域进行重新设置后,如图5所示,位于所述目标子区域401内任意相邻的两个所述重设控件区域之间不再设置所述第一预设间隔403,即所述目标子区域401内任意相邻的两个所述重设控件区域是彼此抵靠的,在显示效果上,所述目标子区域401内任意相邻的两个所述重设控件区域的边界线是彼此重合的。The first condition: before the target sub-area is reset, as shown in Figure 4, the first preset interval 403 is set between any two adjacent control areas in the target sub-area 401; after the target sub-area is reset, as shown in Figure 5, the first preset interval 403 is no longer set between any two adjacent reset control areas in the target sub-area 401, that is, any two adjacent reset control areas in the target sub-area 401 are against each other, and in terms of display effect, the boundary lines of any two adjacent reset control areas in the target sub-area 401 coincide with each other.
第二个条件:如图5所示,位于所述目标子区域401内两侧的重设控件区域为重设控件区域501以及重设控件区域502,所述重设控件区域501与终端设备的显示屏的边缘之间设置有第二预设间隔501,所述重设控件区域502与终端设备的显示屏的边缘之间设置有第二预设间隔501,本实施例对所述第二预设间隔501的大小不做限定。The second condition: As shown in Figure 5, the reset control areas located on both sides of the target sub-area 401 are the reset control area 501 and the reset control area 502. A second preset interval 501 is set between the reset control area 501 and the edge of the display screen of the terminal device, and a second preset interval 501 is set between the reset control area 502 and the edge of the display screen of the terminal device. This embodiment does not limit the size of the second preset interval 501.
步骤304、判断所述目标子区域是否包含有目标重设控件区域,若否,则继续执行步骤305,若是,则执行步骤306。Step 304 , determining whether the target sub-region includes a target reset control region, if not, proceeding to step 305 , if yes, proceeding to step 306 .
本实施例中,所述目标子区域包括至少一个重设控件区域。In this embodiment, the target sub-area includes at least one reset control area.
所述目标重设控件区域满足目标条件,所述目标条件为重设控件区域所包含的字符串的长度大于所述重设控件区域的重设长度。The target reset control area meets a target condition, where the target condition is that the length of the character string contained in the reset control area is greater than the reset length of the reset control area.
本实施例中,所述终端设备需要对所述目标子区域所包括的至少一个重设控件区域逐一进行判断,以确定出所述目标子区域是否包含有所述目标重设控件区域。In this embodiment, the terminal device needs to judge at least one reset control area included in the target sub-area one by one to determine whether the target sub-area includes the target reset control area.
本实施例中,只有所述目标子区域所包含的所有所述重设控件区域中不包含有所述目标重设控件区域,即所述目标子区域所包含的所有所述重设控件区域内所包含的字符串的长度均小于或等于所述重设控件区域的重设长度,则触发步骤305的执行。In this embodiment, the execution of step 305 is triggered only if all the reset control areas contained in the target sub-area do not contain the target reset control area, that is, the length of the character strings contained in all the reset control areas contained in the target sub-area are less than or equal to the reset length of the reset control area.
若所述目标子区域包含有至少一个所述目标重设控件区域,则触发步骤306的执行。If the target sub-area includes at least one target reset control area, execution of step 306 is triggered.
步骤305、按所述第一预设模式对各所述重设控件区域进行显示。Step 305: Display each of the reset control areas according to the first preset mode.
本实施例中,若确定出所述终端设备的显示屏所显示的目标子区域所包含的所有的所述重设控件区域中的字符串的长度均小于或等于所述重设控件区域的重设长度,则可控制各所述重设控件区域内的字符串居中显示。In this embodiment, if it is determined that the lengths of all the character strings in the reset control areas contained in the target sub-area displayed on the display screen of the terminal device are less than or equal to the reset length of the reset control area, the character strings in each reset control area can be controlled to be displayed in the center.
需明确的是,本实施例对显示在各所述重设控件区域内的字符串的显示方式不做限定,只要显示在各所述重设控件区域内的字符串能够以单行的方式进行显示,即位于各所述重设控件区域内的字符串无需进行换行显示,从而有效的保障了用户对字符串进行阅读的效率。It should be clear that this embodiment does not limit the display method of the character strings displayed in each of the reset control areas, as long as the character strings displayed in each of the reset control areas can be displayed in a single line, that is, the character strings located in each of the reset control areas do not need to be displayed in line breaks, thereby effectively ensuring the user's efficiency in reading the character strings.
步骤306、按第二预设模式对各所述重设控件区域进行显示。Step 306: Display each of the reset control areas according to a second preset mode.
以下对本实施例所示的第二预设模式进行详细说明,需明确的是,本实施例中,因所述重设控件区域内字符串的长度的不同,则会使得所述重设控件区域具有不同的所述第二预设模式。The second preset mode shown in this embodiment is described in detail below. It should be noted that in this embodiment, due to the different lengths of the character strings in the reset control area, the reset control area will have different second preset modes.
以下针对不同的所述重设控件区域内的不同的字符串的长度进行说明。The following describes the lengths of different character strings in different reset control areas.
一种情况为,若所述重设控件区域位于第一位置,且位于所述第一位置的所述重设控件区域以及位于所述第一位置的所述重设控件区域两侧的重设控件区域均满足第一条件。One case is that if the reset control area is located at a first position, and the reset control area located at the first position and the reset control areas on both sides of the reset control area located at the first position all meet the first condition.
本实施例所示的第一条件为:所述重设控件区域内的字符串的长度大于所述重设控件区域的重设长度。The first condition shown in this embodiment is that the length of the character string in the reset control area is greater than the reset length of the reset control area.
本实施例所示的位于所述第一位置的所述重设控件区域的两侧均设置有重设控件区域。In this embodiment, reset control areas are provided on both sides of the reset control area located at the first position.
如图6所示,位于所述第一位置的重设控件区域为重设控件区域605,且所述重设控件区域605位于所述重设控件区域607和所述重设控件区域606之间。As shown in FIG. 6 , the reset control area located at the first position is the reset control area 605 , and the reset control area 605 is located between the reset control area 607 and the reset control area 606 .
本实施例图6所示各子区域以包括三个重设控件区域为例进行说明,在具体应用中,所述子区域可包括的重设控件区域的数目在本实施例中不做限定。In this embodiment, each sub-region shown in FIG6 is described by taking three reset control regions as an example. In a specific application, the number of reset control regions that the sub-region may include is not limited in this embodiment.
还需明确的是,本实施例以所述重设控件区域607和所述重设控件区域606位于所述子区域边缘为例进行示例性说明,在具体应用中,在本设置方式中,只要所述重设控件区域607和所述重设控件区域606位于所述重设控件区域605的两侧即可。It should also be clarified that this embodiment uses the example of the reset control area 607 and the reset control area 606 being located at the edge of the sub-area for illustrative explanation. In specific applications, in this setting method, it is sufficient as long as the reset control area 607 and the reset control area 606 are located on both sides of the reset control area 605.
图6所示对位于各所述重设控件区域内的字符串的内容不做限定。FIG6 does not limit the content of the character strings located in each reset control area.
如图6所示可知,位于所述第一位置的重设控件区域605满足所述第一条件,即所述重设控件区域605内的第一字符串的长度大于所述重设控件区域605的重设长度。As shown in FIG. 6 , the reset control area 605 located at the first position meets the first condition, that is, the length of the first character string in the reset control area 605 is greater than the reset length of the reset control area 605 .
在本种情况中,位于所述重设控件区域605两侧的重设控件区域607以及重设控件区域606也满足所述第一条件,即所述重设控件区域607内的字符串的长度大于所述重设控件区域607的重设长度,以及所述重设控件区域606内的字符串的长度大于所述重设控件区域606的重设长度。In this case, the reset control area 607 and the reset control area 606 located on both sides of the reset control area 605 also meet the first condition, that is, the length of the character string in the reset control area 607 is greater than the reset length of the reset control area 607, and the length of the character string in the reset control area 606 is greater than the reset length of the reset control area 606.
在本种情况中,所述第二预设模式可为:In this case, the second preset mode may be:
若经过目标处理后的第一字符串的长度小于或等于位于第一位置的重设控件区域的长度,则将经过所述目标处理后的第一字符串居中显示在所述重设控件区域605内。If the length of the first character string after the target processing is less than or equal to the length of the reset control area located at the first position, the first character string after the target processing is displayed in the center of the reset control area 605 .
本种设置方式中,所述目标处理为对位于所述第一位置的所述重设控件区域内的第一字符串的任一字符进行缩小处理,以使缩小处理后的所述第一字符串的任一字符大于或等于第一预设值。In this setting manner, the target processing is to reduce the size of any character of the first string within the reset control area at the first position, so that any character of the first string after the reduction processing is greater than or equal to a first preset value.
本实施例对所述第一预设值的大小不做限定,只要大于或等于所述第一预设值的所述字符能够被用户看清即可。This embodiment does not limit the size of the first preset value, as long as the characters greater than or equal to the first preset value can be clearly seen by the user.
所述第一预设值可为制造商出厂时初始化设定的,也可由用户根据自己的需求自定义的设置,例如,所述终端设备可向用户推送设定界面,所述设定界面用于指示用户设定字符显示的最小值,即所述第一预设值。The first preset value can be initialized by the manufacturer at the factory, or can be customized by the user according to his or her own needs. For example, the terminal device can push a setting interface to the user, and the setting interface is used to instruct the user to set the minimum value of the character display, that is, the first preset value.
结合图6所示的显示模式600所示为例,在显示模式600中的子区域中包括有重设控件区域605、重设控件区域607以及重设控件区域606。Taking the display mode 600 shown in FIG. 6 as an example, the sub-areas in the display mode 600 include a reset control area 605 , a reset control area 607 , and a reset control area 606 .
位于所述第一位置的重设控件区域为控件区域605,若所述重设控件区域605内的第一字符串的长度大于所述重设控件区域605的重设长度,则可对所述重设控件区域605内的字符进行所述目标处理。The reset control area located at the first position is the control area 605. If the length of the first character string in the reset control area 605 is greater than the reset length of the reset control area 605, the target processing can be performed on the characters in the reset control area 605.
若经过所述目标处理后的第一字符串的长度小于或等于所述重设控件区域的长度,则将经过所述目标处理后的第一字符串居中显示在所述重设控件区域内。If the length of the first character string after the target processing is less than or equal to the length of the reset control area, the first character string after the target processing is displayed in the center of the reset control area.
继续结合图6所示,在经过所述目标处理后的第一字符串的长度小于或等于所述重设控件区域605的长度的情况下,图6所示的由显示模式600跳转到显示模式601,在显示模式601中,对所述重设控件区域605内的第一字符串进行缩小处理,在保障缩小处理后的所述第一字符串任一字符大于或等于所述第一预设值的情况下,若所述第一字符串的长度小于或等于所述重设控件区域605的长度,则将经过所述目标处理后的所述第一字符串居中显示在所述重设控件区域605内。Continuing with Figure 6, when the length of the first character string after the target processing is less than or equal to the length of the reset control area 605, Figure 6 jumps from display mode 600 to display mode 601. In display mode 601, the first character string in the reset control area 605 is reduced in size. While ensuring that any character of the first character string after the reduction processing is greater than or equal to the first preset value, if the length of the first character string is less than or equal to the length of the reset control area 605, the first character string after the target processing will be displayed in the center of the reset control area 605.
若经过所述目标处理后的第一字符串的长度大于所述重设控件区域的长度,则将经过所述目标处理后的第一字符串分行显示在所述重设控件区域内。If the length of the first character string after the target processing is greater than the length of the reset control area, the first character string after the target processing is displayed in the reset control area in separate lines.
继续结合图6所示,在经过所述目标处理后的第一字符串的长度大于所述重设控件区域605的长度的情况下,图6所示的由显示模式600跳转到显示模式602,在显示模式602中,对所述重设控件区域605内的第一字符串进行缩小处理,在保障缩小处理后的所述第一字符串任一字符大于或等于所述第一预设值的情况下,将缩小处理后的所述第一字符串分行显示在所述重设控件区域605内。Continuing with FIG6 , when the length of the first character string after the target processing is greater than the length of the reset control area 605, FIG6 jumps from display mode 600 to display mode 602. In display mode 602, the first character string in the reset control area 605 is reduced in size. When ensuring that any character of the first character string after the reduction processing is greater than or equal to the first preset value, the first character string after the reduction processing is displayed in lines in the reset control area 605.
本实施例中,满足所述第一条件的所述重设控件区域内所显示的所述第一字符串与满足所述第二条件的字符串之间具有所述第一预设间隔,所述第一预设间隔的具体说明请详见上文所示,具体不再赘述。In this embodiment, there is a first preset interval between the first character string displayed in the reset control area that meets the first condition and the character string that meets the second condition. The specific description of the first preset interval is shown above and will not be repeated here.
还可选的,若所述终端设备确定出即便将所述重设控件区域605内的字符进行缩小处理也无法在所述重设控件区域605内进行单行显示,则所述终端设备可不对所述重设控件区域605内的字符进行缩小处理,而是直接进行分行显示。Optionally, if the terminal device determines that even if the characters in the reset control area 605 are reduced in size, they cannot be displayed in a single line in the reset control area 605, the terminal device may not reduce the characters in the reset control area 605, but directly display them in separate lines.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在重设控件区域的左右两侧的重设控件区域均满足所述第一条件的情况下,可对所述重设控件区域内的字符串进行缩小处理,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and when the reset control areas on the left and right sides of the reset control area meet the first condition, the character string in the reset control area can be reduced. Therefore, compared with the prior art that does not modify the character string, this embodiment can avoid line wrapping of the character string in the reset control area or reduce the number of lines of the character string in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
另一种情况为,若所述重设控件区域位于所述第一位置,且位于所述第一位置的所述重设控件区域满足所述第一条件,位于所述第一位置的所述重设控件区域一侧的重设控件区域满足第一条件,位于所述第一位置的所述重设控件区域另一侧的重设控件区域满足第二条件。Another situation is that if the reset control area is located at the first position, and the reset control area located at the first position meets the first condition, the reset control area on one side of the reset control area located at the first position meets the first condition, and the reset control area on the other side of the reset control area located at the first position meets the second condition.
本实施例以满足所述第二条件的所述重设控件区域位于第二位置为例进行说明,所述第二位置为所述第一位置的左右两侧中的任一侧;This embodiment is described by taking the reset control area that satisfies the second condition and is located at the second position as an example, where the second position is either side of the left or right side of the first position;
本实施例对位于所述第二位置的所述重设控件区域是位于第一位置的所述重设控件区域的左侧还是右侧不做限定,本实施例以位于所述第一位置的所述重设控件区域左侧的重设控件区域满足第一条件,位于所述第一位置的所述重设控件区域右侧的重设控件区域满足第二条件为例进行示例性说明。This embodiment does not limit whether the reset control area located at the second position is located on the left or right side of the reset control area at the first position. This embodiment is exemplified by the example that the reset control area located on the left side of the reset control area at the first position meets the first condition, and the reset control area located on the right side of the reset control area at the first position meets the second condition.
所述第一条件请详见上述所示,具体不再赘述。Please refer to the above for details of the first condition, which will not be elaborated on here.
所述第二条件为:所述重设控件区域内的字符串的长度小于所述重设控件区域的重设长度。The second condition is that the length of the character string in the reset control area is less than the reset length of the reset control area.
以图7所示为例的显示模式700所示,本实施例以所述显示模式700包括的子区域为子区域703为例,所述子区域703内设置有三个重设控件区域为例。Taking the display mode 700 shown in FIG. 7 as an example, this embodiment takes the sub-area included in the display mode 700 as the sub-area 703 as an example, and takes the sub-area 703 as an example in which three reset control areas are set.
本实施例图7所示各子区域以包括三个重设控件区域为例进行说明,在具体应用中,所述子区域可包括的重设控件区域的数目在本实施例中不做限定。In this embodiment, each sub-region shown in FIG. 7 is described by taking three reset control regions as an example. In a specific application, the number of reset control regions that the sub-region may include is not limited in this embodiment.
还需明确的是,本实施例以所述重设控件区域607和所述重设控件区域606位于所述子区域边缘为例进行示例性说明,在具体应用中,在本设置方式中,只要所述重设控件区域607和所述重设控件区域606位于所述重设控件区域605的两侧即可。It should also be clarified that this embodiment uses the example of the reset control area 607 and the reset control area 606 being located at the edge of the sub-area for illustrative explanation. In specific applications, in this setting method, it is sufficient as long as the reset control area 607 and the reset control area 606 are located on both sides of the reset control area 605.
具体的,所述重设控件区域605为位于所述第一位置的所述重设控件区域,且所述重设控件区域605位于重设控件区域606和重设控件区域607之间。Specifically, the reset control area 605 is the reset control area located at the first position, and the reset control area 605 is located between the reset control area 606 and the reset control area 607 .
具体的,本实施例所示的子区域703的两侧与所述终端设备的显示屏的边缘之间的具有的间隔为第二预设间隔701,所述第二预设间隔701的大小可为8dp,1dp=1/160英寸。Specifically, the interval between the two sides of the sub-area 703 shown in this embodiment and the edge of the display screen of the terminal device is a second preset interval 701, and the size of the second preset interval 701 can be 8dp, 1dp=1/160 inch.
需明确的是,本实施例对所述第二预设间隔701的大小的说明为可选示例,不做限定。It should be noted that the description of the size of the second preset interval 701 in this embodiment is an optional example and is not limiting.
本实施例所示的所述子区域703的左侧边缘位置和所述重设控件区域607之间沿所述终端设备横向方向设置有第三预设间隔702。所述子区域703的右侧边缘位置和所述重设控件区域606之间沿所述终端设备横向方向设置的所述第三预设间隔702。In this embodiment, a third preset interval 702 is provided along the horizontal direction of the terminal device between the left edge of the sub-area 703 and the reset control area 607. The third preset interval 702 is provided along the horizontal direction of the terminal device between the right edge of the sub-area 703 and the reset control area 606.
如图7所示的第三预设间隔702可为12dp。As shown in FIG. 7 , the third preset interval 702 may be 12 dp.
需明确的是,本实施例对所述第三预设间隔702的大小的说明为可选示例,不做限定。It should be noted that the description of the size of the third preset interval 702 in this embodiment is an optional example and is not limiting.
还需明确的是,在具体应用中,本实施例对是否设置所述第二预设间隔701以及所述第三预设间隔702不做限定。It should also be clarified that, in specific applications, this embodiment does not limit whether to set the second preset interval 701 and the third preset interval 702.
如图7所示,在对所述子区域700进行重新设置的过程中,位于所述第一位置的所述重设控件区域605具有所述重设长度。As shown in FIG. 7 , during the process of resetting the sub-area 700 , the reset control area 605 located at the first position has the reset length.
如何确定所述重设长度请详见上述实施例所示,具体在本实施例中不做赘述。How to determine the reset length is described in detail in the above embodiment, and will not be described in detail in this embodiment.
在本种情况中,因位于所述重设控件区域605内的第一字符串的长度大于所述重设控件区域605的长度,则为了能够显示完整的所述第一字符串,则在本种情况中,所述第二预设模式可为:In this case, since the length of the first character string located in the reset control area 605 is greater than the length of the reset control area 605, in order to display the complete first character string, in this case, the second preset mode may be:
将第一字符串以至少一行字符串的方式进行显示,且所述至少一行字符串中的任一行字符串与第二字符串之间的距离大于或等于所述第二预设值。The first character string is displayed in the form of at least one line of character strings, and the distance between any one line of character strings in the at least one line of character strings and the second character string is greater than or equal to the second preset value.
其中,所述第一字符串为位于所述第一位置的所述重设控件区域内的字符串,所述第二字符串为位于第二位置的重设控件区域内的字符串。The first character string is a character string located in the reset control area at the first position, and the second character string is a character string located in the reset control area at the second position.
具体的,如图7所示的显示模式700所示,位于所述第一位置的所述控件区域605内的第一字符串在所述重设控件区域605内无法完整显示,即所述第一字符串单行进行显示时的长度大于所述重设控件区域605的长度L1。Specifically, as shown in the display mode 700 shown in Figure 7, the first character string in the control area 605 located at the first position cannot be fully displayed in the reset control area 605, that is, the length of the first character string when displayed in a single line is greater than the length L1 of the reset control area 605.
确定第一字符串单行显示区域,其中,所述第一字符串的单行显示区域的长度大于位于所述第一位置的重设控件区域的长度,且所述第一字符串的单行显示区域与所述第二字符串之间的距离大于或等于所述第二预设值。Determine a single-line display area for a first character string, wherein a length of the single-line display area for the first character string is greater than a length of a reset control area located at the first position, and a distance between the single-line display area for the first character string and the second character string is greater than or equal to a second preset value.
具体的,以图7所示可知,在显示模式700中,若所述第一字符串单行进行显示时的长度大于所述重设控件区域605的长度L1,则由显示模式700跳转至显示模式704,在所述显示模式704中,所述终端设备确定出第一字符串单行显示区域705。Specifically, as shown in Figure 7, in display mode 700, if the length of the first string when displayed in a single line is greater than the length L1 of the reset control area 605, then the display mode 700 jumps to display mode 704. In the display mode 704, the terminal device determines the first string single-line display area 705.
更具体的,所述第一字符串单行显示区域705的长度L2大于L1,且所述第一字符串单行显示区域705与位于所述重设控件区域606内的所述第二字符串之间的距离大于或等于所述第二预设值T1。More specifically, the length L2 of the first character string single-line display area 705 is greater than L1, and the distance between the first character string single-line display area 705 and the second character string located in the reset control area 606 is greater than or equal to the second preset value T1.
可选的,本实施例所示的所述第一字符串单行显示区域705为位于所述第一位置的所述重设控件区域内的全部区域或部分区域向所述第二字符串的方向延伸以形成。Optionally, the first character string single-line display area 705 shown in this embodiment is formed by extending the entire area or a portion of the reset control area located at the first position toward the direction of the second character string.
具体的,以图7所示为例,位于所述第一位置的所述重设控件区域605可包括用于显示图标的区域和用于显示字符串的区域,在所述第一字符串的长度大于所述重设控件区域605的长度的情况下,可将所述重设控件区域605全部区域沿所述第二字符串的方向延伸,直至所述第一字符串单行显示区域705与所述第二字符串之间的距离大于或等于所述第二预设值,或者,可将所述重设控件区域605内用于显示字符串的区域沿所述第二字符串的方向延伸,直至所述第一字符串单行显示区域705内用于显示字符串的区域与所述第二字符串之间的距离大于或等于所述第二预设值。Specifically, taking Figure 7 as an example, the reset control area 605 located at the first position may include an area for displaying icons and an area for displaying strings. When the length of the first string is greater than the length of the reset control area 605, the entire area of the reset control area 605 can be extended in the direction of the second string until the distance between the first string single-line display area 705 and the second string is greater than or equal to the second preset value, or the area for displaying strings within the reset control area 605 can be extended in the direction of the second string until the distance between the area for displaying strings within the first string single-line display area 705 and the second string is greater than or equal to the second preset value.
可见,本实施例所示的第一字符串能够在所述重设控件区域605内向所述第二字符串的方向移动。It can be seen that the first character string shown in this embodiment can be moved in the direction of the second character string within the reset control area 605 .
在本实施例中,所述第一字符串单行显示区域705的延伸的具体过程可为:In this embodiment, the specific process of extending the first character string single-line display area 705 may be:
具体的,在所述第一字符串单行显示区域705向所述第二字符串延伸的过程中,若所述第一字符串单行显示区域705的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域705不再延伸;Specifically, in the process of extending the first character string single-line display area 705 toward the second character string, if the length of the first character string single-line display area 705 is greater than or equal to the length of the first character string single-line display, the first character string single-line display area 705 is no longer extended;
若所述第一字符串单行显示区域705向所述第二字符串延伸过程中,所述第一字符串单行显示区域705与所述第二字符串之间的距离等于所述第二预设值,和/或所述第一字符串单行显示区域705的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域705不再向所述第二字符串方向延伸。If, during the process of extending the first character string single-line display area 705 toward the second character string, the distance between the first character string single-line display area 705 and the second character string is equal to the second preset value, and/or the length of the first character string single-line display area 705 is greater than or equal to the length of the first character string single-line display, the first character string single-line display area 705 no longer extends toward the second character string.
本实施例所示的显示所述第一字符串的具体流程为:The specific process of displaying the first character string shown in this embodiment is:
判断所述第一字符串的长度是否小于或等于所述第一字符串单行显示区域的长度。It is determined whether the length of the first character string is less than or equal to the length of the single-line display area of the first character string.
若是,则将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域内。If so, the first character string is displayed in a single line in the first character string single line display area.
具体的,以图7所示的显示模式704所示,若所述第一字符串的长度小于或等于所述第一字符串单行显示区域705的长度L2,则可将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域705内。Specifically, as shown in display mode 704 in Figure 7, if the length of the first string is less than or equal to the length L2 of the first string single-line display area 705, the first string can be displayed in a single line in the first string single-line display area 705.
若否,可选的,一种方式可为,将所述第一字符串以分行的方式显示在所述第一字符串单行显示区域内。If not, optionally, one method may be to display the first character string in a line-by-line manner in the first character string single-line display area.
具体的,如图7所示的显示模式706所示,若所述第一字符串的长度大于所述第一字符串单行显示区域705的长度L2,则可将所述第一字符串以两行或两行以上显示在所述第一字符串单行显示区域705内,以使所述第一字符串任一行字符串的长度小于或等于已确定的所述第一字符串单行显示区域705的长度L2,以使所述第一字符串的任一行字符串与所述第二字符串之间的距离大于或等于所述第二预设值。Specifically, as shown in display mode 706 in Figure 7, if the length of the first character string is greater than the length L2 of the first character string single-line display area 705, the first character string can be displayed in two or more lines in the first character string single-line display area 705, so that the length of any line of the first character string is less than or equal to the determined length L2 of the first character string single-line display area 705, and the distance between any line of the first character string and the second character string is greater than or equal to the second preset value.
若否,还可选的,另一种方式为,对所述第一字符串进行所述目标处理,若经过所述目标处理后的所述第一字符串的长度小于或等于所述第一字符串单行显示区域的长度,则将经过所述目标处理后的所述第一字符串单行显示在所述第一字符串单行显示区域内,若经过所述目标处理后的所述第一字符串的长度大于所述第一字符串单行显示区域的长度,则将经过所述目标处理后的所述第一字符串分行显示在所述第一字符串单行显示区域内。If not, another optional method is to perform the target processing on the first character string. If the length of the first character string after the target processing is less than or equal to the length of the single-line display area of the first character string, the first character string after the target processing will be displayed in a single line in the first character string single-line display area. If the length of the first character string after the target processing is greater than the length of the single-line display area of the first character string, the first character string after the target processing will be displayed in separate lines in the first character string single-line display area.
具体的,如图7所示的显示模式707所示,若所述第一字符串的长度大于所述第一字符串单行显示区域705的长度L2,则可对所述第一字符串进行目标处理,所述目标处理的具体过程请详见上述所示,具体不再赘述,若经过缩小处理后的所述第一字符串的长度小于或等于所述第一字符串单行显示区域705的长度,则将经过所述目标处理后的所述第一字符串单行显示在所述第一字符串单行显示区域705内,如图7所示的显示模式708所示,若所述第一字符串的长度大于所述第一字符串单行显示区域705的长度L2,则可对所述第一字符串进行目标处理,若经过缩小处理后的所述第一字符串的长度大于所述第一字符串单行显示区域705的长度,则将经过所述目标处理后的所述第一字符串分行显示在所述第一字符串单行显示区域705内。Specifically, as shown in display mode 707 of Figure 7, if the length of the first string is greater than the length L2 of the first string single-line display area 705, the first string can be subjected to target processing. The specific process of the target processing is detailed as shown above and will not be repeated here. If the length of the first string after the reduction processing is less than or equal to the length of the first string single-line display area 705, the first string after the target processing will be displayed in a single line in the first string single-line display area 705. As shown in display mode 708 of Figure 7, if the length of the first string is greater than the length L2 of the first string single-line display area 705, the first string can be subjected to target processing. If the length of the first string after the reduction processing is greater than the length of the first string single-line display area 705, the first string after the target processing will be displayed in lines in the first string single-line display area 705.
本实施例所示的第二字符串的长度小于所述第二字符串所位于的重设控件区域的重设长度,从而使得即便所述第一字符串向所述第二字符串延伸,所述第二字符串也能够在满足所述第二条件的所述重设控件区域内不截断的单行显示。The length of the second character string shown in this embodiment is less than the reset length of the reset control area where the second character string is located, so that even if the first character string extends toward the second character string, the second character string can be displayed in a single line without being truncated in the reset control area that meets the second condition.
本实施例所示的第二字符串可居中显示在所述重设控件区域606内,当然,本实施例对所述第二字符串在所述重设控件区域606内的具体显示位置不做限定,只要能够保证所述第一字符串与所述第二字符串之间的距离大于所述第二预设值即可。The second character string shown in this embodiment can be displayed centered in the reset control area 606. Of course, this embodiment does not limit the specific display position of the second character string in the reset control area 606, as long as the distance between the first character string and the second character string can be greater than the second preset value.
例如,在所述第一字符串向所述第二字符串延伸的过程中,为尽可能的避免所述第一字符串换行,则所述第二字符串可向所述终端设备的显示屏方向延伸,即所述第二字符串向所述第三预设间隔702方向延伸,以使所述第二字符串与所述终端设备的显示屏的边缘之间具有的目标间隔即可,从而尽可能的扩大用于显示所述第一字符串的所述第一字符串单行显示区域的长度,本实施例对所述目标间隔与所述第二预设间隔701之间的大小关系不做限定。For example, in the process of extending the first character string to the second character string, in order to avoid the first character string from wrapping as much as possible, the second character string can be extended toward the display screen of the terminal device, that is, the second character string extends toward the third preset interval 702, so that the target interval between the second character string and the edge of the display screen of the terminal device is sufficient, thereby expanding the length of the single-line display area of the first character string used to display the first character string as much as possible. This embodiment does not limit the size relationship between the target interval and the second preset interval 701.
可选的,本实施例以所述第二预设值为8dp为例进行示例性说明。Optionally, this embodiment is illustratively described by taking the second preset value of 8dp as an example.
需明确的是,在具体应用中,本实施例对所述第二预设值的大小不做限定。It should be noted that, in specific applications, this embodiment does not limit the size of the second preset value.
本实施例即便控制所述第一字符串向所述第二字符串的方向延伸,也要保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,从而有效的避免用户在阅读的过程中混淆所述第一字符串和所述第二字符串,从而使得用户能够明确所述第一字符串和所述第二字符串是分别属于不同的重设控件区域内的字符串,避免用户阅读过程中的误解,提升了用户阅读过程中的准确率。In this embodiment, even if the first character string is controlled to extend in the direction of the second character string, the distance between the first character string and the second character string is ensured to be greater than or equal to the second preset value, thereby effectively preventing the user from confusing the first character string and the second character string during reading. This allows the user to clearly understand that the first character string and the second character string belong to different reset control areas, thereby avoiding misunderstandings during reading and improving the user's reading accuracy.
本实施例以满足所述第二条件的重设控件区域位于满足第一条件的重设控件区域的右侧为例进行示例性说明,若满足所述第二条件的重设控件区域位于满足所述第一条件的重设控件区域的左侧,则满足所述第一条件的重设控件区域内的字符串向左侧的重设控件区域的延伸方式请详见本种设置方式所示,具体不做赘述。This embodiment is illustrated by taking the example of the case where the reset control area that meets the second condition is located on the right side of the reset control area that meets the first condition. If the reset control area that meets the second condition is located on the left side of the reset control area that meets the first condition, then the method of extending the character string in the reset control area that meets the first condition to the reset control area on the left side is detailed in this setting method and will not be elaborated on.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在重设控件区域的一侧满足所述第一条件,所述重设控件区域的另一侧满足所述第二条件的情况下,所述重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and when one side of the reset control area meets the first condition and the other side of the reset control area meets the second condition, the first character string in the reset control area can be extended to the second character string in the reset control area that meets the second condition, and the distance between the first character string and the second character string is ensured to be greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the character string, this embodiment can avoid the character string in the reset control area from wrapping or reduce the number of lines of the character string in the reset control area, thereby reducing the number of character string truncation times and improving the efficiency of user reading of the character string.
另一种情况为,若所述重设控件区域位于所述第一位置,且位于所述第一位置的所述重设控件区域满足所述第一条件,位于所述第二位置的所述控件区域两侧的重设控件区域满足第二条件。In another case, if the reset control area is located at the first position, and the reset control area at the first position meets the first condition, the reset control areas on both sides of the control area at the second position meet the second condition.
本种设置方式中的所述第一条件和所述第二条件的具体说明请详见上述设置方式所示,具体不再赘述。For detailed descriptions of the first and second conditions in this setting method, please refer to the above setting method and no further details will be given.
本种情况中,如图8所示,位于所述第一位置的重设控件区域为重设控件区域605,且所述重设控件区域605位于所述重设控件区域607和所述重设控件区域606之间。In this case, as shown in FIG8 , the reset control area located at the first position is the reset control area 605 , and the reset control area 605 is located between the reset control area 607 and the reset control area 606 .
本实施例图8所示各子区域以包括三个重设控件区域为例进行说明,在具体应用中,所述子区域可包括的重设控件区域的数目在本实施例中不做限定。In this embodiment, each sub-area shown in FIG8 is described by taking three reset control areas as an example. In a specific application, the number of reset control areas that the sub-area may include is not limited in this embodiment.
还需明确的是,本实施例以所述重设控件区域607和所述重设控件区域606位于所述子区域边缘为例进行示例性说明,在具体应用中,在本设置方式中,只要所述重设控件区域607和所述重设控件区域606位于所述重设控件区域605的两侧即可。It should also be clarified that this embodiment uses the example of the reset control area 607 and the reset control area 606 being located at the edge of the sub-area for illustrative explanation. In specific applications, in this setting method, it is sufficient as long as the reset control area 607 and the reset control area 606 are located on both sides of the reset control area 605.
本种情况中,位于所述第一位置的重设控件区域605满足所述第一条件,即所述重设控件区域605内的第一字符串的长度大于所述重设控件区域605的重设长度。In this case, the reset control area 605 located at the first position meets the first condition, that is, the length of the first character string in the reset control area 605 is greater than the reset length of the reset control area 605 .
位于所述重设控件区域605两侧的重设控件区域607以及重设控件区域606满足所述第二条件,即所述重设控件区域607内的第三字符串的长度小于所述重设控件区域607的重设长度,以及所述重设控件区域606内的第二字符串的长度小于所述重设控件区域606的重设长度。The reset control area 607 and the reset control area 606 located on both sides of the reset control area 605 meet the second condition, that is, the length of the third character string in the reset control area 607 is less than the reset length of the reset control area 607, and the length of the second character string in the reset control area 606 is less than the reset length of the reset control area 606.
在本种情况中,因位于所述重设控件区域605内的第一字符串的长度大于所述重设控件区域605的长度,则为了能够显示完整的所述第一字符串,则在本种情况中,所述第二预设模式可为:In this case, since the length of the first character string located in the reset control area 605 is greater than the length of the reset control area 605, in order to display the complete first character string, in this case, the second preset mode may be:
将所述第一字符串以至少一行字符串的方式进行显示,且所述至少一行字符串中的任一行字符串与第二字符串之间的距离大于或等于所述第二预设值,且所述至少一行字符串中的任一行字符串与所述第三字符串之间的距离大于或等于所述第二预设值。The first character string is displayed in at least one line of character strings, and a distance between any one line of character strings in the at least one line of character strings and the second character string is greater than or equal to the second preset value, and a distance between any one line of character strings in the at least one line of character strings and the third character string is greater than or equal to the second preset value.
所述第一字符串、所述第二字符串以及所述第三字符串的具体说明请详见上文所示,具体在本处不做赘述。The detailed description of the first character string, the second character string and the third character string is shown above and will not be repeated here.
具体的,如图8所示的显示模式800所示,位于所述第一位置的所述控件区域605内的第一字符串在所述重设控件区域605内无法完整显示,即所述第一字符串单行进行显示时的长度大于所述重设控件区域605的长度L1。Specifically, as shown in the display mode 800 shown in Figure 8, the first character string in the control area 605 located at the first position cannot be fully displayed in the reset control area 605, that is, the length of the first character string when displayed in a single line is greater than the length L1 of the reset control area 605.
确定第一字符串单行显示区域,其中,所述第一字符串的单行显示区域的长度大于位于所述第一位置的重设控件区域的长度,且所述第一字符串的单行显示区域与所述第二字符串之间的距离大于或等于所述第二预设值,且所述第一字符串的单行显示区域与所述第三字符串之间的距离大于或等于所述第二预设值。Determine a single-line display area for a first character string, wherein a length of the single-line display area for the first character string is greater than a length of a reset control area located at the first position, a distance between the single-line display area for the first character string and the second character string is greater than or equal to a second preset value, and a distance between the single-line display area for the first character string and the third character string is greater than or equal to the second preset value.
具体的,以图8所示可知,在显示模式800中,若所述第一字符串单行进行显示时的长度大于所述重设控件区域605的长度L1,则由显示模式800跳转至显示模式801,在所述显示模式801中,所述终端设备确定出第一字符串单行显示区域805。Specifically, as shown in Figure 8, in display mode 800, if the length of the first string when displayed in a single line is greater than the length L1 of the reset control area 605, then the display mode 800 jumps to display mode 801. In the display mode 801, the terminal device determines the first string single-line display area 805.
更具体的,所述第一字符串单行显示区域805的长度L2大于L1,且所述第一字符串单行显示区域805与位于所述重设控件区域606内的所述第二字符串之间的距离大于或等于所述第二预设值T1,且所述第一字符串单行显示区域805与位于所述重设控件区域607内的所述第三字符串之间的距离大于或等于所述第二预设值T1。More specifically, the length L2 of the first string single-line display area 805 is greater than L1, and the distance between the first string single-line display area 805 and the second string located in the reset control area 606 is greater than or equal to the second preset value T1, and the distance between the first string single-line display area 805 and the third string located in the reset control area 607 is greater than or equal to the second preset value T1.
可选的,本实施例所示的所述第一字符串单行显示区域805为位于所述第一位置的所述重设控件区域内的全部区域或部分区域分别向两边延伸以形成,即位于所述第一位置的所述重设控件区域的一端向所述第二字符串的方向延伸,位于所述第一位置的所述重设控件区域的另一端向所述第三字符串的方向延伸。Optionally, the first character string single-line display area 805 shown in this embodiment is formed by extending the entire area or part of the area within the reset control area located at the first position to both sides, that is, one end of the reset control area located at the first position extends in the direction of the second character string, and the other end of the reset control area located at the first position extends in the direction of the third character string.
具体的,以图8所示为例,位于所述第一位置的所述重设控件区域605可包括用于显示图标的区域和用于显示字符串的区域,在所述第一字符串的长度大于所述重设控件区域605的长度的情况下,可将所述重设控件区域605全部区域分别沿所述第二字符串和所述第三字符串的方向延伸,直至所述第一字符串单行显示区域805与所述第二字符串之间的距离大于或等于所述第二预设值,且直至所述第一字符串单行显示区域805与所述第三字符串之间的距离大于或等于所述第二预设值,或者,可将所述重设控件区域605内用于显示字符串的区域分别沿所述第二字符串和所述第三字符串的方向延伸,直至所述第一字符串单行显示区域805与所述第二字符串之间的距离大于或等于所述第二预设值,且直至所述第一字符串单行显示区域805与所述第二字符串之间的距离大于或等于所述第二预设值。Specifically, taking Figure 8 as an example, the reset control area 605 located at the first position may include an area for displaying icons and an area for displaying strings. When the length of the first string is greater than the length of the reset control area 605, the entire area of the reset control area 605 can be extended along the direction of the second string and the third string, respectively, until the distance between the first string single-line display area 805 and the second string is greater than or equal to the second preset value, and until the distance between the first string single-line display area 805 and the third string is greater than or equal to the second preset value, or, the area for displaying strings within the reset control area 605 can be extended along the direction of the second string and the third string, respectively, until the distance between the first string single-line display area 805 and the second string is greater than or equal to the second preset value, and until the distance between the first string single-line display area 805 and the second string is greater than or equal to the second preset value.
可见,本实施例所示的第一字符串能够居中对齐后在所述重设控件区域605内分别向所述第二字符串和所述第三字符串的方向移动。It can be seen that the first character string shown in this embodiment can be moved towards the second character string and the third character string respectively within the reset control area 605 after being aligned in the center.
在本实施例中,所述第一字符串单行显示区域805的延伸的具体过程可为:In this embodiment, the specific process of extending the first character string single-line display area 805 may be:
在本实施例中,所述第一字符串单行显示区域805分别向两边延伸的距离可相等,也可不相等。In this embodiment, the distances that the first character string single-line display area 805 extends to both sides may be equal or unequal.
具体的,若所述第一字符串单行显示区域805均匀向两边延伸过程中,若所述第一字符串单行显示区域805的长度大于或等于所述第一字符串单行显示的长度,则所述第一字符串单行显示区域805不再向两边延伸;Specifically, if the first character string single-line display area 805 is uniformly extended to both sides, if the length of the first character string single-line display area 805 is greater than or equal to the length of the first character string single-line display, the first character string single-line display area 805 no longer extends to both sides;
若所述第一字符串单行显示区域805向所述第二字符串和所述第三字符串延伸过程中,所述第一字符串单行显示区域805与所述第二字符串之间的距离等于所述第二预设值,且所述第一字符串单行显示区域805与所述第三字符串之间的距离大于所述第二预设值,则所述第一字符串单行显示区域805不再向所述第二字符串方向延伸,而是向所述第三字符串方向延伸,直至所述第一字符串单行显示区域805的长度大于或等于所述第一字符串单行显示的长度和/或所述第一字符串单行显示区域805与所述第三字符串之间的距离等于所述第二预设值;If, during the process of extending the first character string single-line display area 805 toward the second character string and the third character string, the distance between the first character string single-line display area 805 and the second character string is equal to the second preset value, and the distance between the first character string single-line display area 805 and the third character string is greater than the second preset value, the first character string single-line display area 805 no longer extends toward the second character string, but instead extends toward the third character string, until the length of the first character string single-line display area 805 is greater than or equal to the length of the first character string single-line display and/or the distance between the first character string single-line display area 805 and the third character string is equal to the second preset value;
若所述第一字符串单行显示区域805向所述第二字符串和所述第三字符串延伸过程中,所述第一字符串单行显示区域805与所述第三字符串之间的距离等于所述第二预设值,且所述第一字符串单行显示区域805与所述第二字符串之间的距离大于所述第二预设值,则所述第一字符串单行显示区域805不再向所述第三字符串方向延伸,而是向所述第二字符串方向延伸,直至所述第一字符串单行显示区域805的长度大于或等于所述第一字符串单行显示的长度和/或所述第一字符串单行显示区域805与所述第二字符串之间的距离等于所述第二预设值。If, during the process of extending the first character string single-line display area 805 toward the second character string and the third character string, the distance between the first character string single-line display area 805 and the third character string is equal to the second preset value, and the distance between the first character string single-line display area 805 and the second character string is greater than the second preset value, the first character string single-line display area 805 no longer extends toward the third character string, but instead extends toward the second character string until the length of the first character string single-line display area 805 is greater than or equal to the length of the first character string single-line display and/or the distance between the first character string single-line display area 805 and the second character string is equal to the second preset value.
本实施例所示的显示所述第一字符串的具体流程为:The specific process of displaying the first character string shown in this embodiment is:
判断所述第一字符串的长度是否小于或等于所述第一字符串单行显示区域的长度。It is determined whether the length of the first character string is less than or equal to the length of the single-line display area of the first character string.
若是,则将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域内。If so, the first character string is displayed in a single line in the first character string single line display area.
具体的,以图8所示的显示模式801所示,若所述第一字符串的长度小于或等于所述第一字符串单行显示区域805的长度L2,则可将所述第一字符串以单行的方式显示在所述第一字符串单行显示区域805内。Specifically, as shown in display mode 801 in Figure 8, if the length of the first string is less than or equal to the length L2 of the first string single-line display area 805, the first string can be displayed in a single line in the first string single-line display area 805.
若否,可选的,一种方式可为,将所述第一字符串以分行的方式显示在所述第一字符串单行显示区域内。If not, optionally, one method may be to display the first character string in a line-by-line manner in the first character string single-line display area.
具体的,如图8所示的显示模式802所示,若所述第一字符串的长度大于所述第一字符串单行显示区域805的长度L2,则可将所述第一字符串以两行或两行以上显示在所述第一字符串单行显示区域705内,以使所述第一字符串任一行字符串的长度小于或等于已确定的所述第一字符串单行显示区域705的长度L2,以使所述第一字符串的任一行字符串与所述第二字符串之间的距离大于或等于所述第二预设值。Specifically, as shown in the display mode 802 of Figure 8, if the length of the first character string is greater than the length L2 of the first character string single-line display area 805, the first character string can be displayed in two or more lines in the first character string single-line display area 705, so that the length of any line of the first character string is less than or equal to the determined length L2 of the first character string single-line display area 705, and the distance between any line of the first character string and the second character string is greater than or equal to the second preset value.
若否,还可选的,另一种方式为,对所述第一字符串进行所述目标处理,若经过所述目标处理后的所述第一字符串的长度小于或等于所述第一字符串单行显示区域的长度,则将经过所述目标处理后的所述第一字符串单行显示在所述第一字符串单行显示区域内,若经过所述目标处理后的所述第一字符串的长度大于所述第一字符串单行显示区域的长度,则将经过所述目标处理后的所述第一字符串分行显示在所述第一字符串单行显示区域内。If not, another optional method is to perform the target processing on the first character string. If the length of the first character string after the target processing is less than or equal to the length of the single-line display area of the first character string, the first character string after the target processing will be displayed in a single line in the first character string single-line display area. If the length of the first character string after the target processing is greater than the length of the single-line display area of the first character string, the first character string after the target processing will be displayed in separate lines in the first character string single-line display area.
具体的,如图8所示的显示模式803所示,若所述第一字符串的长度大于所述第一字符串单行显示区域805的长度L2,则可对所述第一字符串进行目标处理,所述目标处理的具体过程请详见上述所示,具体不再赘述,若经过缩小处理后的所述第一字符串的长度小于或等于所述第一字符串单行显示区域805的长度,则将经过所述目标处理后的所述第一字符串单行显示在所述第一字符串单行显示区域805内,如图8所示的显示模式804所示,若所述第一字符串的长度大于所述第一字符串单行显示区域805的长度L2,则可对所述第一字符串进行目标处理,若经过缩小处理后的所述第一字符串的长度大于所述第一字符串单行显示区域805的长度,则将经过所述目标处理后的所述第一字符串分行显示在所述第一字符串单行显示区域805内。Specifically, as shown in the display mode 803 of Figure 8, if the length of the first string is greater than the length L2 of the first string single-line display area 805, the first string can be subjected to target processing. The specific process of the target processing is detailed as shown above and will not be repeated here. If the length of the first string after the reduction processing is less than or equal to the length of the first string single-line display area 805, the first string after the target processing will be displayed in a single line in the first string single-line display area 805. As shown in the display mode 804 of Figure 8, if the length of the first string is greater than the length L2 of the first string single-line display area 805, the first string can be subjected to target processing. If the length of the first string after the reduction processing is greater than the length of the first string single-line display area 805, the first string after the target processing will be displayed in lines in the first string single-line display area 805.
本实施例所示的第二字符串的长度小于所述第二字符串所位于的重设控件区域的重设长度,且所述第三字符串的长度小于所述第三字符串所位于的重设控件区域的重设长度,从而使得即便所述第一字符串向所述第二字符串延伸,所述第二字符串也能够在满足所述第二条件的所述重设控件区域内不截断的单行显示,以及即便所述第一字符串向所述第三字符串延伸,所述第三字符串也能够在满足所述第二条件的所述重设控件区域内不截断的单行显示。The length of the second string shown in this embodiment is smaller than the reset length of the reset control area where the second string is located, and the length of the third string is smaller than the reset length of the reset control area where the third string is located, so that even if the first string extends toward the second string, the second string can be displayed in a single line without truncation in the reset control area that satisfies the second condition, and even if the first string extends toward the third string, the third string can be displayed in a single line without truncation in the reset control area that satisfies the second condition.
本实施例所示的第二字符串和所述第三字符串的具体显示方式可详见上文所示,具体不做赘述。The specific display methods of the second character string and the third character string shown in this embodiment can be seen in detail above and will not be described in detail.
本实施例即便控制所述第一字符串向所述第二字符串和所述第三字符串的方向延伸,也要保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,以及保障所述第一字符串和所述第三字符串之间的距离大于或等于所述第二预设值,从而有效的避免用户在阅读的过程中混淆所述第一字符串、所述第二字符串和所述第三字符串,从而使得用户能够明确所述第一字符串、所述第二字符串和所述第三字符串是分别属于不同的重设控件区域内的字符串,避免用户阅读过程中的误解,提升了用户阅读过程中的准确率。In this embodiment, even if the first character string is controlled to extend in the direction of the second character string and the third character string, it is necessary to ensure that the distance between the first character string and the second character string is greater than or equal to the second preset value, and to ensure that the distance between the first character string and the third character string is greater than or equal to the second preset value, thereby effectively preventing the user from being confused among the first character string, the second character string, and the third character string during reading, thereby enabling the user to clearly understand that the first character string, the second character string, and the third character string belong to different reset control areas, thereby avoiding misunderstandings during reading and improving the accuracy of the user's reading.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,且在位于第一位置的重设控件区域的两侧的重设控件区域均满足所述第二条件的情况下,所述重设控件区域内的第一字符串能够向满足所述第二条件的重设控件区域内的第二字符串和所述第三字符串进行延伸,且保障所述第一字符串和所述第二字符串之间的距离大于或等于所述第二预设值,以及保障所述第一字符串和所述第三字符串之间的距离大于或等于所述第二预设值,从而使得相对于不对字符串进行修改的现有技术而言,本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer character string, and when the reset control areas on both sides of the reset control area located at the first position meet the second condition, the first character string in the reset control area can be extended to the second character string and the third character string in the reset control area that meet the second condition, and ensure that the distance between the first character string and the second character string is greater than or equal to the second preset value, and ensure that the distance between the first character string and the third character string is greater than or equal to the second preset value. Therefore, compared with the prior art that does not modify the character string, this embodiment can avoid line wrapping of the character string located in the reset control area or reduce the number of lines of the character string located in the reset control area, thereby reducing the number of string truncation times and improving the efficiency of user reading of the character string.
另一种情况为,若所述重设控件区域位于第三位置,且位于所述第三位置的所述重设控件区域满足所述第一条件,与位于所述第三位置的所述重设控件区域相邻的重设控件区域满足第一条件。In another case, if the reset control area is located at a third position, and the reset control area located at the third position meets the first condition, the reset control area adjacent to the reset control area located at the third position meets the first condition.
本实施例中,所述第三位置为位于所述子区域边缘位置,即位于所述第三位置的所述重设控件区域为位于所述子区域边缘位置的重设控件区域,以图9所示为例,在显示模式900中,位于所述第三位置的所述重设控件区域为重设控件区域901以及重设控件区域902。In this embodiment, the third position is located at the edge of the sub-area, that is, the reset control area located at the third position is the reset control area located at the edge of the sub-area. Taking Figure 9 as an example, in display mode 900, the reset control area located at the third position is the reset control area 901 and the reset control area 902.
还需明确的是,本实施例对位于所述重设控件区域901和重设控件区域902之间的重设控件区域的数目不做限定,本实施例以所述重设控件区域901和重设控件区域902之间设置有一个重设控件区域903为例进行示例性说明。It should also be clarified that this embodiment does not limit the number of reset control areas located between the reset control area 901 and the reset control area 902. This embodiment uses the example of setting a reset control area 903 between the reset control area 901 and the reset control area 902 as an example for illustrative explanation.
本种情况以位于所述第三位置的所述重设控件区域901为例进行示例性说明,其中,所述重设控件区域901位于所述子区域的左边缘位置。This situation is exemplified by taking the reset control area 901 located at the third position as an example, wherein the reset control area 901 is located at the left edge of the sub-area.
其中,位于所述第三位置的所述重设控件区域902,所述重设控件区域902位于所述子区域的右边缘的位置,则位于所述重设控件区域902内的字符串的显示方式,请详见位于所述重设控件区域901内的字符串的显示方式,具体在本实施例中不做赘述。Among them, the reset control area 902 located at the third position is located at the right edge of the sub-area. For the display method of the character string located in the reset control area 902, please refer to the display method of the character string located in the reset control area 901, and the specific details will not be repeated in this embodiment.
本种场景中,因位于所述第三位置的所述重设控件区域901和与所述重设控件区域901相邻的重设控件区域903内的字符串的长度均大于重设控件区域的重设长度,则所述第二预设模式可为:In this scenario, since the lengths of the character strings in the reset control area 901 located at the third position and the reset control area 903 adjacent to the reset control area 901 are both greater than the reset length of the reset control area, the second preset mode may be:
若经过目标处理后的第四字符串的长度小于或等于位于第三位置的重设控件区域的长度,则将经过所述目标处理后的第三字符串居中显示在所述重设控件区域内。If the length of the fourth character string after the target processing is less than or equal to the length of the reset control area located at the third position, the third character string after the target processing is displayed centered in the reset control area.
其中,所述第四字符串为位于所述第三位置的重设控件区域内的字符串。The fourth character string is a character string located in the reset control area at the third position.
本种设置方式中,所述目标处理为对位于所述第三位置的所述重设控件区域内的第四字符串的任一字符进行缩小处理,以使缩小处理后的所述第一字符串的任一字符大于或等于第一预设值。In this setting manner, the target processing is to reduce any character of the fourth character string in the reset control area located at the third position, so that any character of the first character string after the reduction processing is greater than or equal to a first preset value.
对所述第一预设值的具体说明请详见上文所示,具体在本实施例中不做赘述。The specific description of the first preset value is shown above, and will not be repeated in this embodiment.
继续结合图9所示,在经过所述目标处理后的第四字符串的长度小于或等于所述重设控件区域901的长度的情况下,图9所示的由显示模式900跳转到显示模式904,在显示模式904中,对所述重设控件区域901内的第四字符串进行缩小处理,在保障缩小处理后的所述第四字符串任一字符大于或等于所述第一预设值的情况下,若所述第四字符串的长度小于或等于所述重设控件区域901的长度,则将经过所述目标处理后的所述第四字符串居中显示在所述重设控件区域901内。Continuing with FIG9 , when the length of the fourth character string after the target processing is less than or equal to the length of the reset control area 901, FIG9 jumps from display mode 900 to display mode 904. In display mode 904, the fourth character string in the reset control area 901 is reduced in size. While ensuring that any character of the fourth character string after the reduction processing is greater than or equal to the first preset value, if the length of the fourth character string is less than or equal to the length of the reset control area 901, the fourth character string after the target processing will be displayed centered in the reset control area 901.
若经过所述目标处理后的第四字符串的长度大于所述重设控件区域的长度,则将经过所述目标处理后的第四字符串分行显示在所述重设控件区域内。If the length of the fourth character string after the target processing is greater than the length of the reset control area, the fourth character string after the target processing is displayed in the reset control area in separate lines.
继续结合图9所示,在经过所述目标处理后的第四字符串的长度大于所述重设控件区域901的长度的情况下,图9所示的由显示模式900跳转到显示模式905,在显示模式905中,对所述重设控件区域901内的第四字符串进行缩小处理,在保障缩小处理后的所述第四字符串任一字符大于或等于所述第一预设值的情况下,将缩小处理后的所述第四字符串分行显示在所述重设控件区域901内。Continuing with FIG9 , when the length of the fourth character string after the target processing is greater than the length of the reset control area 901, FIG9 jumps from display mode 900 to display mode 905. In display mode 905, the fourth character string in the reset control area 901 is reduced in size. When any character of the fourth character string after the reduction processing is ensured to be greater than or equal to the first preset value, the fourth character string after the reduction processing is displayed in lines in the reset control area 901.
本种设置方式中,还可确定第四字符串单行显示区域,其中,所述第四字符串的单行显示区域的长度大于位于所述第三位置的重设控件区域的长度。In this setting mode, a single-line display area for a fourth character string may also be determined, wherein the length of the single-line display area for the fourth character string is greater than the length of the reset control area located at the third position.
具体的,位于所述第三位置的重设控件区域可向所述显示器的边缘方向延伸,且所述第四字符串的单行显示区域与终端设备的显示屏的边缘之间的距离大于或等于0即可,具体数值在本实施例中不做限定。Specifically, the reset control area located at the third position can extend toward the edge of the display, and the distance between the single-line display area of the fourth character string and the edge of the display screen of the terminal device can be greater than or equal to 0. The specific value is not limited in this embodiment.
具体的,以图9所示可知,在显示模式900中,若所述第四字符串单行进行显示时的长度大于所述重设控件区域901的长度L3,则由显示模式900跳转至显示模式906,在所述显示模式906中,所述终端设备确定出第四字符串单行显示区域907。Specifically, as shown in Figure 9, in display mode 900, if the length of the fourth character string when displayed in a single line is greater than the length L3 of the reset control area 901, the display mode jumps from display mode 900 to display mode 906. In display mode 906, the terminal device determines the fourth character string single-line display area 907.
本实施例中,所述第四字符串单行显示区域907的长度L2大于所述重设控件区域901的长度L3。In this embodiment, the length L2 of the fourth character string single-line display area 907 is greater than the length L3 of the reset control area 901 .
本实施例中,若所述第四字符串的长度小于或等于所述第四字符串单行显示区域907的长度,则所述第四字符串单行显示在所述第四字符串单行显示区域907内,若所述第四字符串的长度大于所述第四字符串单行显示区域907的长度,则所述第四字符串分行显示在所述第四字符串单行显示区域907内。In this embodiment, if the length of the fourth character string is less than or equal to the length of the fourth character string single-line display area 907, the fourth character string is displayed in a single line in the fourth character string single-line display area 907; if the length of the fourth character string is greater than the length of the fourth character string single-line display area 907, the fourth character string is displayed in separate lines in the fourth character string single-line display area 907.
可选的,显示在所述第四字符串单行显示区域907内的所述第四字符串可为已经过所述目标处理的字符串或未经过所述目标处理的字符串。Optionally, the fourth character string displayed in the fourth character string single-line display area 907 may be a character string that has undergone the target processing or a character string that has not undergone the target processing.
采用本种情况所示可知,因对现有技术所示的控件区域的长度进行了扩充,从而使得本实施例所示的重设控件区域能够显示更长的字符串,即本实施例所示能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。As shown in this case, since the length of the control area shown in the prior art is expanded, the reset control area shown in this embodiment can display a longer string, that is, this embodiment can avoid the string in the reset control area from wrapping or reduce the number of lines of the string in the reset control area, thereby reducing the number of times the string is truncated and improving the efficiency of users in reading the string.
另一种情况为,若所述重设控件区域位于第三位置,且位于所述第三位置的所述重设控件区域满足所述第一条件,与位于所述第三位置的所述重设控件区域相邻的重设控件区域满足第二条件。In another case, if the reset control area is located at a third position, and the reset control area located at the third position meets the first condition, the reset control area adjacent to the reset control area located at the third position meets the second condition.
本实施例中,所述第三位置为位于所述子区域边缘位置,即位于所述第三位置的所述重设控件区域为位于所述子区域边缘位置的重设控件区域,以图10所示为例,位于所述第三位置的所述重设控件区域为重设控件区域1001以及重设控件区域1002。In this embodiment, the third position is located at the edge of the sub-area, that is, the reset control area located at the third position is the reset control area located at the edge of the sub-area. Taking Figure 10 as an example, the reset control area located at the third position is the reset control area 1001 and the reset control area 1002.
本种情况以位于所述第三位置的所述重设控件区域1001为例进行示例性说明,其中,所述重设控件区域1001位于所述子区域的左边缘位置。This situation is exemplified by taking the reset control area 1001 located at the third position as an example, wherein the reset control area 1001 is located at the left edge of the sub-area.
其中,位于所述第三位置的所述重设控件区域1002,所述重设控件区域1002位于所述子区域的右边缘的位置,则位于所述重设控件区域1002内的字符串的显示方式,请详见位于所述重设控件区域1001内的字符串的显示方式,具体在本实施例中不做赘述。Among them, the reset control area 1002 located at the third position is located at the right edge of the sub-area. For the display method of the character string located in the reset control area 1002, please refer to the display method of the character string located in the reset control area 1001, and the specific details will not be repeated in this embodiment.
还需明确的是,本实施例对位于所述重设控件区域1001和重设控件区域1002之间的重设控件区域的数目不做限定,本实施例以所述重设控件区域1001和重设控件区域1002之间设置有一个重设控件区域1003为例进行示例性说明。It should also be clarified that this embodiment does not limit the number of reset control areas located between the reset control area 1001 and the reset control area 1002. This embodiment uses the example of setting a reset control area 1003 between the reset control area 1001 and the reset control area 1002 as an example for illustrative explanation.
本种情况以位于所述第三位置的所述重设控件区域1001为例进行示例性说明,其中,所述重设控件区域1001位于所述子区域的左边缘位置。This situation is exemplified by taking the reset control area 1001 located at the third position as an example, wherein the reset control area 1001 is located at the left edge of the sub-area.
其中,位于所述第三位置的所述重设控件区域1002,所述重设控件区域1002位于所述子区域的右边缘的位置,则位于所述重设控件区域1002内的字符串的显示方式,请详见位于所述重设控件区域1001内的字符串的显示方式,具体在本实施例中不做赘述。Among them, the reset control area 1002 located at the third position is located at the right edge of the sub-area. For the display method of the character string located in the reset control area 1002, please refer to the display method of the character string located in the reset control area 1001, and the specific details will not be repeated in this embodiment.
本种场景中,以位于所述第三位置的所述重设控件区域1001内的第四字符串的长度大于所述重设控件区域1001的重设长度,且位于所述第四位置的所述重设控件区域1003内的第五字符串的长度小于所述重设控件区域1003的重设长度为例,其中,所述第四位置为与所述第三位置相邻的位置。In this scenario, taking the example where the length of the fourth character string in the reset control area 1001 located at the third position is greater than the reset length of the reset control area 1001, and the length of the fifth character string in the reset control area 1003 located at the fourth position is less than the reset length of the reset control area 1003, wherein the fourth position is a position adjacent to the third position.
在本种情况中,所述第二预设模式可为:In this case, the second preset mode may be:
将所述第四字符串以至少一行字符串的方式进行显示,且所述至少一行字符串中的任一行字符串与所述第五字符串之间的距离大于或等于所述第二预设值,且所述至少一行字符串中的任一行字符串与显示屏的边缘之间的距离大于或等于第三预设值。The fourth character string is displayed in at least one line of character strings, and a distance between any one line of character strings in the at least one line of character strings and the fifth character string is greater than or equal to the second preset value, and a distance between any one line of character strings in the at least one line of character strings and an edge of a display screen is greater than or equal to a third preset value.
具体的,如图10所示的显示模式1000所示,位于所述第三位置的所述控件区域1001内的第四字符串在所述重设控件区域1001内无法完整显示,即所述第四字符串单行进行显示时的长度大于所述重设控件区域1001的长度L3。Specifically, as shown in the display mode 1000 shown in Figure 10, the fourth character string in the control area 1001 located at the third position cannot be fully displayed in the reset control area 1001, that is, the length of the fourth character string when displayed in a single line is greater than the length L3 of the reset control area 1001.
确定第四字符串单行显示区域,其中,所述第四字符串的单行显示区域的长度大于位于所述第三位置的重设控件区域的长度,且所述第四字符串的单行显示区域与所述第五字符串之间的距离大于或等于所述第二预设值,和/或所述第四字符串的单行显示区域与所述显示器的边缘之间的距离大于或等于所述第二预设值。Determining a single-line display area for a fourth character string, wherein a length of the single-line display area for the fourth character string is greater than a length of a reset control area located at the third position, and a distance between the single-line display area for the fourth character string and the fifth character string is greater than or equal to a second preset value, and/or a distance between the single-line display area for the fourth character string and an edge of the display is greater than or equal to the second preset value.
具体的,以图10所示可知,在显示模式1000中,若所述第四字符串单行进行显示时的长度大于所述重设控件区域1001的长度L3,则由显示模式1000跳转至显示模式1004,在所述显示模式1004中,所述终端设备确定出第四字符串单行显示区域1005。Specifically, as shown in Figure 10, in display mode 1000, if the length of the fourth character string when displayed in a single line is greater than the length L3 of the reset control area 1001, the display mode 1000 jumps to display mode 1004. In the display mode 1004, the terminal device determines the fourth character string single-line display area 1005.
所述第四字符串单行显示区域1005为位于所述第三位置的所述重设控件区域1001的两端分别向所述显示屏的边缘方向以及所述第五字符串延伸以形成,或所述第四字符串单行显示区域1005为位于所述第三位置的所述重设控件区域1001向所述第五字符串延伸以形成,或所述第四字符串单行显示区域1005为位于所述第三位置的所述重设控件区域1001向所述显示屏的边缘方向延伸以形成。The fourth character string single-line display area 1005 is formed by extending the two ends of the reset control area 1001 located at the third position toward the edge of the display screen and the fifth character string, or the fourth character string single-line display area 1005 is formed by extending the reset control area 1001 located at the third position toward the fifth character string, or the fourth character string single-line display area 1005 is formed by extending the reset control area 1001 located at the third position toward the edge of the display screen.
本实施例对所述第四字符串单行显示区域1005的延伸方向不做限定,本实施例以所述第四字符串单行显示区域1005由所述重设控件区域1001的两端分别向所述显示屏的边缘方向以及所述第五字符串延伸以形成为例进行示例性说明:This embodiment does not limit the extension direction of the fourth character string single-line display area 1005. This embodiment takes the fourth character string single-line display area 1005 extending from both ends of the reset control area 1001 toward the edge of the display screen and the fifth character string as an example for illustrative description:
如图10所示,所述第四字符串单行显示区域1005的长度L4大于L3,且所述第四字符串单行显示区域1005与位于所述重设控件区域1003内的所述第五字符串之间的距离大于或等于所述第二预设值T1,且所述第四字符串单行显示区域1005与所述显示屏的边缘之间的距离大于或等于所述第三预设值T2。As shown in Figure 10, the length L4 of the fourth character string single-line display area 1005 is greater than L3, and the distance between the fourth character string single-line display area 1005 and the fifth character string located in the reset control area 1003 is greater than or equal to the second preset value T1, and the distance between the fourth character string single-line display area 1005 and the edge of the display screen is greater than or equal to the third preset value T2.
本实施例所示的所述第四字符串单行显示区域1005与所述显示屏的边缘之间的距离大于或等于所述第三预设值,所述第三预设值可为大于或等于0的任意数值。In this embodiment, the distance between the fourth character string single-line display area 1005 and the edge of the display screen is greater than or equal to the third preset value, and the third preset value can be any value greater than or equal to 0.
可见,本实施例所示的第四字符串能够居中对齐后在所述重设控件区域1001内分别向所述第五字符串和所述显示屏的边缘的方向移动。It can be seen that the fourth character string shown in this embodiment can be aligned in the center and then moved in the reset control area 1001 toward the fifth character string and the edge of the display screen respectively.
在本实施例中,所述第四字符串单行显示区域1005的延伸的具体过程可为:In this embodiment, the specific process of extending the fourth character string single-line display area 1005 may be:
在本实施例中,所述第四字符串单行显示区域1005分别向两边延伸的距离可相等,也可不相等。In this embodiment, the distances that the fourth character string single-line display area 1005 extends to both sides may be equal or unequal.
具体的,若所述第四字符串单行显示区域1005均匀向两边延伸过程中,若所述第四字符串单行显示区域1005的长度大于或等于所述第四字符串单行显示的长度,则所述第四字符串单行显示区域1005不再向两边延伸;Specifically, if the fourth character string single-line display area 1005 is uniformly extended to both sides, if the length of the fourth character string single-line display area 1005 is greater than or equal to the length of the fourth character string single-line display, the fourth character string single-line display area 1005 no longer extends to both sides;
若所述第四字符串单行显示区域1005向所述第五字符串和所述显示屏边缘延伸过程中,所述第四字符串单行显示区域1005与所述第五字符串之间的距离等于所述第二预设值,且所述第四字符串单行显示区域1005与所述显示屏的边缘大于所述第三预设值,则所述第四字符串单行显示区域1005不再向所述第五字符串方向延伸,而是向所述显示屏的边缘方向延伸,直至所述第四字符串单行显示区域1005的长度大于或等于所述第五字符串单行显示的长度和/或所述第四字符串单行显示区域1005与所述显示屏的边缘之间的距离等于所述第三预设值;If, during the process of extending the fourth character string single-line display area 1005 toward the fifth character string and the edge of the display screen, the distance between the fourth character string single-line display area 1005 and the fifth character string is equal to the second preset value, and the distance between the fourth character string single-line display area 1005 and the edge of the display screen is greater than the third preset value, the fourth character string single-line display area 1005 no longer extends toward the fifth character string, but instead extends toward the edge of the display screen until the length of the fourth character string single-line display area 1005 is greater than or equal to the length of the fifth character string single-line display and/or the distance between the fourth character string single-line display area 1005 and the edge of the display screen is equal to the third preset value;
若所述第四字符串单行显示区域1005向所述第五字符串和所述显示屏边缘延伸过程中,所述第四字符串单行显示区域1005与所述显示屏的边缘之间的距离等于所述第三预设值,且所述第四字符串单行显示区域1005与所述第五字符串之间的距离大于所述第二预设值,则所述第四字符串单行显示区域1005不再向所述显示屏的边缘方向延伸,而是向所述第五字符串方向延伸,直至所述第四字符串单行显示区域1005的长度大于或等于所述第五字符串单行显示的长度和/或所述第四字符串单行显示区域1005与所述第五字符串方向之间的距离等于所述第二预设值。If, during the extension of the fourth character string single-line display area 1005 toward the fifth character string and the edge of the display screen, the distance between the fourth character string single-line display area 1005 and the edge of the display screen is equal to the third preset value, and the distance between the fourth character string single-line display area 1005 and the fifth character string is greater than the second preset value, the fourth character string single-line display area 1005 no longer extends toward the edge of the display screen, but extends toward the fifth character string until the length of the fourth character string single-line display area 1005 is greater than or equal to the length of the fifth character string single-line display and/or the distance between the fourth character string single-line display area 1005 and the fifth character string is equal to the second preset value.
本实施例所示的显示所述第四字符串的具体流程为:The specific process of displaying the fourth character string shown in this embodiment is:
判断所述第四字符串的长度是否小于或等于所述第四字符串单行显示区域的长度。It is determined whether the length of the fourth character string is less than or equal to the length of the single-line display area of the fourth character string.
若是,则将所述第四字符串以单行的方式显示在所述第四字符串单行显示区域内。If so, the fourth character string is displayed in a single line in the fourth character string single line display area.
具体的,以图10所示的显示模式1004所示,若所述第四字符串的长度小于或等于所述第四字符串单行显示区域1005的长度L4,则可将所述第四字符串以单行的方式显示在所述第一字符串单行显示区域1005内。Specifically, as shown in the display mode 1004 shown in FIG10 , if the length of the fourth character string is less than or equal to the length L4 of the fourth character string single-line display area 1005 , the fourth character string may be displayed in a single line in the first character string single-line display area 1005 .
若否,可选的,一种方式可为,将所述第四字符串以分行的方式显示在所述第四字符串单行显示区域内。If not, optionally, one method may be to display the fourth character string in a line-by-line manner in the fourth character string single-line display area.
具体的,如图10所示的显示模式1006所示,若所述第四字符串的长度大于所述第四字符串单行显示区域1005的长度L4,则可将所述第四字符串以两行或两行以上显示在所述第四字符串单行显示区域1005内,以使所述第四字符串任一行字符串的长度小于或等于已确定的所述第四字符串单行显示区域1005的长度L4,以使所述第四字符串的任一行字符串与所述第五字符串之间的距离大于或等于所述第二预设值。Specifically, as shown in the display mode 1006 shown in Figure 10, if the length of the fourth character string is greater than the length L4 of the fourth character string single-line display area 1005, the fourth character string can be displayed in two or more lines in the fourth character string single-line display area 1005, so that the length of any line of the fourth character string is less than or equal to the determined length L4 of the fourth character string single-line display area 1005, and the distance between any line of the fourth character string and the fifth character string is greater than or equal to the second preset value.
若否,还可选的,另一种方式为,对所述第四字符串进行所述目标处理,若经过所述目标处理后的所述第四字符串的长度小于或等于所述第四字符串单行显示区域的长度,则将经过所述目标处理后的所述第四字符串单行显示在所述第四字符串单行显示区域内,若经过所述目标处理后的所述第四字符串的长度大于所述第四字符串单行显示区域的长度,则将经过所述目标处理后的所述第四字符串分行显示在所述第四字符串单行显示区域内。If not, another optional method is to perform the target processing on the fourth character string. If the length of the fourth character string after the target processing is less than or equal to the length of the fourth character string single-line display area, the fourth character string after the target processing is displayed in a single line in the fourth character string single-line display area; if the length of the fourth character string after the target processing is greater than the length of the fourth character string single-line display area, the fourth character string after the target processing is displayed in separate lines in the fourth character string single-line display area.
具体的,如图10所示的显示模式1007所示,若所述第四字符串的长度大于所述第四字符串单行显示区域1005的长度L4,则可对所述第四字符串进行目标处理,所述目标处理的具体过程请详见上述所示,具体不再赘述,若经过缩小处理后的所述第四字符串的长度小于或等于所述第四字符串单行显示区域1005的长度,则将经过所述目标处理后的所述第四字符串单行显示在所述第四字符串单行显示区域1005内,如图10所示的显示模式1008所示,若所述第四字符串的长度大于所述第四字符串单行显示区域1005的长度L4,则可对所述第四字符串进行目标处理,若经过缩小处理后的所述第四字符串的长度大于所述第四字符串单行显示区域1005的长度,则将经过所述目标处理后的所述第四字符串分行显示在所述第四字符串单行显示区域1005内。Specifically, as shown in the display mode 1007 of Figure 10, if the length of the fourth character string is greater than the length L4 of the fourth character string single-line display area 1005, the fourth character string can be target processed. The specific process of the target processing is detailed as shown above and will not be repeated here. If the length of the fourth character string after the reduction processing is less than or equal to the length of the fourth character string single-line display area 1005, the fourth character string after the target processing will be displayed in a single line in the fourth character string single-line display area 1005. As shown in the display mode 1008 of Figure 10, if the length of the fourth character string is greater than the length L4 of the fourth character string single-line display area 1005, the fourth character string can be target processed. If the length of the fourth character string after the reduction processing is greater than the length of the fourth character string single-line display area 1005, the fourth character string after the target processing will be displayed in the fourth character string single-line display area 1005 in separate lines.
本实施例所示的第五字符串的长度小于所述第五字符串所位于的重设控件区域的重设长度,从而使得即便所述第四字符串向所述第五字符串延伸,所述第五字符串也能够在满足所述第二条件的所述重设控件区域内不截断的单行显示。The length of the fifth character string shown in this embodiment is less than the reset length of the reset control area where the fifth character string is located, so that even if the fourth character string extends toward the fifth character string, the fifth character string can be displayed in a single line without being truncated in the reset control area that meets the second condition.
本实施例所示的所述第四字符串还能够向所述显示屏的边缘方向延伸,从而尽可能的扩大所述第四字符串单行显示的长度,进一步的避免或减少所述第四字符串的行数。The fourth character string shown in this embodiment can also extend toward the edge of the display screen, thereby extending the length of a single-line display of the fourth character string as much as possible, further avoiding or reducing the number of lines of the fourth character string.
本实施例所示的第四字符串和所述第五字符串的具体显示方式可详见上文所示,具体不做赘述。The specific display methods of the fourth character string and the fifth character string shown in this embodiment can be found in the above description and will not be described in detail.
本实施例即便控制所述第四字符串向所述第五字符串和所述显示屏的边缘方向延伸,也要保障所述第四字符串和所述第五字符串之间的距离大于或等于所述第二预设值,以及保障所述第四字符串和所述第五字符串之间的距离大于或等于所述第二预设值,从而有效的避免用户在阅读的过程中混淆所述第四字符串和所述第五字符串,从而使得用户能够明确所述第四字符串核所述第五字符串是分别属于不同的重设控件区域内的字符串,避免用户阅读过程中的误解,提升了用户阅读过程中的准确率。In this embodiment, even if the fourth character string is controlled to extend toward the fifth character string and the edge of the display screen, the distance between the fourth character string and the fifth character string is ensured to be greater than or equal to the second preset value, and the distance between the fourth character string and the fifth character string is ensured to be greater than or equal to the second preset value. This effectively prevents a user from confusing the fourth character string and the fifth character string during reading, and enables the user to clearly understand that the fourth character string and the fifth character string belong to different reset control areas, thereby avoiding misunderstandings during reading and improving the accuracy of the user's reading.
以下对本实施例所示的方法在具体应用场景中是如何应用的进行说明:The following describes how the method shown in this embodiment is applied in a specific application scenario:
一种应用场景请参见图11、图12以及图13所示,其中,图11所示为终端设备的主界面在中文使用环境中的示例图,图12所示为终端设备的主界面在俄文的使用环境中的示例图,图13所示为应用本实施例所示的方法的终端设备的主界面在俄文的使用环境中的示例图。For an application scenario, please refer to Figures 11, 12 and 13, where Figure 11 shows an example diagram of the main interface of the terminal device in a Chinese usage environment, Figure 12 shows an example diagram of the main interface of the terminal device in a Russian usage environment, and Figure 13 shows an example diagram of the main interface of the terminal device applying the method shown in this embodiment in a Russian usage environment.
其中,图11所示以所述终端设备的显示屏上显示有一栏子区域为例,其中,所述子区域的具体的结构的说明请详见图3所示,具体在本应用场景中不做赘述。Among them, Figure 11 shows an example of a column of sub-areas displayed on the display screen of the terminal device. The specific structure of the sub-area is described in detail in Figure 3, and will not be described in detail in this application scenario.
需明确的是,本应用场景以将在中文的使用环境中的终端设备应用至俄文的使用环境中为例进行示例性说明,不做限定。It should be noted that this application scenario is illustrated by applying a terminal device in a Chinese usage environment to a Russian usage environment as an example, and is not limited thereto.
还需明确的是,为更好的理解本应用场景,则图11至图13所示将控件区域以及重设控件区域的边界进行显示,而在具体应用中,控件区域以及重设控件区域的边界是不进行显示的,即控件区域以及重设控件区域的边界是隐形的。It should also be clarified that in order to better understand this application scenario, the boundaries of the control area and the reset control area are displayed as shown in Figures 11 to 13, but in specific applications, the boundaries of the control area and the reset control area are not displayed, that is, the boundaries of the control area and the reset control area are invisible.
本应用场景中,显示在终端设备显示屏的主界面上的各控件区域显示有图标,在图标的正下方居中显示有与图标对应的名称。In this application scenario, each control area displayed on the main interface of the terminal device display screen displays an icon, and a name corresponding to the icon is displayed in the center just below the icon.
当将图11所示的终端设备应用至俄文的使用环境中,则在各控件区域内与图标对应的名称将翻译成俄文,如图12所示。When the terminal device shown in FIG11 is applied to a Russian usage environment, the names corresponding to the icons in each control area will be translated into Russian, as shown in FIG12 .
结合图11和图12所示可知,在不同的使用环境中,各控件区域内的显示方式会有所改变,具体的,在中文的使用环境中,如图11所示,位于各控件区域内的字符串不会进行换行显示,则便于用户理解各控件区域内与图标对应的名称,且因字符串不会进行换行,则提升了用户理解各控件区域内的字符串的含义的效率,但是,当将图11所示的终端设备应用至俄文的使用环境中时,大部分控件区域内的字符串需要进行换行显示,例如控件区域1201中,中文的字符串“腾讯新闻”翻译成俄文为“Tencent новости”可见,俄文的字符串长于控件区域1201的长度,则需要将俄文的字符串进行分行显示,因字符串的截断显示,则降低了用户理解字符串含义的效率。As shown in Figures 11 and 12, the display method in each control area will change in different usage environments. Specifically, in the Chinese usage environment, as shown in Figure 11, the character strings located in each control area will not be displayed in line breaks, which makes it easier for users to understand the names corresponding to the icons in each control area, and because the character strings will not be displayed in line breaks, the efficiency of users understanding the meaning of the character strings in each control area is improved. However, when the terminal device shown in Figure 11 is applied to a Russian usage environment, most of the character strings in the control area need to be displayed in line breaks. For example, in control area 1201, the Chinese character string "Tencent News" is translated into Russian as "Tencent новости". It can be seen that the Russian character string is longer than the length of control area 1201, so the Russian character string needs to be displayed in separate lines. Due to the truncated display of the character string, the efficiency of users understanding the meaning of the character string is reduced.
本应用场景中,在将图11所示的终端设备应用至俄文的使用环境中,所述终端设备能够自动对所述子区域进行重新设置,即将所述子区域所包括的各所述控件区域重新设置成重设控件区域,其中,将控件区域重新设置成重设控件区域的具体过程,请详见图3所示的步骤303所示,具体在本应用场景中不做赘述。In this application scenario, when the terminal device shown in Figure 11 is applied to a Russian usage environment, the terminal device can automatically reset the sub-area, that is, reset each of the control areas included in the sub-area to a reset control area. The specific process of resetting the control area to the reset control area is shown in step 303 of Figure 3, and will not be elaborated in this application scenario.
可见,在本应用场景中,任意相邻的两个所述重设控件区域之间的间隙进行了删除,从而扩大了各所述重设控件区域内用于显示字符串的区域的长度。It can be seen that in this application scenario, the gap between any two adjacent reset control areas is deleted, thereby expanding the length of the area for displaying character strings in each reset control area.
其中,图13所示的重设控件区域1301的具体显示方式,请详见图10所示的位于所述重设控件区域1001内的所述第四字符串的显示方式,具体在本应用场景中不做赘述,图13所示的重设控件区域1302的具体显示方式,请详见图10所示的位于所述重设控件区域1003内的所述第五字符串的显示方式,具体在本应用场景中不做赘述,图13所示的重设控件区域1303的具体显示方式,请详见图7所示的位于所述重设控件区域605内的所述第一字符串的显示方式,具体在本应用场景中不做赘述,图13所示的重设控件区域1304的具体显示方式,请详见图10所示,具体在本应用场景中不做赘述。Among them, for the specific display method of the reset control area 1301 shown in Figure 13, please refer to the display method of the fourth character string located in the reset control area 1001 shown in Figure 10, which will not be described in detail in this application scenario. For the specific display method of the reset control area 1302 shown in Figure 13, please refer to the display method of the fifth character string located in the reset control area 1003 shown in Figure 10, which will not be described in detail in this application scenario. For the specific display method of the reset control area 1303 shown in Figure 13, please refer to the display method of the first character string located in the reset control area 605 shown in Figure 7, which will not be described in detail in this application scenario. For the specific display method of the reset control area 1304 shown in Figure 13, please refer to Figure 10 for details, which will not be described in detail in this application scenario.
另一种应用场景请见图14、图15以及图16所示,其中,图14所示为终端设备的联系人应用在英文使用环境中的示例图,图15所示为终端设备的联系人应用在葡萄牙文的使用环境中的示例图,图16所示为应用本实施例所示的方法的终端设备的联系人应用在葡萄牙文的使用环境中的示例图。For another application scenario, please see Figures 14, 15 and 16, where Figure 14 shows an example diagram of the contact application of a terminal device in an English usage environment, Figure 15 shows an example diagram of the contact application of a terminal device in a Portuguese usage environment, and Figure 16 shows an example diagram of the contact application of a terminal device in a Portuguese usage environment using the method shown in this embodiment.
需明确的是,本应用场景以将在英文的使用环境中的终端设备应用至葡萄牙文的使用环境中为例进行示例性说明,不做限定。It should be noted that this application scenario is illustrated by applying a terminal device in an English usage environment to a Portuguese usage environment as an example, and is not limited thereto.
还需明确的是,为更好的理解本应用场景,则图14至图16所示将控件区域以及重设控件区域的边界进行显示,而在具体应用中,控件区域以及重设控件区域的边界是不进行显示的,即控件区域以及重设控件区域的边界是隐形的。It should also be clarified that in order to better understand this application scenario, the boundaries of the control area and the reset control area are displayed as shown in Figures 14 to 16, but in specific applications, the boundaries of the control area and the reset control area are not displayed, that is, the boundaries of the control area and the reset control area are invisible.
本应用场景中,显示在联系人应用上的各控件区域只显示字符串。In this application scenario, each control area displayed on the Contacts application only displays strings.
当将图14所示的终端设备应用至葡萄牙文的使用环境中,则在各控件区域内的字符串翻译成葡萄牙文,如图15所示。When the terminal device shown in FIG14 is applied to a Portuguese usage environment, the character strings in each control area are translated into Portuguese, as shown in FIG15 .
结合图14和图15所示可知,在不同的使用环境中,各控件区域内的显示方式会有所改变,具体的,在英文的使用环境中,如图14所示,位于各控件区域内的字符串不会进行换行显示,则便于用户理解各控件区域内字符串所代表的指令,且因字符串不会进行换行,则提升了用户理解各控件区域内的字符串的含义的效率,但是,当将图14所示的终端设备应用至葡萄牙文的使用环境中时,大部分控件区域内的字符串需要进行换行显示,例如控件区域1401中,英文的字符串“All Calls”翻译成葡萄牙文为“De todas as chamadas”可见,葡萄牙文的字符串长于控件区域1401的长度,则需要将葡萄牙文的字符串进行分行显示,因字符串的截断显示,则降低了用户理解字符串含义的效率。As shown in Figures 14 and 15, the display method in each control area will change in different usage environments. Specifically, in the English usage environment, as shown in Figure 14, the character strings located in each control area will not be displayed in line breaks, which makes it easier for users to understand the instructions represented by the character strings in each control area, and because the character strings will not be displayed in line breaks, the efficiency of users understanding the meaning of the character strings in each control area is improved. However, when the terminal device shown in Figure 14 is applied to a Portuguese usage environment, most of the character strings in the control area need to be displayed in line breaks. For example, in control area 1401, the English character string "All Calls" is translated into Portuguese as "De todas as chamadas". It can be seen that the Portuguese character string is longer than the length of control area 1401, so the Portuguese character string needs to be displayed in separate lines. Due to the truncated display of the character string, the efficiency of users understanding the meaning of the character string is reduced.
本应用场景中,在将图14所示的终端设备应用至葡萄牙文的使用环境中,所述终端设备能够自动对所述子区域进行重新设置,即将所述子区域所包括的各所述控件区域重新设置成重设控件区域,其中,将控件区域重新设置成重设控件区域的具体过程,请详见图3所示的步骤303所示,具体在本应用场景中不做赘述。In this application scenario, when the terminal device shown in Figure 14 is applied to the Portuguese usage environment, the terminal device can automatically reset the sub-area, that is, reset each of the control areas included in the sub-area to the reset control area. The specific process of resetting the control area to the reset control area is shown in step 303 shown in Figure 3, and will not be repeated in this application scenario.
可见,在本应用场景中,任意相邻的两个所述重设控件区域之间的间隙进行了删除,从而扩大了各所述重设控件区域内用于显示字符串的区域的长度。It can be seen that in this application scenario, the gap between any two adjacent reset control areas is deleted, thereby expanding the length of the area for displaying character strings in each reset control area.
其中,图16所示的重设控件区域1601的具体显示方式,请详见图10所示的位于所述重设控件区域1001内的所述第四字符串的显示方式,具体在本应用场景中不做赘述,图16所示的重设控件区域1602的具体显示方式,请详见图8所示的位于所述重设控件区域605内的所述第一字符串的显示方式,具体在本应用场景中不做赘述,图16所示的重设控件区域1603的具体显示方式,请详见图10所示,具体在本应用场景中不做赘述。Among them, for the specific display method of the reset control area 1601 shown in Figure 16, please refer to the display method of the fourth character string located in the reset control area 1001 shown in Figure 10, and the specific details will not be repeated in this application scenario. For the specific display method of the reset control area 1602 shown in Figure 16, please refer to the display method of the first character string located in the reset control area 605 shown in Figure 8, and the specific details will not be repeated in this application scenario. For the specific display method of the reset control area 1603 shown in Figure 16, please refer to Figure 10 for details, and the specific details will not be repeated in this application scenario.
另一种应用场景请见图17、图18以及图19所示,其中,图17所示为终端设备的新闻应用在中文使用环境中的示例图,图18所示为终端设备的新闻应用在西班牙文的使用环境中的示例图,图19所示为应用本实施例所示的方法的终端设备的新闻应用程序应用在西班牙文的使用环境中的示例图。For another application scenario, please see Figures 17, 18 and 19, where Figure 17 shows an example diagram of a news application of a terminal device in a Chinese usage environment, Figure 18 shows an example diagram of a news application of a terminal device in a Spanish usage environment, and Figure 19 shows an example diagram of a news application application of a terminal device applying the method shown in this embodiment in a Spanish usage environment.
本实施例对新闻应用以腾讯新闻为例,需明确的是,本实施例仅仅以新闻应用为例进行示例性说明,在具体应用中,可应用至任一应用的界面上。This embodiment takes Tencent News as an example of a news application. It should be noted that this embodiment is merely illustrative of the news application and can be applied to the interface of any application in specific applications.
需明确的是,本应用场景以将在中文的使用环境中的终端设备应用至西班牙文的使用环境中为例进行示例性说明,不做限定。It should be noted that this application scenario is illustrated by applying a terminal device in a Chinese usage environment to a Spanish usage environment as an example, and is not limited thereto.
还需明确的是,为更好的理解本应用场景,则图17至图19所示将控件区域以及重设控件区域的边界进行显示,而在具体应用中,控件区域以及重设控件区域的边界是不进行显示的,即控件区域以及重设控件区域的边界是隐形的。It should also be clarified that in order to better understand this application scenario, the boundaries of the control area and the reset control area are displayed as shown in Figures 17 to 19, but in specific applications, the boundaries of the control area and the reset control area are not displayed, that is, the boundaries of the control area and the reset control area are invisible.
本应用场景中,显示在新闻应用上的各控件区域只显示字符串。In this application scenario, each control area displayed on the news application only displays a string.
当将图17所示的终端设备应用至西班牙文的使用环境中,则在各控件区域内的字符串翻译成西班牙文,如图18所示。When the terminal device shown in FIG17 is applied to a Spanish usage environment, the character strings in each control area are translated into Spanish, as shown in FIG18 .
如图17所示,所述新闻应用的显示界面上包括用于显示各用于对新闻进行导航的导航栏1701,所述导航栏上显示有多个控件区域,各所述控件区域内所显示的字符串用于对特定类型的新闻进行导航,例如,用户触摸位于控件区域“娱乐”的字符串,则新闻显示栏1702能够显示与“娱乐”类型对应的新闻。As shown in Figure 17, the display interface of the news application includes a navigation bar 1701 for displaying various functions for navigating news. The navigation bar displays multiple control areas, and the character strings displayed in each control area are used to navigate to specific types of news. For example, when the user touches the character string "Entertainment" in the control area, the news display bar 1702 can display news corresponding to the "Entertainment" type.
结合图17和图18所示可知,在不同的使用环境中,各控件区域内的显示方式会有所改变,具体的,在中文的使用环境中,如图17所示,位于各控件区域内的字符串不会进行换行显示,则便于用户理解各控件区域内字符串所代表的指令,且因字符串不会进行换行,则提升了用户理解各控件区域内的字符串的含义的效率,但是,当将图17所示的终端设备应用至西班牙文的使用环境中时,大部分控件区域内的字符串需要进行换行显示,例如控件区域1702中,中文的字符串“科技”翻译成西班牙文为“La ciencia y la tecnología”可见,西班牙文的字符串长于控件区域1703的长度,则需要将西班牙文的字符串进行分行显示,因字符串的截断显示,则降低了用户理解字符串含义的效率。As shown in Figures 17 and 18, the display method in each control area will change in different usage environments. Specifically, in the Chinese usage environment, as shown in Figure 17, the character strings located in each control area will not be displayed in line breaks, which makes it easier for users to understand the instructions represented by the character strings in each control area, and because the character strings will not be displayed in line breaks, the efficiency of users understanding the meaning of the character strings in each control area is improved. However, when the terminal device shown in Figure 17 is applied to a Spanish usage environment, most of the character strings in the control area need to be displayed in line breaks. For example, in control area 1702, the Chinese character string "科技" is translated into Spanish as "La ciencia y la tecnología". It can be seen that the Spanish character string is longer than the length of control area 1703, so the Spanish character string needs to be displayed in separate lines. Due to the truncated display of the character string, the efficiency of users understanding the meaning of the character string is reduced.
本应用场景中,在将图17所示的终端设备应用至西班牙文的使用环境中,所述终端设备能够自动对所述子区域进行重新设置,即将所述子区域所包括的各所述控件区域重新设置成重设控件区域,其中,将控件区域重新设置成重设控件区域的具体过程,请详见图3所示的步骤303所示,具体在本应用场景中不做赘述。In this application scenario, when the terminal device shown in Figure 17 is applied to a Spanish usage environment, the terminal device can automatically reset the sub-area, that is, reset each of the control areas included in the sub-area to a reset control area. The specific process of resetting the control area to the reset control area is shown in step 303 of Figure 3, and will not be elaborated in this application scenario.
可见,在本应用场景中,任意相邻的两个所述重设控件区域之间的间隙进行了删除,从而扩大了各所述重设控件区域内用于显示字符串的区域的长度。It can be seen that in this application scenario, the gap between any two adjacent reset control areas is deleted, thereby expanding the length of the area for displaying character strings in each reset control area.
其中,图19所示的重设控件区域1901的具体显示方式,请详见图8所示的位于所述重设控件区域605内的所述第一字符串的显示方式,具体在本应用场景中不做赘述,图19所示的重设控件区域1902的具体显示方式,请详见图10所示,具体在本应用场景中不做赘述。Among them, for the specific display method of the reset control area 1901 shown in Figure 19, please refer to the display method of the first character string located in the reset control area 605 shown in Figure 8, and the specific details will not be repeated in this application scenario. For the specific display method of the reset control area 1902 shown in Figure 19, please refer to Figure 10 for details, and the specific details will not be repeated in this application scenario.
可见,采用本实施例所示的方法,能够对控件区域的显示面积进行重新设置以形成重设控件区域,且所述重设控件区域的长度大于所述控件区域的长度,从而提升了能够进行字符串显示的区域的长度,且若位于所述重设控件区域内的字符串的长度大于所述重设控件区域的长度,则所述字符串能够向至少一侧延伸,和/或能够对所述字符串进行缩小处理,从而能够避免位于所述重设控件区域内的字符串换行或减少位于所述重设控件区域内的字符串的行数,从而降低了字符串截断的次数,提升了用户阅读字符串的效率。It can be seen that by adopting the method shown in this embodiment, the display area of the control area can be reset to form a reset control area, and the length of the reset control area is greater than the length of the control area, thereby increasing the length of the area capable of displaying character strings, and if the length of the character string located in the reset control area is greater than the length of the reset control area, the character string can be extended to at least one side, and/or the character string can be reduced, thereby avoiding line wrapping of the character string located in the reset control area or reducing the number of lines of the character string located in the reset control area, thereby reducing the number of times the character string is truncated and improving the efficiency of the user in reading the character string.
以下结合图23对本发明实施例所提供的终端设备的具体结构进行说明,本实施例所示的终端设备用于执行图3所示的方法,图23所示的终端设备执行显示字符串的方法的具体过程请详见图3所示,具体在本实施例中不做赘述。The following describes the specific structure of the terminal device provided in an embodiment of the present invention in conjunction with Figure 23. The terminal device shown in this embodiment is used to execute the method shown in Figure 3. The specific process of the terminal device shown in Figure 23 executing the method of displaying a character string is shown in Figure 3, and will not be repeated in this embodiment.
所述终端设备包括:The terminal device includes:
接收单元231,用于接收控制信息,所述控制信息用于指示终端设备对至少两个控件区域进行处理以形成满足第一目标条件的至少两个重设控件区域,所述至少两个控件区域中沿显示屏横向方向任意相邻的两个控件区域之间设置有第一间隔,所述第一目标条件为所述至少两个重设控件区域中沿所述显示屏横向方向任意相邻的两个重设控件区域之间相互连接;a receiving unit 231 configured to receive control information, the control information being configured to instruct a terminal device to process at least two control areas to form at least two reset control areas that meet a first target condition, wherein a first interval is provided between any two adjacent control areas in a horizontal direction of the display screen in the at least two reset control areas, and the first target condition is that any two adjacent reset control areas in the at least two reset control areas in the horizontal direction of the display screen are connected to each other;
第一显示单元232,用于根据所述控制信息将所述至少两个重设控件区域显示在所述显示屏上;a first display unit 232, configured to display the at least two reset control areas on the display screen according to the control information;
第二显示单元233,用于在所述至少两个重设控件区域中的任一重设控件区域内显示字符串。The second display unit 233 is configured to display a character string in any one of the at least two reset control areas.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第一确定模块2331,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域的两侧均设置有第二目标重设控件区域,且所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,所述第二目标重设控件区域内所包括的第二字符串的长度大于所述第二目标重设控件区域的长度;a first determining module 2331 configured to determine at least one first target reset control area included in the at least two reset control areas, wherein a second target reset control area is provided on both sides of the first target reset control area, a first character string included in the first target reset control area is longer than a length of the first target reset control area, and a second character string included in the second target reset control area is longer than a length of the second target reset control area;
第一显示模块2332,用于将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一目标重设控件区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串满足第二目标条件,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值,所述第二目标条件为经过所述目标处理后的所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一目标重设控件区域的重设长度,且所述第一字符串的所述至少一行字符串中的任一行字符串和所述第二字符串之间的间隔大于或等于第二预设值。The first display module 2332 is used to display the first character string after target processing in the first target reset control area in the form of at least one line of character strings, so that any line of character strings in the at least one line of character strings of the first character string meets the second target condition, the target processing is to shrink the character string, and make the character string after shrinkage processing greater than or equal to a first preset value, the second target condition is that the length of any line of character strings in the at least one line of character strings of the first character string after the target processing is less than or equal to the reset length of the first target reset control area, and the interval between any line of character strings in the at least one line of character strings of the first character string and the second character string is greater than or equal to a second preset value.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第二确定模块2333,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度大于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度;The second determining module 2333 is configured to determine at least one first target reset control area included in the at least two reset control areas, wherein a length of a first character string included in the first target reset control area is greater than a length of the first target reset control area, a length of a second character string in a second target reset control area located on a first side of the first target reset control area is less than a second length, the second length being the reset length of the second target reset control area located on the first side of the first target reset control area, and a length of a third character string in the second target reset control area located on a second side of the first target reset control area is greater than a third length, the third length being the reset length of the second target reset control area located on the second side of the first target reset control area;
第三确定模块2334,用于确定第一字符串单行显示区域,所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域与所述第二字符串之间的间隔大于或等于第二预设值;A third determining module 2334 is configured to determine a first character string single-line display area, the first character string single-line display area extending from the first target reset control area toward the second character string, such that a length of the first character string single-line display area is greater than a reset length of the first target reset control area, and a spacing between the first character string single-line display area and the second character string is greater than or equal to a second preset value;
第二显示模块2335,用于将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的重设长度。The second display module 2335 is configured to display the first character string in the first character string single-line display area in the form of at least one line of character strings, so that the length of any one line of the at least one line of character strings of the first character string is less than or equal to the reset length of the first character string single-line display area.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第四确定模块2336,用于确定所述至少两个重设控件区域中所包括的至少一个第一目标重设控件区域,其中,所述第一目标重设控件区域内所包括的第一字符串的长度大于所述第一目标重设控件区域的长度,位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域内的第二字符串的长度小于第二长度,所述第二长度为位于所述第一目标重设控件区域的第一侧的第二目标重设控件区域的重设长度,位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域内的第三字符串的长度小于第三长度,所述第三长度为位于所述第一目标重设控件区域的第二侧的第二目标重设控件区域的重设长度;a fourth determining module 2336 configured to determine at least one first target reset control area included in the at least two reset control areas, wherein a length of a first character string included in the first target reset control area is greater than a length of the first target reset control area, a length of a second character string in a second target reset control area located on a first side of the first target reset control area is less than a second length, the second length being the reset length of the second target reset control area located on the first side of the first target reset control area, and a length of a third character string in the second target reset control area located on a second side of the first target reset control area is less than a third length, the third length being the reset length of the second target reset control area located on the second side of the first target reset control area;
第五确定模块2337,用于确定第一字符串单行显示区域,所述第一字符串单行显示区域由所述第一目标重设控件区域向所述第二字符串和所述第三字符串方向延伸设置,以使所述第一字符串单行显示区域的长度大于所述第一目标重设控件区域的重设长度,且所述第一字符串单行显示区域分别与所述第二字符串和所述第三字符串之间的间隔大于或等于第二预设值;a fifth determining module 2337 configured to determine a single-line display area for a first character string, the single-line display area for the first character string extending from the first target reset control area toward the second character string and the third character string, such that a length of the single-line display area for the first character string is greater than a reset length of the first target reset control area, and a spacing between the single-line display area for the first character string and the second character string and the third character string, respectively, is greater than or equal to a second preset value;
第三显示模块2338,用于将所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,以使所述第一字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第一字符串单行显示区域的长度。The third display module 2338 is configured to display the first character string in the first character string single-line display area in the form of at least one line of character strings, so that the length of any one line of the at least one line of character strings of the first character string is less than or equal to the length of the first character string single-line display area.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第四显示模块2339,用于将经过目标处理后的所述第一字符串以至少一行字符串的显示方式显示在所述第一字符串单行显示区域内,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。The fourth display module 2339 is used to display the first character string after target processing in the first character string single-line display area in the form of at least one line of character strings. The target processing is to reduce the character string and make the reduced character string greater than or equal to a first preset value.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第六确定模块23310,用于确定所述至少两个重设控件区域中所包括的至少一个第四目标重设控件区域,其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度大于所述第五目标重设控件区域的长度;a sixth determining module 23310, configured to determine at least one fourth target reset control area included in the at least two reset control areas, wherein a length of a fourth character string included in the fourth target reset control area is greater than a length of the fourth target reset control area, the fourth target reset control area is located between an edge of the display screen and a fifth target reset control area, and a length of a fifth character string included in the fifth target reset control area is greater than a length of the fifth target reset control area;
第七确定模块23311,用于确定第四字符串单行显示区域,所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值;a seventh determining module 23311, configured to determine a fourth character string single-line display area, the fourth character string single-line display area extending from the fourth target reset control area toward an edge of the display screen, such that a length of the fourth character string single-line display area is greater than a reset length of the fourth target reset control area, and a spacing between the fourth character string single-line display area and the edge of the display screen is greater than or equal to a third preset value;
第五显示模块23312,用于将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。The fifth display module 23312 is configured to display the fourth character string in the fourth character string single-line display area in a display manner of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the length of the fourth character string single-line display area.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第八确定模块23313,用于确定所述至少两个重设控件区域中所包括的至少一个第四目标重设控件区域,其中,所述第四目标重设控件区域内所包括的第四字符串的长度大于所述第四目标重设控件区域的长度,所述第四目标重设控件区域位于显示屏的边缘和第五目标重设控件区域之间,所述第五目标重设控件区域内所包括的第五字符串的长度小于所述第五目标重设控件区域的长度;an eighth determining module 23313, configured to determine at least one fourth target reset control area included in the at least two reset control areas, wherein a length of a fourth character string included in the fourth target reset control area is greater than a length of the fourth target reset control area, the fourth target reset control area is located between an edge of the display screen and a fifth target reset control area, and a length of a fifth character string included in the fifth target reset control area is less than a length of the fifth target reset control area;
第九确定模块23314,用于确定第四字符串单行显示区域,所述第四字符串单行显示区域由所述第四目标重设控件区域向所述显示屏的边缘和所述第五字符串方向延伸设置,以使所述第四字符串单行显示区域的长度大于所述第四目标重设控件区域的重设长度,且所述第四字符串单行显示区域与所述显示屏的边缘之间的间隔大于或等于第三预设值,所述第四字符串与所述第五字符串之间的间隔大于或等于第二预设值;a ninth determining module 23314 configured to determine a single-line display area for a fourth character string, the single-line display area for the fourth character string extending from the fourth target reset control area toward an edge of the display screen and toward the fifth character string, such that a length of the single-line display area for the fourth character string is greater than a reset length of the fourth target reset control area, a spacing between the single-line display area for the fourth character string and the edge of the display screen is greater than or equal to a third preset value, and a spacing between the fourth character string and the fifth character string is greater than or equal to a second preset value;
第六显示模块23315,用于将所述第四字符串以至少一行字符串的显示方式显示在所述第四字符串单行显示区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四字符串单行显示区域的长度。The sixth display module 23315 is configured to display the fourth character string in the fourth character string single-line display area in a display manner of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the length of the fourth character string single-line display area.
具体的,所述第二显示单元233包括:Specifically, the second display unit 233 includes:
第七显示模块23316,用于将经过目标处理后的所述第四字符串以至少一行字符串的显示方式显示在所述第四目标重设控件区域内,以使所述第四字符串的所述至少一行字符串中的任一行字符串的长度小于或等于所述第四目标重设控件区域的重设长度,所述目标处理为对字符串进行缩小处理,且使得缩小处理后的字符串大于或等于第一预设值。The seventh display module 23316 is used to display the fourth character string after target processing in the fourth target reset control area in the form of at least one line of character strings, so that the length of any one line of character strings in the at least one line of character strings of the fourth character string is less than or equal to the reset length of the fourth target reset control area, and the target processing is to reduce the character string, and make the character string after reduction processing greater than or equal to the first preset value.
采用本发明实施例所提供的终端设备,所述终端设备能够根据控制信息对至少两个控件区域进行处理以形成满足第一目标条件的至少两个重设控件区域,所述第一目标条件为所述至少两个重设控件区域中沿所述显示屏横向方向任意相邻的两个重设控件区域之间相互连接,在所述至少两个重设控件区域中的任一重设控件区域内显示字符串。采用本实施例所示的终端设备使得所述重设控件区域的长度大于所述控件区域的长度,则所述重设控件区域所能够显示的字符串的长度大于所述控件区域所能够显示的字符串的长度,能够有效的减少重设控件区域所显示的字符串的行数,从而提升了用户阅读重设控件区域内所显示的字符串的效率。Using the terminal device provided by the embodiment of the present invention, the terminal device can process at least two control areas according to control information to form at least two reset control areas that meet a first target condition, wherein the first target condition is that any two adjacent reset control areas along the horizontal direction of the display screen among the at least two reset control areas are connected to each other, and a character string is displayed in any of the at least two reset control areas. Using the terminal device shown in this embodiment so that the length of the reset control area is greater than the length of the control area, the length of the character string that can be displayed in the reset control area is greater than the length of the character string that can be displayed in the control area, which can effectively reduce the number of lines of the character string displayed in the reset control area, thereby improving the efficiency of the user in reading the character string displayed in the reset control area.
图23从功能模块的角度对终端设备的结构进行说明,以下进一步结合图1所示对终端设备的实体硬件角度的结构进行说明。FIG23 illustrates the structure of the terminal device from the perspective of functional modules, and the following further illustrates the structure of the terminal device from the perspective of physical hardware in conjunction with FIG1 .
所述终端设备包括一个或多个处理器203、存储器204、总线系统、以及一个或多个程序,所述处理器203和所述存储器204通过所述总线系统相连;The terminal device includes one or more processors 203, a memory 204, a bus system, and one or more programs, wherein the processor 203 and the memory 204 are connected via the bus system;
其中所述一个或多个程序被存储在所述存储器204中,所述一个或多个程序包括指令,所述指令当被所述终端设备执行时使所述终端设备执行如图3所示的显示字符串的方法。The one or more programs are stored in the memory 204 , and the one or more programs include instructions. When the instructions are executed by the terminal device, the terminal device executes the method for displaying a character string as shown in FIG. 3 .
本实施例所示的终端设备执行显示字符串的方法的具体过程,请详见图3所示,具体在本实施例中不做赘述。The specific process of the terminal device shown in this embodiment executing the method for displaying a character string is shown in FIG3 , and will not be described in detail in this embodiment.
本实施例所述终端设备的具体结构也可参见上述实施例所示,具体在本实施例中不再赘述。The specific structure of the terminal device described in this embodiment can also be referred to the above embodiment, and will not be repeated in this embodiment.
具体的,本实施例中,所述一个或多个程序包括指令,所述指令当被终端设备执行时使所述终端设备执行如图3所示的显示字符串的方法,所述指令执行所述显示字符串的方法的具体流程请详见图3所示,具体在本实施例中不再赘述。Specifically, in this embodiment, the one or more programs include instructions, which, when executed by the terminal device, enable the terminal device to execute the method for displaying a character string as shown in Figure 3. The specific process of the instructions executing the method for displaying a character string is shown in Figure 3, and will not be repeated in this embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (12)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/101904 WO2018068232A1 (en) | 2016-10-12 | 2016-10-12 | Character string display method and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1250575A1 HK1250575A1 (en) | 2018-12-28 |
| HK1250575B true HK1250575B (en) | 2021-03-26 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI643121B (en) | Method and terminal device for displaying objects | |
| US10976924B2 (en) | Application interface display method and terminal device | |
| CN109976645B (en) | Application interface display method and device and electronic equipment | |
| US11079930B2 (en) | Method and terminal for displaying a plurality of content cards | |
| US11163969B2 (en) | Fingerprint recognition method and apparatus, and mobile terminal | |
| EP3739437B1 (en) | Icon control method and terminal | |
| EP3736722B1 (en) | Screen capturing method and apparatus | |
| JP6251555B2 (en) | Application information providing method and portable terminal | |
| JP2019510299A (en) | Information processing method and electronic device | |
| JP6641484B2 (en) | Method and portable electronic device for changing graphics processing resolution according to scenario | |
| EP3506181A1 (en) | Information reminding method and mobile device | |
| CN108541311B (en) | Method for displaying character string and terminal equipment | |
| US20150121296A1 (en) | Method and apparatus for processing an input of electronic device | |
| HK1250575B (en) | Character string display method and terminal device | |
| HK1234693B (en) | Method and device terminal for object displaying | |
| KR20150050882A (en) | Multi language input method and multi language input apparatus thereof |