WO2019071594A1 - 一种显示处理方法及电子设备 - Google Patents

一种显示处理方法及电子设备 Download PDF

Info

Publication number
WO2019071594A1
WO2019071594A1 PCT/CN2017/106146 CN2017106146W WO2019071594A1 WO 2019071594 A1 WO2019071594 A1 WO 2019071594A1 CN 2017106146 W CN2017106146 W CN 2017106146W WO 2019071594 A1 WO2019071594 A1 WO 2019071594A1
Authority
WO
WIPO (PCT)
Prior art keywords
display object
display
interface
character string
width
Prior art date
Application number
PCT/CN2017/106146
Other languages
English (en)
French (fr)
Inventor
甘元莉
冯伟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to KR1020207011052A priority Critical patent/KR102363499B1/ko
Priority to JP2020520095A priority patent/JP2020537244A/ja
Priority to RU2020115516A priority patent/RU2741516C1/ru
Priority to US16/754,598 priority patent/US11137891B2/en
Priority to CN201780080198.0A priority patent/CN110114748A/zh
Priority to EP17928779.2A priority patent/EP3674865B1/en
Publication of WO2019071594A1 publication Critical patent/WO2019071594A1/zh
Priority to US17/477,235 priority patent/US11693552B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Definitions

  • the present application relates to the field of electronic technologies, and in particular, to a display processing method and an electronic device.
  • the electronic device can display a character string by a display object such as a button to present the related prompt content to the user.
  • a display object such as a button to present the related prompt content to the user.
  • the length of the character string to be displayed corresponding to the display object may become longer due to changes in the language type. In this case, referring to FIG. 1a, the width of the display object may not fully accommodate the lengthened object.
  • the string is displayed so that the string displayed in the display object is truncated so that only a portion of the string to be displayed can be displayed in the display object, and another portion of the string to be displayed cannot be displayed in the display object.
  • a solution in the prior art is that when the width of the display object cannot accommodate the complete character string to be displayed, the character string to be displayed is wrapped in the display object, and the display object is correspondingly increased. The height of the display to display the complete string to be displayed corresponding to the display object.
  • the recognizability of the character string to be displayed after the line break in the display object is poor, and the display object after the height increase is deformed, thereby affecting the appearance and the user of the display object.
  • the experience of using is poor, and the display object after the height increase is deformed, thereby affecting the appearance and the user of the display object.
  • the embodiment of the present application provides a display processing method and an electronic device, which can increase the width of the display object by automatically changing the positional relationship between the display object and other display objects, thereby providing a larger display width for the character string to be displayed.
  • the first aspect of the present application provides a display processing method, which is applied to an electronic device, and the electronic device displays the first display object and the second display object on the first interface in a first positional relationship.
  • the electronic device stops displaying the first interface in response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface.
  • the electronic device displays the first display object and the second display object on the second interface, and the first display object and the second display object on the second interface have a second positional relationship.
  • the second positional relationship is different from the first positional relationship, and the second width of the first display object corresponding to the second positional relationship is greater than the first width.
  • the electronic device can increase the width of the first display object by automatically adjusting the positional relationship between the first display object and the second display object, thereby providing a larger width for displaying the character string to be displayed corresponding to the first display object.
  • the electronic device can increase the width of the first display object by automatically adjusting the positional relationship between the first display object and the second display object, thereby providing a larger width for displaying the character string to be displayed corresponding to the first display object.
  • the character string to be displayed does not wrap in the first display object, it does not affect the recognizability of the character string to be displayed as in the prior art, and does not affect the display object deformation as in the prior art. Display the aesthetics of the object and interface and the user experience.
  • the first display object and the second display object on the first interface have a first positional relationship, including: the first display object and the second display object on the first interface are Arrange in parallel in the same horizontal direction.
  • the first display object and the second display object on the second interface have a second positional relationship including: the first display object and the second display object on the second interface are not arranged in parallel in the same horizontal direction.
  • the first display object and the second display object on the second interface are not parallel in the same horizontal direction as compared with the first display object and the second display object on the first interface being arranged in parallel in the same horizontal direction.
  • the influence of the width of the second display object on the width of the first display object may be reduced or avoided, thereby increasing the width of the first display object on the second interface.
  • the first display object and the second display object on the first interface and the second interface are not arranged in parallel in the same horizontal direction:
  • the first display object and the second display object on the second interface are aligned in the same vertical direction.
  • the first display object and the second display object on the second interface are arranged in a staircase in a vertical direction.
  • the first display object and the second display object on the second interface are arranged in parallel along the same oblique line direction.
  • the first display object and the second display object on the second interface are arranged along different diagonal directions.
  • the height and width of the first display object and the second display object are the same on the second interface.
  • the sizes of the first display object and the second display object can be kept consistent, thereby making the interface more beautiful.
  • the length of the first display object is less than or equal to the width of the effective display space.
  • the displaying, by the electronic device, the first display object and the second display object on the second interface includes: determining, by the electronic device, the first interface on the first interface Displays the width of the effective display space of the area in which the object is located. If the length of the character string to be displayed corresponding to the first display object is less than or equal to the width of the effective display space, the electronic device displays the first display object and the second display object on the second interface.
  • the electronic device reduces the font size of the character string to be displayed corresponding to the target display object, and the target display object is the first display object, or the target display object. It is a first display object and a second display object. If the length of the character string to be displayed corresponding to the first display object after the font size is reduced is less than or equal to the width of the effective display space, the electronic device is The first display object and the second display object are displayed on the second interface.
  • the electronic device continues to shrink.
  • the font size of the character string to be displayed corresponding to the target display object is greater than the width of the effective display space, and the font size of the character string to be displayed corresponding to the target display object after the font size reduction is greater than the preset font size.
  • the electronic device can display the first display object and the second display object on the second interface according to the size relationship between the length of the character string to be displayed corresponding to the first display object and the width of the effective display space.
  • the displaying, by the electronic device, the first display object and the second display object on the second interface further includes: if the font size is reduced, the first display object The length of the corresponding to-be-displayed character string is greater than the width of the effective display space, and the font size of the character string to be displayed corresponding to the target display object after the font size reduction is the preset font size, the electronic device displays the first display object on the second interface.
  • the second display object is the font size of the character string to be displayed corresponding to the target display object after the font size reduction is the preset font size
  • the electronic device can directly display the first display object and the second display object on the second interface.
  • the displaying, by the electronic device, the first display object and the second display object on the second interface further includes: if the font size is reduced, the first display object The length of the corresponding to-be-displayed character string is greater than the width of the effective display space, and the font size of the to-be-displayed character string corresponding to the target display object after the font size reduction is the preset font size, the electronic device will display the character string corresponding to the first display object. In place of the associated content, the length of the associated content is less than or equal to the width of the effective display space; the electronic device displays the first display object and the second display object on the second interface.
  • the electronic device can replace the character string to be displayed with the associated content having a smaller length.
  • the displaying, by the electronic device, the first display object and the second display object on the second interface includes: determining, by the electronic device, the first interface on the first interface Displays the width of the effective display space of the area in which the object is located. If the length of the character string to be displayed corresponding to the first display object is less than or equal to the width of the effective display space, the electronic device displays the first display object and the second display object on the second interface.
  • the electronic device replaces the to-be-displayed character string corresponding to the first display object with the associated content, and the length of the associated content is less than or equal to the effective display space. width.
  • the electronic device displays the first display object and the second display object on the second interface.
  • the electronic device may replace the character string to be displayed with the associated content having a smaller length.
  • the related content includes at least one of another character string, an emoticon, or a picture different from the to-be-displayed character string corresponding to the first display object.
  • the other character string includes an abbreviation of the character string to be displayed corresponding to the first display object.
  • the length of the associated content may be less than the length of the character string to be displayed corresponding to the first display object, and thus the length of the associated content is more easily less than or equal to the width of the effective display space.
  • the first display pair The image and the second display object correspond to the same associated display object group; the electronic device stores a mapping relationship between the preset associated display object group and the plurality of display objects, or the first identifier corresponding to the first display object corresponds to the second display object
  • the second identifier has a preset association relationship.
  • the first display object and the second display object are related display objects.
  • the first display object and the second display object are display objects in the same dialog box.
  • the display objects in the same dialog box belong to the same associated display object group, that is, the display object related to the display object in the same dialog box.
  • an embodiment of the present application provides an electronic device including a display and one or more processors for displaying content according to an indication of one or more processors.
  • the one or more processors are configured to instruct the display to display the first interface, where the first interface includes a first display object and a second display object, and the first display object and the second display object on the first interface have a first positional relationship.
  • the second interface In response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface, determining to display the first display object and the second display object on the second interface, the second interface The first display object and the second display object have a second positional relationship; wherein the second positional relationship is different from the first positional relationship, and the second width of the first display object corresponding to the second positional relationship is greater than the first positional relationship
  • the first display object has a first width; and indicates that the display is displayed.
  • the first display object and the second display object on the first interface have a first positional relationship, including: the first display object and the second display object on the first interface are Arrange in parallel in the same horizontal direction.
  • the first display object and the second display object on the second interface have a second positional relationship including: the first display object and the second display object on the second interface are not arranged in parallel in the same horizontal direction.
  • the first display object and the second display object on the second interface are not arranged in parallel in the same horizontal direction, including: on the second interface
  • the first display object and the second display object are aligned in the same vertical direction.
  • the first display object and the second display object on the second interface are arranged in a staircase in a vertical direction.
  • the first display object and the second display object on the second interface are arranged in parallel along the same oblique line direction.
  • the first display object and the second display object on the second interface are arranged along different diagonal directions.
  • the height and width of the first display object and the second display object are the same on the second interface.
  • the processor is further configured to determine a width of an effective display space of the area where the first display object is located on the first interface. In response to determining that the length of the character string to be displayed corresponding to the first display object is less than or equal to the width of the effective display space, determining to display the first display object and the second display object on the second interface. In response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the width of the effective display space, the font size of the character string to be displayed corresponding to the target display object is reduced, the target display object is the first display object, or the target display object is The first display object and the second display object.
  • the length of the character string to be displayed corresponding to the first display object after the reduced font size is less than or equal to the width of the effective display space
  • determining to display the first display object and the second display object on the second interface In response to determining that the length of the character string to be displayed corresponding to the first display object after the reduced font size is less than or equal to the width of the effective display space, determining to display the first display object and the second display object on the second interface.
  • the length of the character string to be displayed corresponding to the first display object after determining the reduced font size is greater than the width of the effective display space, and the font size of the character string to be displayed corresponding to the target display object after the font size reduction is greater than the preset font size, and the target is further reduced. Displays the font size of the character string to be displayed corresponding to the object.
  • the processor is further configured to: in response to determining that the length of the character string to be displayed corresponding to the first display object after the reduced font size is greater than the effective display space
  • the width of the character string, and the font size of the character string to be displayed corresponding to the target display object after the font size is reduced is a preset font size, and it is determined that the first display object and the second display object are displayed on the second interface.
  • the processor is further configured to: in response to determining that the length of the character string to be displayed corresponding to the first display object after the font size reduction is greater than the width of the effective display space, and reducing the font size of the character string to be displayed corresponding to the target display object after the font size reduction For the preset font size, the character string to be displayed corresponding to the first display object is replaced with the associated content, and the length of the associated content is less than or equal to the width of the effective display space.
  • the processor is further configured to determine a width of an effective display space of the area where the first display object is located on the first interface. In response to determining that the length of the character string to be displayed corresponding to the first display object is less than or equal to the width of the effective display space, determining to display the first display object and the second display object on the second interface. In response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the width of the effective display space, the character string to be displayed corresponding to the first display object is replaced with the associated content, and the length of the associated content is less than or equal to the width of the effective display space.
  • the related content includes at least one of another character string, an emoticon, or a picture different from the to-be-displayed character string corresponding to the first display object.
  • the other character string includes an abbreviation of the character string to be displayed corresponding to the first display object.
  • the first display object and the second display object correspond to the same associated display object group
  • the electronic device stores the preset associated display object group and the The mapping relationship of the display objects, or the first identifier corresponding to the first display object and the second identifier corresponding to the second display object have a preset association relationship.
  • an embodiment of the present application provides an electronic device, including: one or more processors, one or more memories, and a display.
  • a display processing method according to any of the first aspects.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, when the computer instruction is executed on an electronic device, causing the electronic device to perform the display processing method in any one of the foregoing first aspects.
  • an embodiment of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to execute the display processing method in any one of the foregoing first aspects.
  • FIG. 1a is a schematic diagram of an interface display provided in the prior art
  • FIG. 1b is another schematic diagram of interface display provided in the prior art
  • FIG. 2a is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 2b is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a mobile phone according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 4b is a schematic diagram of another interface display according to an embodiment of the present application.
  • 4c is a schematic diagram of comparison between the length of a character string to be displayed and the width of a first display object according to an embodiment of the present application;
  • FIG. 4 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 6b is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 7 is a flowchart of another method provided by an embodiment of the present application.
  • FIG. 8a is a schematic diagram of a width of an effective display space according to an embodiment of the present application.
  • FIG. 8b is a schematic diagram of another effective display space width according to an embodiment of the present application.
  • FIG. 8c is a schematic diagram of another effective display space width according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 9b is a schematic diagram of a first display object and a character string to be displayed according to an embodiment of the present disclosure.
  • 9c is a schematic diagram of comparison between the length of a character string to be displayed and the width of an effective display space according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another comparison between the length of a character string to be displayed and the width of an effective display space according to an embodiment of the present application.
  • FIG. 9 e is a schematic diagram showing another comparison between the length of a character string to be displayed and the width of an effective display space according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 10a is a schematic diagram of related content provided by an embodiment of the present application.
  • FIG. 10b is a schematic diagram of another related content provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another interface display according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • the specific content of the character string displayed in the display object is continuously refreshed, that is, the display object may have a new character to be displayed.
  • the string needs to be displayed, so the length of the character string to be displayed corresponding to the display object may change compared to the content originally displayed by the display object, and the characters displayed in the display object may also change.
  • FIG. 2a when the user displays the language type of the content due to the user switching interface; or, referring to FIG.
  • the length of the character string to be displayed corresponding to the display object becomes longer due to the user increasing the font size of the interface display content, and the like, and displaying
  • the prior art passes the string to be displayed at The line break within the display object prevents the string to be displayed from being truncated when displayed, and the character string to be displayed is less recognizable after the line break in the display object.
  • the embodiment of the present application provides a display processing method, when the length of the character string to be displayed corresponding to a display object becomes longer, and the width of the display object is insufficient to display the character string to be displayed corresponding to the display object, the display is automatically changed.
  • the positional relationship between the object and other display objects increases the width of the display object to provide a larger width for the display of the character string to be displayed, and tries to prevent the character string to be displayed from being truncated when displayed.
  • the display object refers to a widget or view view for displaying a character string, a picture, or other content on the interface of the electronic device, and may be, for example, a button button or a button.
  • the electronic device provided by the embodiment of the present application may be an electronic device having an interface display function, for example, a device such as a terminal or a server.
  • the electronic device when the electronic device is a terminal, the electronic device may specifically be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and the like.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the electronic device provided by the embodiment of the present application is introduced by using a mobile phone as an example.
  • the mobile phone 10 may include: a display 11, a processor 12, a memory 13, a power source 14, a radio frequency (RF) circuit 15, a gravity sensor 16, an audio circuit 17, a speaker 18, a microphone 19, and the like. These components can be connected by bus or directly.
  • RF radio frequency
  • FIG. 3 does not constitute a limitation to the handset, and may include more components than those illustrated, or some components may be combined, or different components may be arranged.
  • the display 11 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile phone, and can also accept input operations of the user.
  • the display 11 can include a display panel 111 and a touch panel 112.
  • the display panel 111 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the touch panel 112 which may also be referred to as a touch screen, a touch sensitive screen, a touch screen, etc., can collect contact or non-contact operations on or near the user (eg, the user uses any suitable object or accessory such as a finger, a stylus, etc.
  • the operation on the touch panel 112 or in the vicinity of the touch panel 112 may also include a somatosensory operation; the operation includes a single point control operation, a multi-point control operation, and the like, and the corresponding connection device is driven according to a preset program.
  • the touch panel 112 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects a touch orientation and a posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch signal from the touch detection device, and converts the received touch signal
  • the information that processor 12 can process is then sent to processor 12 and can receive commands from processor 12 and execute them.
  • the touch panel 112 can be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
  • the touch panel 112 can be implemented by any technology developed in the future.
  • the touch panel 112 can cover the display panel 111, and the user can display the content according to the display panel 111 (the displayed content includes any one or more of the following combinations: a soft keyboard, a virtual mouse, a virtual button, an icon, etc.
  • the operation is performed on or near the touch panel 112 covered on the display panel 111.
  • the touch panel 112 detects an operation thereon or nearby, it is transmitted to the processor 12 through the input/output subsystem to determine user input, and then the processor 12 provides the display panel 111 through the input/output subsystem according to the user input. Corresponding visual output.
  • the touch panel 112 and the display panel 111 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 112 may be integrated with the display panel 111. Realize the input and output functions of the phone.
  • the processor 12 is the control center of the handset 10, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 13, and recalling data stored in the memory 13, The various functions and processing data of the mobile phone 10 are executed to perform overall monitoring of the mobile phone 10.
  • processor 12 may include one or more processing units; processor 12 may integrate an application processor and a modem processor.
  • the application processor mainly processes an operating system, a user interface, an application, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 12.
  • the memory 13 can be used to store data, software programs, and modules, and can be a volatile memory, such as a random-access memory (RAM), or a non-volatile memory.
  • RAM random-access memory
  • non-volatile memory For example, a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or a combination of the above types of memories.
  • the RF circuit 15 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, and in particular, processing the received information to the processor 12; in addition, transmitting signals generated by the processor 12.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 15 can also communicate with the network and other devices through wireless communication.
  • a gravity sensor 16 can detect the magnitude of the acceleration of the mobile phone in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). It should be noted that the mobile phone 10 may further include other sensors, such as a pressure sensor, a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein.
  • the audio circuit 17, speaker 18, and microphone 19 provide an audio interface between the user and the handset 10.
  • the audio circuit 17 can transmit the converted electrical data of the received audio data to the speaker 18 for conversion to the sound signal output by the speaker 18; on the other hand, the microphone 19 converts the collected sound signal into an electrical signal by the audio circuit 17 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 15 for transmission to, for example, another mobile phone, or the audio data is output to the processor 12 for further processing.
  • the mobile phone 10 may further include a wireless fidelity (WiFi) module, a Bluetooth module, a camera, and the like, and will not be further described herein.
  • WiFi wireless fidelity
  • Bluetooth Bluetooth
  • camera and the like, and will not be further described herein.
  • the display processing method and the electronic device provided by the embodiments of the present application are described in detail below with reference to the mobile phone 10 shown in FIG. It should be noted that the electronic device provided by the embodiment of the present application may also be any electronic device other than the mobile phone shown in FIG.
  • the embodiment of the present application provides a display processing method, which can be applied to a scenario in which a mobile phone displays a first display object and a second display object on a first interface in a first positional relationship.
  • a schematic diagram of the first interface can be seen in FIG. 4a, which includes a first display object 31 and a second display object 32.
  • the method may mainly include:
  • the mobile phone stops displaying the first interface in response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface.
  • the mobile phone displays a first display object and a second display object on the second interface, where the first display object and the second display object on the second interface have a second positional relationship, where the second positional relationship is different from the first positional relationship.
  • the second width of the first display object corresponding to the second positional relationship is greater than the first width.
  • the displaying the first display object of the mobile phone may include displaying a frame of the first display object, and displaying a character string to be displayed corresponding to the first display object or a character string to be displayed corresponding to the first display object in a frame of the first display object Associate content.
  • Displaying the second display object by the mobile phone may include displaying a frame of the second display object and displaying a character string to be displayed corresponding to the second display object within the frame of the second display object.
  • the first display object and the second display object may belong to the same display object type, for example, the first display object and the second display object may all be button types; or the first display object and the first display object may also belong to different displays.
  • the object type for example, the first display object may be a button type, and the second display object may be a button type.
  • the first display object When the character string displayed by the first display object changes due to the user switching language type shown in FIG. 2a or the user changing the font size of the content displayed in FIG. 2b, the first display object is to be changed. A new character string to be displayed is displayed.
  • the length of the character string to be displayed corresponding to the first display object may be longer than the character string displayed by the first display object on the first interface.
  • the first display object 31 when the interface display content in FIG. 4a is changed from Chinese to English, the first display object 31 changes the character string to be displayed into the "OK” English representation "CONFIRM", that is, the first display.
  • the character string to be displayed corresponding to the object 31 is "CONFIRM".
  • the length of the character string "CONFIRM” to be displayed becomes longer than the character string "OK” displayed before the first display object 31 on the first interface.
  • the mobile phone may display the first display object on the first interface according to the space occupied by the display object on the first interface.
  • the second positional relationship of the second display object is adjusted to be different from the second positional relationship of the first positional relationship, such that the second width of the first display object corresponding to the second positional relationship is greater than the first position on the first interface
  • the first width of the first display object corresponding to a positional relationship can adjust the first positional relationship between the first display object 31 and the second display object 32 in FIG. 4a to the second positional relationship between the first display object 31 and the second display object 32 in FIG. 4d.
  • the second width of the first display object 31 in FIG. 4d is greater than the first width of the first display object 31 in FIG. 4a.
  • the mobile phone can increase the width of the first display object by adjusting the positional relationship between the first display object and the second display object, thereby providing a larger width for the display of the character string to be displayed corresponding to the first display object,
  • the string to be displayed can be completely displayed in one line, and the string to be displayed is prevented from being truncated when displayed.
  • the character string to be displayed is not in the first display object.
  • the line feed does not affect the recognizability of the character string to be displayed as in the prior art, nor does it affect the appearance of the display object and the interface and the user experience due to the deformation of the display object as in the prior art.
  • the determining, by the mobile phone, that the length of the to-be-displayed character string corresponding to the first display object is greater than the first width of the first display object on the first interface may include: determining, by the mobile phone, that the character string to be displayed corresponding to the first display object is the first a second size determined by the first width of the first display object on the first interface; if the first size is greater than the second size, the mobile phone may determine that the length of the character string to be displayed corresponding to the first display object is greater than the first size
  • the first width of the first display object on the interface may include: determining, by the mobile phone, that the character string to be displayed corresponding to the first display object is the first a second size determined by the first width of the first display object on the first interface; if the first size is greater than the second size, the mobile phone may determine that the length of the character string to be displayed corresponding to the first display object is greater than the first size
  • the first width of the first display object on the interface can be represented by the number of pixel
  • the determining, by the mobile phone, whether the length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface may include: determining, by the mobile phone, the first display object The number of the first characters to be displayed in the character string to be displayed; the mobile phone determines, according to the resolution, the number of second characters that can be accommodated by the first width of the first display object on the first interface; if the number of the first characters is greater than the number of the second characters, the mobile phone determines The length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface.
  • the resolution of the mobile phone is different, and the number of the second characters that can be accommodated by the width of the first display object on the first interface is also different.
  • the first display object and the second display object on the first interface having the first positional relationship may include: the first display object and the second display object on the first interface are parallel in the same horizontal direction. cloth. In this way, the first display object and the second display object are arranged in parallel, and the area corresponding to the height of the first display object and the area corresponding to the height of the second display object overlap in the vertical direction.
  • a schematic diagram of the first display object 31 and the second display object 32 arranged in parallel in the same horizontal direction can be seen in FIG. 4a or FIG. 6a.
  • the first display object 31 and the second display object 32 are aligned in the same horizontal direction.
  • 34 denotes a horizontal direction
  • 35 denotes a vertical direction.
  • the width of the first display object is limited by the width of the second display object. It is small, so that it is easy to cause the character string to be displayed to be truncated when displayed.
  • the second display relationship between the first display object and the second display object on the second interface may include: the first display object and the second display object on the second interface are not arranged in parallel in the same horizontal direction. In this way, the second positional relationship does not satisfy the parallel arrangement of the first display object and the second display object, or the area corresponding to the height of the first display object and the area corresponding to the height of the second display object overlap in the vertical direction. at least one.
  • the width of the first display object may be Increased, so that more content of the character string to be displayed can be accommodated, and the character string to be displayed corresponding to the first display object is prevented from being truncated when displayed.
  • the first display object 31 and the second display object 32 on the second interface are not arranged in parallel in the same horizontal direction.
  • the first display object 31 and the second display object on the second interface may be included. 32 align the arrangement in the same vertical direction.
  • the first display object 31 and the second display object 32 on the second interface are not arranged in parallel in the same horizontal direction.
  • the first display object 31 and the second display object on the second interface may be included.
  • 32 It is arranged in a staircase in the vertical direction.
  • the first display object 31 and the second display object 32 on the second interface are not arranged in parallel in the same horizontal direction, and may include: the first display object 31 and the second display object on the second interface. 32 are arranged in parallel along the same diagonal direction.
  • the first display object 31 and the second display object 32 on the second interface are not arranged in parallel in the same horizontal direction.
  • the first display object 31 and the second display object on the second interface may be included.
  • 32 are arranged along different diagonal lines.
  • the width of the second display object 32 is opposite.
  • the width 31 of the first display object has no influence or influence, so the width of the first display object 31 can be large, and the display of the character string to be displayed can be provided with a larger width, and the character string to be displayed is prevented from being displayed when displayed. Truncated.
  • the widths of the first display object and the second display object may be different on the second interface.
  • the height and width of the first display object and the second display object are the same, that is, the first display object and the second display object may maintain the same size. In this way, the user's aesthetic habits can be more closely matched, thereby improving the user experience.
  • This embodiment will be described by taking this case as an example.
  • step 201 the displaying, by the mobile phone, the first display object and the second display object on the second interface may include:
  • the mobile phone determines a width of an effective display space of the area where the first display object is located on the first interface.
  • the width of the effective display space of the area where the first display object is located on the first interface may include the sum of the width of the first display object and the width of the second display object on the first interface.
  • the width 33 of the effective display space of the area where the first display object is located on the first interface as shown in FIG. 4a may be as shown in FIG. 8a.
  • the width of the effective display space of the area where the first display object is located on the first interface may include the width of the first display object on the first interface, the width of the second display object, and the first display object and the first The sum of the gaps between the display objects and the interface boundaries.
  • the width 33 of the effective display space of the area where the first display object 31 is located on the first interface as shown in FIG. 4a may be as shown in FIG. 8b.
  • the width of the effective display space of the area where the first display object is located on the first interface may include the width of all the effective display spaces in the horizontal direction corresponding to the height of the first display object on the first interface.
  • the width 33 of the effective display space of the area where the first display object 31 is located on the first interface as shown in FIG. 4a may be as shown in FIG. 8c.
  • the width of the effective display space in FIG. 8c also includes the gap between the first display object 31 and the second display object 32 and the interface boundary as compared to the effective display space in FIG. 8b.
  • the width of the second display object is reduced to the first display object, compared to the first width of the first display object on the first interface.
  • the effect of the width, and thus the width of the first display object on the second interface is increased, and the length of the enlarged first display object is less than or equal to the width of the effective display space, and thus the mobile phone can be corresponding to the first display object.
  • the relationship between the length of the display string and the width of the effective display space is performed on the second interface by the following steps 202-311. The first display object and the second display object are displayed.
  • the mobile phone displays the first display object and the second display object on the second interface.
  • the length of the character string to be displayed corresponding to the first display object is less than or equal to the width of the effective display space
  • the length of the large display character string corresponding to the first display object may be less than or equal to the width of the increased first display object.
  • the increased width of the first display object may be able to accommodate the string to be displayed corresponding to the complete first display object, and the character string to be displayed corresponding to the first display object is not intercepted by the frame of the first display object when displayed.
  • the mobile phone can display the first display object and the second display object on the second interface.
  • the content displayed in the border of the first display object is a character string to be displayed corresponding to the first display object.
  • the length of the character string to be displayed corresponding to the first display object 31 is smaller than the width of the first display object 31, and the character string to be displayed corresponding to the first display object is not truncated when displayed.
  • the displaying, by the mobile phone, the first display object and the second display object on the second interface may further include:
  • the mobile phone reduces the font size of the character string to be displayed corresponding to the target display object.
  • the target display object may be a first display object, and the target display object may be a first display object, or the target display object may be a first display object and a second display object.
  • the width of the first display object is smaller than or equal to the width of the effective display space. If the length of the character string to be displayed corresponding to the first display object is greater than the width of the effective display space, the first display object is to be displayed. The length of the character string must be greater than the width of the first display object after the increase, that is, the width of the first display object after the increase still cannot accommodate the character string to be displayed of the complete first display object, and the first display object corresponds to the The display string will still be truncated by the border of the first display object when it is displayed.
  • the character string to be displayed corresponding to the first display object 31 on the first interface is “VERIFY”, due to the change of the language content of the interface content;
  • the character to be displayed corresponding to the first display object 31 The string is "OK, I already know that the network is connected";
  • the length of the character string to be displayed corresponding to the first display object 31 is greater than the width 33 of the effective display space.
  • the mobile phone can reduce the font size of the to-be-displayed character string corresponding to the first display object and the second display object by reducing the font size of the character string to be displayed corresponding to the first display object, so as to reduce the corresponding to-be-displayed character string of the first display object.
  • the mobile phone may simultaneously reduce the font size of the character string to be displayed corresponding to the first display object and the second display object, so that the first display
  • the size of the font size of the to-be-displayed character string corresponding to the second display object remains the same, so that after the first display object and the second display object are displayed on the second interface, the first display object and the second display object may be made
  • the second interface is more aesthetically pleasing and can enhance the user experience.
  • the mobile phone may respectively display the first display object 31 and the second display object 32 to be displayed.
  • the font size of the string is reduced to 14sp.
  • the mobile phone displays the first display object and the second display object on the second interface.
  • the target display object includes the first display object or includes the first display object and the second display object
  • the font size of the character string to be displayed corresponding to the target display object is reduced in step 204
  • the character string to be displayed corresponding to the first display object The font size is reduced in step 204.
  • the length of the character string to be displayed corresponding to the first display object after the font size is reduced is less than or equal to the width of the effective display space
  • the character string to be displayed corresponding to the first display object after the font size is reduced.
  • the length of the first display object is likely to be less than or equal to the width of the first display object after the increase, that is, the enlarged first display object can accommodate the string to be displayed corresponding to the complete first display object, and thus the mobile phone can be on the second interface.
  • the first display object and the second display object are displayed.
  • the character string to be displayed corresponding to the first display object is not intercepted by the frame of the first display object when displayed.
  • the content displayed in the border of the first display object is a character string to be displayed corresponding to the first display object.
  • the mobile phone continues Reduce the font size of the character string to be displayed corresponding to the target display object.
  • the font size of the character string to be displayed corresponding to the first display object is reduced in step 204, if the length of the character string to be displayed corresponding to the first display object after the font size reduction is greater than the width of the effective display space, the font size is reduced.
  • the length of the character string to be displayed corresponding to the first display object must be greater than the width of the enlarged first display object.
  • the width of the first display object cannot accommodate the string to be displayed corresponding to the complete first display object.
  • the mobile phone may not directly display the first display object on the second interface, but may continue under the condition that the font size of the character string to be displayed corresponding to the target display object after the font size reduction is greater than the preset font size.
  • the font size of the character string to be displayed corresponding to the target display object is reduced to further reduce the length of the character string to be displayed corresponding to the first display object, thereby further improving the character string to be displayed corresponding to the first display object that the first display object can accommodate. length.
  • the mobile phone may further reduce the font size of the character string to be displayed corresponding to the first display object 31 and the second display object 32 in the scene shown in FIG. 9d to 13sp.
  • the mobile phone may perform the following step 207 or perform the following steps 208-209.
  • the mobile phone is The first display object and the second display object are displayed on the second interface.
  • the default font size here may be the minimum font size to which the character string to be displayed corresponding to the target display object can be reduced.
  • the specific value may be set according to actual needs, for example, the preset font size may be 13sp.
  • the mobile phone may display the first display object and the second display object on the second interface.
  • the content displayed by the first display object is a character string to be displayed corresponding to the first display object, and the character string to be displayed is intercepted by the frame of the first display object when displayed.
  • the character string to be displayed is intercepted by the frame of the first display object when displayed.
  • the mobile phone will The character string to be displayed corresponding to the first display object is replaced with the associated content, and the length of the associated content is less than or equal to the width of the effective display space.
  • the mobile phone displays the first display object and the second display object on the second interface.
  • step 208 and step 209 when the font size of the character string to be displayed corresponding to the first display object is reduced in step 204, the length of the character string to be displayed corresponding to the first display object after the font size reduction is larger than the effective display space.
  • the width of the first displayed object is increased, and the font size of the character string to be displayed corresponding to the reduced target display object is equal to the preset font size, that is, the width of the first display object after the target display object corresponding to the character string to be displayed has been reduced to the minimum font size.
  • the character string to be displayed corresponding to the first display object cannot be received, and the character string to be displayed corresponding to the first display object may be replaced with the related content of the first display object whose length is smaller than the increased first display object, thereby making the first display
  • the object can hold the complete associated content without causing the border of the first display object of the associated content to be truncated.
  • step 209 the associated content of the character string to be displayed is displayed in the border of the first display object, instead of the string itself to be displayed.
  • the associated content of the character string to be displayed may include at least one of another character string, an emoticon, or a picture different from the to-be-displayed character string corresponding to the first display object, and the other character string includes the first display object.
  • Abbreviation for the string to be displayed the length of the associated content may be less than the length of the character string to be displayed corresponding to the first display object, and thus the length of the associated content is more easily less than or equal to the width of the effective display space.
  • the replacement content generally has the same or similar meaning as the character string to be displayed corresponding to the first display object.
  • the replacement content may be another character string “ok”.
  • the replacement content may be a gesture image to the left, etc.; when the character string to be displayed corresponding to the first display object is "next step” ", the replacement content may be a gesture picture pointing to the right, and the like.
  • the first display object 31 after replacing the string to be displayed with the associated content may refer to FIG. 10a.
  • the font size in the second display object may be maintained as a preset font size, and may also be restored to the font size before reduction. Specifically limited.
  • the character string to be displayed corresponding to the first display object is replaced with the associated content
  • the character string to be displayed corresponding to the second display object may also be replaced with the associated content.
  • the character string to be displayed corresponding to the first display object 31 and the second display object 32 is replaced with the scene corresponding to the associated content, respectively. See FIG. 10b.
  • the displaying, by the mobile phone, the first display object and the second display object on the second interface may further include:
  • the hand The machine replaces the to-be-displayed character string corresponding to the first display object with the associated content, and the length of the associated content is less than or equal to the width of the effective display space.
  • the mobile phone may also replace the string to be displayed corresponding to the first display object with The length is less than the associated content of the increased first display object, such that the first display object can accommodate the complete associated content without causing the border of the first display object of the associated content to be truncated.
  • the first display object and the second display object may correspond to the same associated display object group, that is, the first display object and the second display object are related display objects.
  • Each of the associated display object groups may include N display objects, and the meanings of the to-be-displayed character strings corresponding to the N display objects are similar or opposite, the positions of the N display objects in the same interface are close, and the N display objects are
  • the operation mode, the operation here may include a touch mode or a click mode, and the touch mode or the click method may include a click, a double tap or a long press.
  • the N display objects in the associated display object group may be a plurality of display objects included in the same dialog box.
  • the first display object and the second display object are two display objects in the same dialog box.
  • the value of N is 2, and only the first display object and the second display object are included in the associated display object group.
  • the value of N is greater than 2, and the first display object, the second display object, and other display objects are included in the associated display object group.
  • the associated display object group may include three display objects for displaying "next page", "cancel", and "return", respectively.
  • the first display object and the second display object may be any two of the three display objects shown in FIG.
  • the N display objects in the associated display object group may correspond to the same display object type, or may correspond to different display object types, and are not described herein again.
  • the first display object and the second display object in the same associated display object may also be any of the following related display objects: OK and Cancel, Continue and Return, Entry and Exit, Previous and Next, or , next step and return, etc.
  • the electronic device may save a mapping relationship between the preset associated display object group and the plurality of display objects.
  • the mobile phone may determine that the first display object and the second display object correspond to the same associated display object group.
  • the mapping relationship may be saved in a database or a data table, and the mobile phone may determine the correspondence between the first display object and other display objects in the corresponding associated display object group by searching data in the database or searching data in the data table. .
  • the first identifier corresponding to the first display object and the second identifier corresponding to the second display object may have a preset association relationship.
  • the identifier 1 and the identifier 2 have a preset association relationship.
  • the first identifier corresponding to the first display object is the identifier 1 and the second identifier corresponding to the second display object is the identifier 2.
  • the first identifier and the second identifier have a preset association relationship, and the first identifier and the second identifier may be the same.
  • the third interface may also be included on the first interface and the second interface.
  • the mobile phone may display the first display object 31 on the second interface 38. Updating the first positional relationship with the second display object 32 to the second positional relationship while maintaining the third display object The position in the first interface 37 is unchanged.
  • the mobile phone may perform the layout control by using the HwAlertController class to inherit the AlertController class based on the existing AlertController class included in the google, thereby modifying the positional relationship between the first display object and the second display object. Increase the width of the first display object.
  • the mobile phone can add a super long monitor to the first display object by using the setUpView class of the HwAlertController. When the length of the to-be-displayed string exceeds the width of the first display object, the positional relationship between the first display object and the second display object is modified.
  • the mobile phone can also reduce the font size of the character string to be displayed corresponding to the target display object by calling the HwWidgetFactory.autoTextSize(Textview textview, Context context) class.
  • the electronic device includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above functions.
  • the present application can be implemented in a combination of hardware or hardware and computer software in combination with the algorithmic steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiment of the present application may divide the functional modules of the electronic device according to the foregoing method example.
  • each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 13 is a schematic diagram showing a possible composition of the electronic device 40 involved in the above embodiment.
  • the electronic device 40 may include a display 41 and One or more processors 42.
  • the display 41 is configured to display content according to an indication of one or more processors 42.
  • the processor 42 can be used to perform steps 200 and 201 shown in FIG.
  • the one or more processors 42 may be configured to instruct the display 41 to display the first interface, where the first interface includes a first display object and a second display object, and the first display object and the second display object on the first interface Having a first positional relationship; determining to display the first display object and the second interface on the second interface in response to determining that the length of the character string to be displayed corresponding to the first display object is greater than the first width of the first display object on the first interface Displaying the object, the first display object and the second display object on the second interface have a second positional relationship; wherein the second positional relationship is different from the first positional relationship, and the second positional relationship corresponds to the second width of the first display object The first width of the first display object corresponding to the first positional relationship is greater than; and the display 41 is instructed to display.
  • processor 42 may also be used to perform steps 202-211 of Figure 7, and/or other processes for the techniques described herein.
  • FIG. 14 is another schematic structural diagram of the electronic device 50 involved in the foregoing embodiment, and the electronic device 50 may include a display unit 51 and a processing unit 52, where the functional modules are divided into corresponding functionalities.
  • the function of the display unit 51 may correspond to the function of the display 41 in FIG. 13, and the function of the processing unit 52 may correspond to the function of the processor 42 in FIG.
  • the electronic device includes but is not limited to the unit modules listed above, for example, the electronic device may also include
  • the storage unit is configured to store program code and related data of the electronic device, such as an association between an index of the presentation content segment and an identification of the function, and the like.
  • the electronic device may further include a communication unit, which may include a transmitting unit for transmitting data or signals to other devices, a receiving unit that receives data or signals transmitted by other devices, and the like.
  • the specific functions that can be implemented by the above-mentioned functional units include, but are not limited to, the functions corresponding to the method steps of the foregoing example. For a detailed description of other units of the electronic device, reference may be made to the detailed description of the corresponding method steps. No longer.
  • the processing unit 52 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (application-specific). Integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the storage unit can be a memory.
  • the communication unit can be a transceiver, an RF circuit or a communication interface or the like.
  • the processing unit 52 is a processor
  • the communication module is an RF circuit
  • the storage unit is a memory
  • the display unit 51 is a display
  • the electronic device provided by the embodiment of the present application may be the mobile phone shown in FIG.
  • the foregoing communication unit may further include a WiFi module and a Bluetooth module.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • the above-described integrated unit can be stored in a readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present application may be embodied in the form of a computer program product in the form of a computer program product, or a part of the technical solution, which is essential to the prior art, and the computer program product is stored in a
  • the storage medium includes a plurality of instructions for All or part of the steps of the method of the various embodiments of the present application are performed by a device (which may be a microcontroller, chip, etc.) or a processor.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)
  • Telephone Function (AREA)

Abstract

一种显示处理方法及电子设备(40),能够通过改变显示对象与其它显示对象的位置关系,增大显示对象的宽度,从而为待显示字符串提供更大的显示宽度。主要方案为:电子设备(40)以第一位置关系在第一界面上显示第一显示对象和第二显示对象,响应于确定第一显示对象对应的待显示字符串的长度大于第一界面上第一显示对象的第一宽度,停止显示第一界面(200),在第二界面上显示第一显示对象和第二显示对象,第二界面上的第一显示对象和第二显示对象具有第二位置关系,第二位置关系不同于第一位置关系,第二位置关系对应的第一显示对象的第二宽度大于第一宽度(201)。

Description

一种显示处理方法及电子设备
本申请要求于2017年10月9日提交中国专利局、申请号为201710931363.0、申请名称为“一种显示处理的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种显示处理方法及电子设备。
背景技术
电子设备可以通过按钮等显示对象显示字符串,以向用户呈现相关提示内容。在电子设备的使用过程中,由于语言种类发生变化等原因可能使得显示对象对应的待显示字符串的长度变长,此时,参见图1a,显示对象的宽度可能不能完全容纳变长后的待显示字符串,从而将使得显示对象中显示的字符串发生截断,使得显示对象中只能显示待显示字符串的一部分,而待显示字符串的另一部分则无法在显示对象中显示。
针对该问题,参见图1b,现有技术中的一种解决方案为,当显示对象的宽度不能容纳完整的待显示字符串时,将待显示字符串在显示对象内换行,并相应增加显示对象的高度,从而在显示对象内显示显示对象对应的完整的待显示字符串。
在现有技术提供的该种解决方案中,待显示字符串在显示对象内换行后的可识别性较差,并且由于增加高度后的显示对象发生了形变,因而影响了显示对象的美观和用户的使用体验。
发明内容
本申请实施例提供一种显示处理方法及电子设备,能够通过自动改变显示对象与其它显示对象的位置关系,增大显示对象的宽度,从而为待显示字符串提供更大的显示宽度。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面本申请实施例提供可以一种显示处理方法,应用于电子设备,电子设备以第一位置关系在第一界面上显示第一显示对象和第二显示对象。响应于确定第一显示对象对应的待显示字符串的长度大于第一界面上第一显示对象的第一宽度,电子设备停止显示第一界面。并且,电子设备在第二界面上显示第一显示对象和第二显示对象,第二界面上的第一显示对象和第二显示对象具有第二位置关系。其中,第二位置关系不同于第一位置关系,第二位置关系对应的第一显示对象的第二宽度大于第一宽度。
这样,电子设备可以通过自动调整第一显示对象和第二显示对象的位置关系,增大第一显示对象的宽度,从而为第一显示对象对应的待显示字符串的显示提供更大的宽度,以尽量使得待显示字符串能够在一行内完整显示,避免待显示字符串在显示时被截断。
并且,由于待显示字符串并未在第一显示对象中换行,因而并不会像现有技术那样影响待显示字符串的可识别性,也不会像现有技术那样由于显示对象变形而影响显示对象及界面的美观和用户的使用体验。
结合第一方面,在一种可能的实现方式中,第一界面上的第一显示对象和第二显示对象具有第一位置关系包括:第一界面上的第一显示对象和第二显示对象在同一水平方向上平行排布。第二界面上的第一显示对象和第二显示对象具有第二位置关系包括:第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布。
这样,与第一界面上的第一显示对象和第二显示对象在同一水平方向上平行排布相比,当第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布时,可以减小或避免第二显示对象的宽度对第一显示对象的宽度的影响,从而增大第二界面上第一显示对象的宽度。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一界面和第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布包括:第二界面上的第一显示对象和第二显示对象在同一竖直方向上对齐排布。或者,第二界面上的第一显示对象和第二显示对象在竖直方向上呈阶梯形排布。或者,第二界面上的第一显示对象和第二显示对象沿着同一斜线方向平行排布。或者,第二界面上的第一显示对象和第二显示对象沿着不同斜线方向排布。
这样,可以减小或避免第二显示对象的宽度对第一显示对象的宽度的影响,从而增大第二界面上第一显示对象的宽度。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在第二界面上,第一显示对象和第二显示对象的高度和宽度相同。
这样,可以使得第一显示对象和第二显示对象的大小保持一致,从而使得界面更为美观。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的宽度和第二显示对象的宽度之和;或者,第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的宽度、第二显示对象的宽度以及第一显示对象和第二显示对象之间的间隙之和;或者第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的宽度、第二显示对象的宽度、以及第一显示对象和第二显示对象分别与界面边界之间的间隙之和。
这样,第一显示对象的长度小于或者等于有效显示空间的宽度。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,电子设备在第二界面上显示第一显示对象和第二显示对象包括:电子设备确定在第一界面上第一显示对象所在区域的有效显示空间的宽度。若第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,则电子设备在第二界面上显示第一显示对象和第二显示对象。若第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则电子设备缩小目标显示对象对应的待显示字符串的字号,目标显示对象为第一显示对象,或者,目标显示对象为第一显示对象和第二显示对象。若缩小字号后的第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,则电子设备在 第二界面上显示第一显示对象和第二显示对象。若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号大于预设字号,则电子设备继续缩小目标显示对象对应的待显示字符串的字号。
这样,由于减少了第二显示对象的宽度对第一显示对象的宽度的影响,因而第一显示对象的宽度增大了,并且增大后的第一显示对象的长度小于或者等于有效显示空间的宽度,因而电子设备可以根据第一显示对象对应的待显示字符串的长度与有效显示空间的宽度的大小关系,在第二界面上显示第一显示对象和第二显示对象。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,电子设备在第二界面上显示第一显示对象和第二显示对象还包括:若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,则电子设备在第二界面上显示第一显示对象和第二显示对象。
这样,当缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号时,电子设备可以直接在第二界面上显示第一显示对象和第二显示对象。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,电子设备在第二界面上显示第一显示对象和第二显示对象还包括:若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,则电子设备将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度;电子设备在第二界面上显示第一显示对象和第二显示对象。
这样,当缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号时,电子设备可以将待显示字符串替换为长度较小的关联内容。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,电子设备在第二界面上显示第一显示对象和第二显示对象包括:电子设备确定在第一界面上第一显示对象所在区域的有效显示空间的宽度。若第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,则电子设备在第二界面上显示第一显示对象和第二显示对象。若第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则电子设备将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度。电子设备在第二界面上显示第一显示对象和第二显示对象。
这样,当第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度时,电子设备可以将待显示字符串替换为长度较小的关联内容。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,关联内容包括与第一显示对象对应的待显示字符串不同的另一字符串、表情符号或图片中的至少一种,另一字符串包括第一显示对象对应的待显示字符串的缩写。
这样,关联内容的长度通常可以小于第一显示对象对应的待显示字符串的长度,因而关联内容的长度更容易小于或者等于有效显示空间的宽度。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一显示对 象和第二显示对象对应同一关联显示对象组;电子设备保存有预设的关联显示对象组与多个显示对象的映射关系,或者,第一显示对象对应的第一标识与第二显示对象对应的第二标识具有预设关联关系。
这样,第一显示对象和第二显示对象为相关的显示对象。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一显示对象和第二显示对象为同一对话框中的显示对象。
这样,同一对话框中的显示对象属于同一个关联显示对象组,即同一对话框中的显示对象时相关的显示对象。
第二方面,本申请实施例提供一种电子设备,包括显示器和一个或多个处理器,显示器用于根据一个或多个处理器的指示进行内容显示。一个或多个处理器用于指示显示器显示第一界面,第一界面上包括第一显示对象和第二显示对象,第一界面上的第一显示对象和第二显示对象具有第一位置关系。响应于确定第一显示对象对应的待显示字符串的长度大于第一界面上的第一显示对象的第一宽度,确定在第二界面上显示第一显示对象和第二显示对象,第二界面上的第一显示对象和第二显示对象具有第二位置关系;其中,第二位置关系不同于第一位置关系,第二位置关系对应的第一显示对象的第二宽度大于第一位置关系对应的第一显示对象的第一宽度;并指示显示器进行显示。
结合第二方面,在一种可能的实现方式中,第一界面上的第一显示对象和第二显示对象具有第一位置关系包括:第一界面上的第一显示对象和第二显示对象在同一水平方向上平行排布。第二界面上的第一显示对象和第二显示对象具有第二位置关系包括:第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布包括:第二界面上的第一显示对象和第二显示对象在同一竖直方向上对齐排布。或者,第二界面上的第一显示对象和第二显示对象在竖直方向上呈阶梯形排布。或者,第二界面上的第一显示对象和第二显示对象沿着同一斜线方向平行排布。或者,第二界面上的第一显示对象和第二显示对象沿着不同斜线方向排布。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,在第二界面上,第一显示对象和第二显示对象的高度和宽度相同。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,处理器还用于确定在第一界面上第一显示对象所在区域的有效显示空间的宽度。响应于确定第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,确定在第二界面上显示第一显示对象和第二显示对象。响应于确定第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,缩小目标显示对象对应的待显示字符串的字号,目标显示对象为第一显示对象,或者,目标显示对象为第一显示对象和第二显示对象。响应于确定缩小字号后的第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,确定在第二界面上显示第一显示对象和第二显示对象。响应于确定缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号大于预设字号,继续缩小目标 显示对象对应的待显示字符串的字号。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,处理器还用于,响应于确定缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,确定在第二界面上显示第一显示对象和第二显示对象。或者,处理器还用于,响应于确定缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,处理器还用于,确定在第一界面上第一显示对象所在区域的有效显示空间的宽度。响应于确定第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,确定在第二界面上显示第一显示对象和第二显示对象。响应于确定第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,关联内容包括与第一显示对象对应的待显示字符串不同的另一字符串、表情符号或图片中的至少一种,另一字符串包括第一显示对象对应的待显示字符串的缩写。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一显示对象和第二显示对象对应同一关联显示对象组,电子设备保存有预设的关联显示对象组与多个显示对象的映射关系,或者,第一显示对象对应的第一标识与第二显示对象对应的第二标识具有预设关联关系。
第三方面,本申请实施例提供一种电子设备,包括:一个或多个处理器、一个或多个存储器和显示器。一个或多个存储器、显示器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,电子设备执行如第一方面任一项的显示处理方法。显示器,用于根据处理器的指示进行内容显示。
第四方面,本申请实施例提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项中的显示处理方法。
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项中的显示处理方法。
其中,上述第二方面至第五方面对应的有益效果可以参见上述第一方面,这里不再赘述。
附图说明
图1a为现有技术中提供的一种界面显示示意图;
图1b为现有技术中提供的另一种界面显示示意图;
图2a为本申请实施例提供的一种界面显示示意图;
图2b为本申请实施例提供的另一种界面显示示意图;
图3为本申请实施例提供的一种手机的结构示意图;
图4a为本申请实施例提供的另一种界面显示示意图;
图4b为本申请实施例提供的另一种界面显示示意图;
图4c为本申请实施例提供的一种待显示字符串的长度与第一显示对象的宽度的对比示意图;
图4d为本申请实施例提供的另一种界面显示示意图;
图5为本申请实施例提供的一种方法流程图;
图6a为本申请实施例提供的另一种界面显示示意图;
图6b为本申请实施例提供的另一种界面显示示意图;
图6c为本申请实施例提供的另一种界面显示示意图;
图6d为本申请实施例提供的另一种界面显示示意图;
图7为本申请实施例提供的另一种方法流程图;
图8a为本申请实施例提供的一种有效显示空间的宽度的示意图;
图8b为本申请实施例提供的另一种有效显示空间的宽度的示意图;
图8c为本申请实施例提供的另一种有效显示空间的宽度的示意图;
图9a为本申请实施例提供的另一种界面显示示意图;
图9b为本申请实施例提供的一种第一显示对象与待显示字符串的示意图;
图9c为本申请实施例提供的一种待显示字符串的长度与有效显示空间的宽度的对比示意图;
图9d为本申请实施例提供的另一种待显示字符串的长度与有效显示空间的宽度的对比示意图;
图9e为本申请实施例提供的另一种待显示字符串的长度与有效显示空间的宽度的对比示意图;
图9f为本申请实施例提供的另一种界面显示示意图;
图10a为本申请实施例提供的一种关联内容示意图;
图10b为本申请实施例提供的另一种关联内容示意图;
图11为本申请实施例提供的另一种界面显示示意图;
图12为本申请实施例提供的另一种界面显示示意图;
图13为本申请实施例提供的一种电子设备的结构示意图;
图14为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
在显示界面上,由于用户切换界面显示内容的语言种类,或更改界面显示内容的字号等原因,显示对象中显示的字符串的具体内容会不断进行刷新,即显示对象可能有新的待显示字符串需要显示,因而与显示对象原来显示的内容相比,显示对象对应的待显示字符串的长度可能会发生变化,显示对象中显示的字符也可能发生变化。例如,参见图2a,当由于用户切换界面显示内容的语言种类;或者,参见图2b,由于用户增大界面显示内容的字号等原因,使得显示对象对应的待显示字符串的长度变长,显示对象的宽度不足以显示完整的待显示字符串时,现有技术通过将待显示字符串在 显示对象内换行,来避免待显示字符串在显示时被截断,而待显示字符串在显示对象内换行后的可识别性较差。本申请实施例提供一种显示处理方法,当一个显示对象对应的待显示字符串的长度变长,该显示对象的宽度不足以显示该显示对象对应的待显示字符串时,通过自动改变该显示对象与其它显示对象的位置关系,增大该显示对象的宽度,以为待显示字符串的显示提供更大的宽度,尽量避免待显示字符串在显示时被截断。
在本申请实施例中,显示对象是指电子设备界面上用于显示字符串、图片或其他内容的控件widget或视图view,例如可以是按钮button或按键等。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的预设关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
需要说明的是,本申请实施例提供的电子设备可以为具有界面显示功能的电子设备,例如可以是终端或服务器等设备。其中,当电子设备为终端是,电子设备具体可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等设备。
具体的,本申请实施例以手机为例,对本申请实施例提供的电子设备进行介绍。如图3所示,手机10可以包括:显示器11、处理器12、存储器13、电源14、射频(radio frequency,RF)电路15、重力传感器16、音频电路17、扬声器18、麦克风19等部件,这些部件之间可以以总线连接,也可以直连连接。本领域技术人员可以理解,图3中示出的手机结构并不构成对手机的限定,可以包括比图示更多的部件,或者组合某些部件,或者不同的部件布置。
其中,显示器11可用于显示由用户输入的信息或提供给用户的信息,以及手机的各种菜单,还可以接受用户的输入操作。具体的,显示器11可以包括显示面板111以及触控面板112。
显示面板111可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置。
触控面板112,也可以称为触摸屏、触敏屏、触控屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板112上或在触控面板112附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板112可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信号,并将接收到的触摸信号转换成处理器12能够处理的信息,然后将该信息送给处理器12,并能接收处理器12发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板112,也可以采用未来发展的任何技术实现触控面板112,本申请实施例对此不进行限定。
进一步的,触控面板112可覆盖显示面板111,用户可以根据显示面板111显示的内容(该显示的内容包括以下任意一种或多种的组合:软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板111上覆盖的触控面板112上或者附近进行操作。触控面板112检测到在其上或附近的操作后,通过输入/输出子系统传送给处理器12以确定用户输入,随后处理器12根据用户输入通过输入/输出子系统在显示面板111上提供相应的视觉输出。虽然在图3中,触控面板112与显示面板111是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板112与显示面板111集成而实现手机的输入和输出功能。
处理器12是手机10的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器13内的软件程序和/或模块,以及调用存储在存储器13内的数据,执行手机10的各种功能和处理数据,从而对手机10进行整体监控。在具体实现中,作为一种实施例,处理器12可包括一个或多个处理单元;处理器12可集成应用处理器和调制解调处理器。其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器12中。
存储器13可用于存储数据、软件程序以及模块,可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合。
电源14,可以为电池,通过电源管理系统与处理器12逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
RF电路15可用于收发信息或通话过程中,信号的接收和发送,特别地,将接收到的信息给处理器12处理;另外,将处理器12生成的信号发送出去。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路15还可以通过无线通信与网络和其他设备通信。
重力传感器(gravity sensor)16,可以检测手机在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。需要说明的是,手机10还可以包括其它传感器,比如压力传感器、光传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路17、扬声器18、麦克风19可提供用户与手机10之间的音频接口。音频电路17可将接收到的音频数据转换后的电信号,传输到扬声器18,由扬声器18转换为声音信号输出;另一方面,麦克风19将收集的声音信号转换为电信号,由音频电路17接收后转换为音频数据,再将音频数据输出至RF电路15以发送给比如另一手机,或者将音频数据输出至处理器12以便进一步处理。
尽管未示出,手机10还可以包括无线保真(wireless fidelity,WiFi)模块、蓝牙模块、摄像头等功能模块,在此不再一一赘述。
具体的,以下将结合图3所示的手机10,对本申请实施例提供的显示处理方法及电子设备进行详细说明。需要说明的是,本申请实施例所提供的电子设备也可以是除图3所示手机之外的其他任一电子设备。
本申请实施例提供一种显示处理方法,可以应用于手机以第一位置关系在第一界面上显示第一显示对象和第二显示对象的场景。示例性的,第一界面的示意图可以参见图4a,其中包括第一显示对象31和第二显示对象32。参见图5,该方法主要可以包括:
200、手机响应于确定第一显示对象对应的待显示字符串的长度大于第一界面上第一显示对象的第一宽度,停止显示第一界面。
201、手机在第二界面上显示第一显示对象和第二显示对象,第二界面上的第一显示对象和第二显示对象具有第二位置关系,第二位置关系不同于第一位置关系,第二位置关系对应的第一显示对象的第二宽度大于第一宽度。
其中,手机显示第一显示对象可以包括显示第一显示对象的边框,和在第一显示对象的边框内显示第一显示对象对应的待显示字符串或第一显示对象对应的待显示字符串的关联内容。手机显示第二显示对象可以包括显示第二显示对象的边框和在第二显示对象的边框内显示第二显示对象对应的待显示字符串。第一显示对象和第二显示对象可以属于相同的显示对象类型,例如第一显示对象和第二显示对象可以均为按钮类型;或者,第一显示对象和第一显示对象也可以属于不同的显示对象类型,例如第一显示对象可以为按钮类型,第二显示对象可以为按键类型。
当由于图2a所示的用户切换语言种类的原因,或者由于图2b所示的用户更改界面显示内容的字号的原因等,使得第一显示对象显示的字符串发生变化时,第一显示对象将要显示新的待显示字符串,与第一界面上的第一显示对象显示的字符串相比,第一显示对象对应的待显示字符串的长度可能变长。例如,参见图4b和图4c,当图4a中的界面显示内容从中文变成英文时,第一显示对象31将要显示的字符串变为“确定”的英文表示“CONFIRM”,即第一显示对象31对应的待显示字符串为“CONFIRM”。与第一界面上第一显示对象31之前显示的字符串“确定”相比,待显示字符串“CONFIRM”的长度变长。
当手机确定待显示字符串的长度大于第一界面上第一显示对象的第一宽度时,手机可以根据第一界面上可以被显示对象占用的空间,将第一界面上的第一显示对象和第二显示对象具有的第一位置关系,调整为不同于第一位置关系的第二位置关系,以使得第二位置关系所对应的第一显示对象的第二宽度,大于第一界面上的第一位置关系所对应的第一显示对象的第一宽度。例如,手机可以将图4a中的第一显示对象31和第二显示对象32具有的第一位置关系,调整为图4d中的第一显示对象31和第二显示对象32具有的第二位置关系,且图4d中第一显示对象31的第二宽度大于图4a中第一显示对象31的第一宽度。这样,手机可以通过调整第一显示对象和第二显示对象的位置关系,增大第一显示对象的宽度,从而为第一显示对象对应的待显示字符串的显示提供更大的宽度,以尽量使得待显示字符串能够在一行内完整显示,避免待显示字符串在显示时被截断。
并且,在本申请实施例提供的方案中,由于待显示字符串并未在第一显示对象中 换行,因而并不会像现有技术那样影响待显示字符串的可识别性,也不会像现有技术那样由于显示对象变形而影响显示对象及界面的美观和用户的使用体验。
其中,手机确定第一显示对象对应的待显示字符串的长度是否大于第一界面上的第一显示对象的第一宽度可以包括:手机确定第一显示对象对应的待显示字符串对应的第一尺寸;手机确定第一界面上第一显示对象的第一宽度对应的第二尺寸;若第一尺寸大于第二尺寸,则手机可以确定第一显示对象对应的待显示字符串的长度大于第一界面上第一显示对象的第一宽度。其中,第一尺寸和第二尺寸可以通过像素点的数量来表示。
在另一种可能的实现方式中,手机确定第一显示对象对应的待显示字符串的长度是否大于第一界面上的第一显示对象的第一宽度可以包括:手机确定第一显示对象对应的待显示字符串包括的第一字符数量;手机根据分辨率确定第一界面上第一显示对象的第一宽度可以容纳的第二字符数量;若第一字符数量大于第二字符数量,则手机确定第一显示对象对应的待显示字符串的长度大于第一界面上第一显示对象的第一宽度。其中,手机的分辨率不同,第一界面上第一显示对象的宽度可以容纳的第二字符数量也不同。
在本申请实施例中,第一界面上的第一显示对象和第二显示对象具有第一位置关系可以包括:第一界面上的第一显示对象和第二显示对象在同一水平方向上平行排布。这样,第一显示对象和第二显示对象平行排布,且第一显示对象的高度对应的区域和第二显示对象的高度对应的区域在竖直方向上有重叠。示例性的,在同一水平方向上平行排布的第一显示对象31和第二显示对象32的示意图可以参见图4a或图6a。其中,在图4a中,第一显示对象31和第二显示对象32在同一水平方向上对齐排布。图6a中,34表示水平方向,35表示竖直方向。
当第一显示对象和第二显示对象在同一水平方向上平行排布时,由于同一水平方向上还设置有第二显示对象,因而受到第二显示对象的宽度的限制,第一显示对象的宽度较小,从而容易使得待显示字符串在显示时被截断。
其中,第二界面上的第一显示对象和第二显示对象具有第二位置关系可以包括:第二界面上的第一显示对象和第二显示对象不在同一水平方向上平行排布。这样,第二位置关系不满足第一显示对象和第二显示对象平行排布,或第一显示对象的高度对应的区域和第二显示对象的高度对应的区域在竖直方向上有重叠中的至少一个。
当第一显示对象和第二显示对象不在同一水平方向上平行排布时,由于可以减小或避免第二显示对象的宽度对第一显示对象的宽度的影响,因而第一显示对象的宽度可以增大,从而可以容纳更多的待显示字符串的内容,尽量避免第一显示对象对应的待显示字符串在显示时被截断。
示例性的,参见图4d,第二界面上的第一显示对象31和第二显示对象32不在同一水平方向上平行排布可以包括:第二界面上的第一显示对象31和第二显示对象32在同一竖直方向上对齐排布。
示例性的,参见图6b,第二界面上的第一显示对象31和第二显示对象32不在同一水平方向上平行排布可以包括:第二界面上的第一显示对象31和第二显示对象32 在竖直方向上呈阶梯形排布。
示例性的,参见图6c,第二界面上的第一显示对象31和第二显示对象32不在同一水平方向上平行排布可以包括:第二界面上的第一显示对象31和第二显示对象32沿着同一斜线方向平行排布。
示例性的,参见图6d,第二界面上的第一显示对象31和第二显示对象32不在同一水平方向上平行排布可以包括:第二界面上的第一显示对象31和第二显示对象32沿着不同斜线方向排布。
与图4a或图6a所示的情况相比,当第一显示对象31和第二显示对象32具有如图4d、图6b-图6d所示的位置关系时,第二显示对象32的宽度对第一显示对象的宽度31没有影响或者影响较小,因而第一显示对象31的宽度可以较大,可以为待显示字符串的显示提供更大的宽度,尽量避免待显示字符串在显示时被截断。
另外,在本申请实施例中,在第二界面上,第一显示对象和第二显示对象的宽度可以不同。或者,在另外的实现方式中,在第二界面上,第一显示对象和第二显示对象的高度和宽度相同,即第一显示对象和第二显示对象可以保持相同的大小。这样,可以更符合用户的审美习惯,从而可以提高用户的使用体验。本申请实施例将以该种情况为例进行说明。
具体的,参见图7,在步骤201中,手机在第二界面上显示第一显示对象和第二显示对象可以包括:
202、手机确定在第一界面上第一显示对象所在区域的有效显示空间的宽度。
其中,在一种情况下,第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的宽度和第二显示对象的宽度之和。示例性的,如图4a所示的第一界面上第一显示对象所在区域的有效显示空间的宽度33可以如图8a所示。
在另一种情况下,第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的宽度、第二显示对象的宽度、以及第一显示对象和第二显示对象分别与界面边界之间的间隙之和。示例性的,如图4a所示的第一界面上第一显示对象31所在区域的有效显示空间的宽度33可以如图8b所示。
在另一种情况下,第一界面上第一显示对象所在区域的有效显示空间的宽度可以包括第一界面上第一显示对象的高度对应的水平方向上所有有效显示空间的宽度。示例性的,如图4a所示的第一界面上第一显示对象31所在区域的有效显示空间的宽度33可以如图8c所示。
与图8b中的有效显示空间相比,图8c中的有效显示空间的宽度还包括第一显示对象31和第二显示对象32与界面边界之间的间隙。
需要说明的是,与第一界面上第一显示对象的第一宽度相比,当手机在第二界面上显示第一显示对象时,由于减少了第二显示对象的宽度对第一显示对象的宽度的影响,因而第二界面上第一显示对象的宽度增大了,并且增大后的第一显示对象的长度小于或者等于有效显示空间的宽度,因而手机可以根据第一显示对象对应的待显示字符串的长度与有效显示空间的宽度的大小关系,通过以下步骤203-211在第二界面上 显示第一显示对象和第二显示对象。
203、若第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,则手机在第二界面上显示第一显示对象和第二显示对象。
当第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度时,第一显示对象对应的大显示字符串的长度可能小于或者等于增大后的第一显示对象的宽度,增大后的第一显示对象的宽度可能可以容纳完整的第一显示对象对应的待显示字符串,第一显示对象对应的待显示字符串在显示时不会被第一显示对象的边框截断。此时,手机可以在第二界面上显示第一显示对象和第二显示对象。并且,第一显示对象的边框内显示的内容为第一显示对象对应的待显示字符串。
例如,参见图4d,第一显示对象31对应的待显示字符串的长度小于第一显示对象31的宽度,第一显示对象对应的待显示字符串在显示时没有被截断。
进一步地,在步骤201中,手机在第二界面上显示第一显示对象和第二显示对象还可以包括:
204、若第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则手机缩小目标显示对象对应的待显示字符串的字号。
其中,目标显示对象包括第一显示对象,目标显示对象具体可以为第一显示对象,或者,目标显示对象具体可以为第一显示对象和第二显示对象。
由于增大后的第一显示对象的宽度小于或者等于有效显示空间的宽度,因而若第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则第一显示对象对应的待显示字符串的长度一定大于增大后的第一显示对象的宽度,即增大后的第一显示对象的宽度仍然不能容纳完整的第一显示对象的待显示字符串,第一显示对象对应的待显示字符串在显示时仍会被第一显示对象的边框截断。
示例性的,参见图9a,第一界面上第一显示对象31对应的待显示字符串为“VERIFY”,由于界面内容语言种类的变化;参见图9b,第一显示对象31对应的待显示字符串为“好的,我已经知道接入网络了”;参见图9c,第一显示对象31对应的待显示字符串的长度大于有效显示空间的宽度33。
因而,手机可以通过缩小第一显示对象对应的待显示字符串的字号,或者缩小第一显示对象和第二显示对象分别对应的待显示字符串的字号,以减小第一显示对象对应的待显示字符串的长度,从而使得增大后的第一显示对象可以容纳更多的第一显示对象对应的待显示字符串的内容,以尽量避免第一显示对象对应的待显示字符串在显示时被第一显示对象的边框截断。
并且,在步骤204中,当目标显示对象包括第一显示对象和第二显示对象时,手机可以同时缩小第一显示对象和第二显示对象对应的待显示字符串的字号,以使得第一显示对象和第二显示对象对应的待显示字符串的字号的大小保持一致,从而在第二界面上显示第一显示对象和第二显示对象之后,可以使得第一显示对象和第二显示对象所在的第二界面更为美观,并且可以提高用户的使用体验。
示例性的,当图9c中的第一显示对象31对应的第一待显示字符串的字号为15sp时,参见图9d手机可以将第一显示对象31和第二显示对象32分别对应的待显示字符串的字号缩小为14sp。
205、若缩小字号后的第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度,则手机在第二界面上显示第一显示对象和第二显示对象。
由于目标显示对象包括第一显示对象或者包括第一显示对象和第二显示对象,因而在步骤204中缩小目标显示对象对应的待显示字符串的字号时,第一显示对象对应的待显示字符串的字号在步骤204中被缩小,当缩小字号后的第一显示对象对应的待显示字符串的长度小于或者等于有效显示空间的宽度时,缩小字号后的第一显示对象对应的待显示字符串的长度很可能小于或者等于增大后的第一显示对象的宽度,即增大后的第一显示对象可以容纳完整的第一显示对象对应的待显示字符串,因而手机可以在第二界面上显示第一显示对象和第二显示对象。这样,第一显示对象对应的待显示字符串在显示时不会被第一显示对象的边框截断。并且,第一显示对象的边框内显示的内容为第一显示对象对应的待显示字符串。
206、若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号大于预设字号,则手机继续缩小目标显示对象对应的待显示字符串的字号。
当第一显示对象对应的待显示字符串的字号在步骤204中被缩小后,若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则缩小字号后的第一显示对象对应的待显示字符串的长度一定大于增大后的第一显示对象的宽度。第一显示对象的宽度不能容纳完整的第一显示对象对应的待显示字符串。此时,若手机直接在第二界面上显示第一显示对象,则第一显示对象对应的待显示字符串在显示时将会被第一显示对象的边框截断。
因而,在该种情况下,手机可以不直接在第二界面上显示第一显示对象,而可以在缩小字号后的目标显示对象对应的待显示字符串的字号大于预设字号的条件下,继续缩小目标显示对象对应的待显示字符串的字号,以进一步减小第一显示对象对应的待显示字符串的长度,从而进一步提高第一显示对象可以容纳的第一显示对象对应的待显示字符串的长度。
示例性的,参见图9e,手机可以进一步将图9d所示场景中的第一显示对象31和第二显示对象32分别对应的待显示字符串的字号缩小为13sp。
当缩小后的目标显示对象对应的待显示字符串的字号等于预设字号时,手机可以执行以下步骤207,或者执行以下步骤208-步骤209。
207、若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,则手机在第二界面上显示第一显示对象和第二显示对象。
其中,这里的预设字号可以为目标显示对象对应的待显示字符串可以缩小到的最小字号,具体数值可以根据实际需要进行设定,例如预设字号可以为13sp。
当第一显示对象对应的待显示字符串的字号在步骤204中被缩小后,若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小后的目标显示对象对应的待显示字符串的字号等于预设字号,即目标显示对象对应的待显示字符串已经缩小到最小字号时,手机可以在第二界面上显示第一显示对象和第二显示对象。
在此种情况下,第一显示对象显示的内容为第一显示对象对应的待显示字符串,且待显示字符串在显示时被第一显示对象的边框截断。示例性的,参见图9f,缩小为预设字号后,“好的,我知道已经接入网络了”在显示时被截断。
208、若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小字号后的目标显示对象对应的待显示字符串的字号为预设字号,则手机将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度。
209、手机在第二界面上显示第一显示对象和第二显示对象。
在步骤208和步骤209中,当第一显示对象对应的待显示字符串的字号在步骤204中被缩小后,若缩小字号后的第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,且缩小后的目标显示对象对应的待显示字符串的字号等于预设字号,即目标显示对象对应的待显示字符串已经缩小到最小字号时,增大后的第一显示对象的宽度不能容纳完整的第一显示对象对应的待显示字符串,此时可以将第一显示对象对应的待显示字符串替换为长度小于增大后的第一显示对象的关联内容,从而使得第一显示对象可以容纳完整的关联内容,而不会使得关联内容第一显示对象的边框被截断。
需要说明的是,在步骤209中,第一显示对象的边框内显示的是待显示字符串的关联内容,而不是待显示字符串本身。
其中,待显示字符串的关联内容可以包括与第一显示对象对应的待显示字符串不同的另一字符串、表情符号或图片中的至少一种,另一字符串包括第一显示对象对应的待显示字符串的缩写。这样,关联内容的长度通常可以小于第一显示对象对应的待显示字符串的长度,因而关联内容的长度更容易小于或者等于有效显示空间的宽度。
在本申请实施例中,替换内容通常与第一显示对象对应的待显示字符串表示相同或相近的含义。示例性的,当第一显示对象对应的待显示字符串为“好的,我已经知道接入网络了”、“确定”或“继续”等时,替换内容可以是另一字符串“ok”(可以是与待显示字符串语言种类不同的字符串),也可以是一个笑脸的表情符号,例如“(*^▽^*)”,也可以是一个笑脸的图片,也可以是一个ok手势的图片等;当第一显示对象对应的待显示字符串为“上一步”时,替换内容可以是一个向左指的手势图片等;当第一显示对象对应的待显示字符串为“下一步”时,替换内容可以是一个向右指的手势图片等。
示例性的,将待显示字符串替换为关联内容后的第一显示对象31可以参见图10a。
此外,需要说明的是,在将第一显示对象对应的待显示字符串替换为关联内容后,第二显示对象中的字号可以保持为预设字号,也可以恢复到缩小前的字号,这里不作具体限定。并且,在将第一显示对象对应的待显示字符串替换为关联内容后,第二显示对象对应的待显示字符串也可以替换为其关联内容。示例性的,第一显示对象31和第二显示对象32对应的待显示字符串分别替换为其关联内容所对应的场景可以参见图10b。
在另外的实现方式中,在步骤202之后,手机在第二界面上显示第一显示对象和第二显示对象还可以包括:
210、若第一显示对象对应的待显示字符串的长度大于有效显示空间的宽度,则手 机将第一显示对象对应的待显示字符串替换为关联内容,关联内容的长度小于或者等于有效显示空间的宽度。
211、在第二界面上显示第一显示对象和第二显示对象。
其中,在步骤210和步骤211中,当第一显示对象对应的待显示字符串的长度大于步骤202中确定的有效显示空间的宽度时,第一显示对象对应的待显示字符串的长度一定大于增大后的第一显示对象的宽度,第一显示对象的宽度不能容纳完整的第一显示对象对应的待显示字符串,此时手机也可以将第一显示对象对应的待显示字符串替换为长度小于增大后的第一显示对象的关联内容,从而使得第一显示对象可以容纳完整的关联内容,而不会使得关联内容第一显示对象的边框被截断。
此外,在本申请实施例中,第一显示对象和第二显示对象可以对应同一关联显示对象组,即第一显示对象和第二显示对象是相关的显示对象。每个关联显示对象组中可以包括N个显示对象,该N个显示对象对应的待显示字符串的意义相近或相反,该N个显示对象在同一界面中的位置接近,且该N个显示对象的操作方式,这里的操作可以包括触摸方式或点击方式,触摸方式或点击方法可以包括单击、双击或长按等。
示例性的,关联显示对象组中的N个显示对象可以为同一对话框中包括的多个显示对象。第一显示对象和第二显示对象为同一对话框中的两个显示对象。在一种可能的实现方式中,N的取值为2,此时关联显示对象组中仅包括第一显示对象和第二显示对象。在另外的实现方式中,N的取值大于2,此时关联显示对象组中包括第一显示对象、第二显示对象以及其它的显示对象。例如,参见图11,关联显示对象组可以包括分别用于显示“下一页”、“取消”和“返回”的三个显示对象。第一显示对象和第二显示对象可以是图11所示的三个显示对象中的任意两个。关联显示对象组中的N个显示对象可以对应同一个显示对象类型,也可以对应不同的显示对象类型,这里不再赘述。举例来说,同一关联显示对象中的第一显示对象和第二显示对象还可以为以下任意一组相关的显示对象:确定和取消,继续和返回,进入和退出,上一步和下一步,或者,下一步和返回等。
具体的,电子设备可以保存有预设的关联显示对象组与多个显示对象的映射关系,根据该映射关系,手机可以确定第一显示对象和第二显示对象对应同一关联显示对象组。具体的,该映射关系可以保存在数据库或数据表中,手机通过搜索数据库中的数据或者查找数据表中的数据可以确定第一显示对象与对应的关联显示对象组中的其它显示对象的对应关系。
或者,第一显示对象对应的第一标识与第二显示对象对应的第二标识可以具有预设关联关系。例如,标识1和标识2具有预设的关联关系,第一显示对象对应的第一标识为标识1,第二显示对象对应的第二标识为标识2。或者,第一标识和第二标识具有预设关联关系还可以包括第一标识和第二标识相同。
需要说明的是,本申请上述实施例是以第一界面和第二界面上仅包括两个显示对象为例进行说明的。在其它实施例中,第一界面和第二界面上还可以包括第三显示对象。其中,当第一显示对象和第二显示对象对应同一个关联显示对象组,第三显示对象不对应该关联显示对象组时,参见图12,手机可以在第二界面38上将第一显示对象31和第二显示对象32的第一位置关系更新为第二位置关系,而保持第三显示对象 36在第一界面37中的位置不变。
在一种具体的实现方式中,手机可以在现有google包括的AlertController类的基础上,通过HwAlertController类继承AlertController类来进行布局控制,从而修改第一显示对象和第二显示对象的位置关系,以增大第一显示对象的宽度。具体的,手机可以通过HwAlertController的setUpView类对第一显示对象添加超长监听,当待显示字符串的长度超出第一显示对象的宽度时,修改第一显示对象与第二显示对象的位置关系。此外,手机还可以通过调用HwWidgetFactory.autoTextSize(Textview textview,Context context)类对目标显示对象对应的待显示字符串的字号进行缩小。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图13示出了上述实施例中涉及的电子设备40的一种可能的组成示意图,如图13所示,该电子设备40可以包括显示器41和一个或多个处理器42。其中,显示器41用于根据一个或多个处理器42的指示进行内容显示。处理器42可以用于执行图5所示的步骤200和步骤201。具体的,一个或多个处理器42可以用于指示显示器41显示第一界面,第一界面上包括第一显示对象和第二显示对象,第一界面上的第一显示对象和第二显示对象具有第一位置关系;响应于确定第一显示对象对应的待显示字符串的长度大于第一界面上的第一显示对象的第一宽度,确定在第二界面上显示第一显示对象和第二显示对象,第二界面上的第一显示对象和第二显示对象具有第二位置关系;其中,第二位置关系不同于第一位置关系,第二位置关系对应的第一显示对象的第二宽度大于第一位置关系对应的第一显示对象的第一宽度;并指示显示器41进行显示。
此外,处理器42还可以用于执行图7中的步骤202-步骤211,和/或用于本文所描述的技术的其它过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用对应各个功能划分各个功能模块的情况下,图14示出了上述实施例中涉及的电子设备50的另一种可能的结构示意图,电子设备50可以包括显示单元51和处理单元52,其中显示单元51的功能可以对应于图13中的显示器41的功能,处理单元52的功能可以对应于图13中的处理器42的功能。
当然,电子设备包括但不限于上述所列举的单元模块,例如,电子设备还可以包 括存储单元,该存储单元用于保存电子设备的程序代码和相关数据,如演示内容片段的索引与功能的标识的关联关系等。电子设备还可以包括通信单元,该通信单元可以包括用于向其他设备发送数据或者信号的发送单元,接收其他设备发送数据或者信号的接收单元等。并且,上述功能单元的具体所能够实现的功能也包括但不限于上述实例的方法步骤对应的功能,电子设备的其他单元的详细描述可以参考其所对应方法步骤的详细描述,本申请实施例这里不再赘述。
其中,处理单元52可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU),通用处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。存储单元可以是存储器。通信单元可以是收发器、RF电路或通信接口等。
当处理单元52为处理器,通信模块为RF电路,存储单元为存储器,显示单元51为显示器时,本申请实施例所提供的电子设备可以为图3所示的手机。其中,上述通信单元还可以包括WiFi模块和蓝牙模块。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以计算机程序产品的形式体现出来,该计算机程序产品存储在一个存储介质中,包括若干指令用以 使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (22)

  1. 一种显示处理方法,应用于电子设备,其特征在于,所述电子设备以第一位置关系在第一界面上显示第一显示对象和第二显示对象;
    响应于确定所述第一显示对象对应的待显示字符串的长度大于所述第一界面上所述第一显示对象的第一宽度,停止显示所述第一界面;
    在第二界面上以第二位置关系显示所述第一显示对象和所述第二显示对象;
    其中,所述第二位置关系不同于所述第一位置关系,所述第二位置关系对应的所述第一显示对象的第二宽度大于所述第一宽度。
  2. 根据权利要求1所述的方法,其特征在于,所述第一界面上的所述第一显示对象和所述第二显示对象具有第一位置关系包括:
    所述第一界面上的所述第一显示对象和所述第二显示对象在同一水平方向上平行排布;
    所述第二界面上的所述第一显示对象和所述第二显示对象具有第二位置关系包括:
    所述第二界面上的所述第一显示对象和所述第二显示对象不在同一水平方向上平行排布。
  3. 根据权利要求2所述的方法,其特征在于,所述第一界面和所述第二界面上的所述第一显示对象和所述第二显示对象不在同一水平方向上平行排布包括:
    所述第二界面上的所述第一显示对象和所述第二显示对象在同一竖直方向上对齐排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象在竖直方向上呈阶梯形排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象沿着同一斜线方向平行排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象沿着不同斜线方向排布。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述第二界面上,所述第一显示对象和所述第二显示对象的高度和宽度相同。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述在第二界面上显示所述第一显示对象和所述第二显示对象包括:
    确定在所述第一界面上所述第一显示对象所在区域的有效显示空间的宽度;
    若所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,则在第二界面上显示第一显示对象和第二显示对象;
    若所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,则缩小目标显示对象对应的待显示字符串的字号,所述目标显示对象为所述第一显示对象,或者,所述目标显示对象为所述第一显示对象和所述第二显示对象;
    若缩小字号后的所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,则在所述第二界面上显示所述第一显示对象和所述第二显示对象;
    若缩小字号后的所述第一显示对象对应的待显示字符串的长度大于所述有效显示 空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号大于预设字号,则继续缩小所述目标显示对象对应的待显示字符串的字号。
  6. 根据权利要求5所述的方法,其特征在于,所述在第二界面上显示所述第一显示对象和所述第二显示对象还包括:
    若缩小字号后的所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号为所述预设字号,则在所述第二界面上显示所述第一显示对象和所述第二显示对象;
    或者,若缩小字号后的所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号为所述预设字号,则将所述第一显示对象对应的待显示字符串替换为关联内容,所述关联内容的长度小于或者等于所述有效显示空间的宽度;
    在所述第二界面上显示所述第一显示对象和所述第二显示对象。
  7. 根据权利要求1-4任一项所述的方法,其特征在于,所述在第二界面上显示所述第一显示对象和所述第二显示对象包括:
    确定在所述第一界面上所述第一显示对象所在区域的有效显示空间的宽度;
    若所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,则在第二界面上显示第一显示对象和第二显示对象;
    若所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,则将所述第一显示对象对应的待显示字符串替换为关联内容,所述关联内容的长度小于或者等于所述有效显示空间的宽度;
    在所述第二界面上显示所述第一显示对象和所述第二显示对象。
  8. 根据权利要求6或7所述的方法,其特征在于,所述关联内容包括与所述第一显示对象对应的待显示字符串不同的另一字符串、表情符号或图片中的至少一种,所述另一字符串包括所述第一显示对象对应的待显示字符串的缩写。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一显示对象和所述第二显示对象对应同一关联显示对象组,所述电子设备保存有预设的关联显示对象组与多个显示对象的映射关系,或者,所述第一显示对象对应的第一标识与所述第二显示对象对应的第二标识具有预设关联关系。
  10. 根据权利要求9所述的方法,其特征在于,所述第一显示对象和所述第二显示对象为同一对话框中的显示对象。
  11. 一种电子设备,其特征在于,包括显示器和一个或多个处理器,所述显示器用于根据所述一个或多个处理器的指示进行内容显示;
    所述一个或多个处理器用于指示所述显示器显示第一界面,所述第一界面上包括第一显示对象和第二显示对象,所述第一界面上的所述第一显示对象和所述第二显示对象具有第一位置关系;
    响应于确定所述第一显示对象对应的待显示字符串的长度大于所述第一界面上的所述第一显示对象的第一宽度,确定在第二界面上显示所述第一显示对象和所述第二显示对象,所述第二界面上的所述第一显示对象和所述第二显示对象具有第二位置关系;其中,所述第二位置关系不同于所述第一位置关系,所述第二位置关系对应的所 述第一显示对象的第二宽度大于所述第一位置关系对应的所述第一显示对象的第一宽度;并指示所述显示器进行显示。
  12. 根据权利要求11所述的电子设备,其特征在于,所述第一界面上的所述第一显示对象和所述第二显示对象具有第一位置关系包括:
    所述第一界面上的所述第一显示对象和所述第二显示对象在同一水平方向上平行排布;
    所述第二界面上的所述第一显示对象和所述第二显示对象具有第二位置关系包括:
    所述第二界面上的所述第一显示对象和所述第二显示对象不在同一水平方向上平行排布。
  13. 根据权利要求12所述的电子设备,其特征在于,所述第二界面上的所述第一显示对象和所述第二显示对象不在同一水平方向上平行排布包括:
    所述第二界面上的所述第一显示对象和所述第二显示对象在同一竖直方向上对齐排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象在竖直方向上呈阶梯形排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象沿着同一斜线方向平行排布;
    或者,所述第二界面上的所述第一显示对象和所述第二显示对象沿着不同斜线方向排布。
  14. 根据权利要求11-13任一项所述的电子设备,其特征在于,在所述第二界面上,所述第一显示对象和所述第二显示对象的高度和宽度相同。
  15. 根据权利要求11-14任一项所述的电子设备,其特征在于,所述处理器还用于确定在所述第一界面上所述第一显示对象所在区域的有效显示空间的宽度;
    响应于确定所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,确定在所述第二界面上显示所述第一显示对象和所述第二显示对象;
    响应于确定所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,缩小目标显示对象对应的待显示字符串的字号,所述目标显示对象为所述第一显示对象,或者,所述目标显示对象为所述第一显示对象和所述第二显示对象;
    响应于确定缩小字号后的所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,确定在所述第二界面上显示所述第一显示对象和所述第二显示对象;
    响应于确定缩小字号后的所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号大于预设字号,继续缩小所述目标显示对象对应的待显示字符串的字号。
  16. 根据权利要求15所述的电子设备,其特征在于,所述处理器还用于,响应于确定缩小字号后的所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号为所述预设字号,确定在所述第二界面上显示所述第一显示对象和所述第二显示对象;
    或者,所述处理器还用于,响应于确定缩小字号后的所述第一显示对象对应的待 显示字符串的长度大于所述有效显示空间的宽度,且缩小字号后的所述目标显示对象对应的待显示字符串的字号为所述预设字号,将所述第一显示对象对应的待显示字符串替换为关联内容,所述关联内容的长度小于或者等于所述有效显示空间的宽度。
  17. 根据权利要求11-14任一项所述的电子设备,其特征在于,所述处理器还用于,确定在所述第一界面上所述第一显示对象所在区域的有效显示空间的宽度;
    响应于确定所述第一显示对象对应的待显示字符串的长度小于或者等于所述有效显示空间的宽度,确定在第二界面上显示第一显示对象和第二显示对象;
    响应于确定所述第一显示对象对应的待显示字符串的长度大于所述有效显示空间的宽度,将所述第一显示对象对应的待显示字符串替换为关联内容,所述关联内容的长度小于或者等于所述有效显示空间的宽度。
  18. 根据权利要求16或17所述的电子设备,其特征在于,所述关联内容包括与所述第一显示对象对应的待显示字符串不同的另一字符串、表情符号或图片中的至少一种,所述另一字符串包括所述第一显示对象对应的待显示字符串的缩写。
  19. 根据权利要求11-18任一项所述的电子设备,其特征在于,所述第一显示对象和所述第二显示对象对应同一关联显示对象组,所述电子设备保存有预设的关联显示对象组与多个显示对象的映射关系,或者,所述第一显示对象对应的第一标识与所述第二显示对象对应的第二标识具有预设关联关系。
  20. 一种电子设备,其特征在于,包括:一个或多个处理器、一个或多个存储器和显示器;
    所述一个或多个存储器、所述显示器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1-10任一项所述的显示处理方法;所述显示器,用于根据所述处理器的指示进行内容显示。
  21. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10任一项所述的显示处理方法。
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-10任一项所述的显示处理方法。
PCT/CN2017/106146 2017-10-09 2017-10-13 一种显示处理方法及电子设备 WO2019071594A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
KR1020207011052A KR102363499B1 (ko) 2017-10-09 2017-10-13 디스플레이 처리 방법 및 전자 디바이스
JP2020520095A JP2020537244A (ja) 2017-10-09 2017-10-13 表示処理方法および電子デバイス
RU2020115516A RU2741516C1 (ru) 2017-10-09 2017-10-13 Способ обработки отображения и электронное устройство
US16/754,598 US11137891B2 (en) 2017-10-09 2017-10-13 Display processing method and electronic device
CN201780080198.0A CN110114748A (zh) 2017-10-09 2017-10-13 一种显示处理方法及电子设备
EP17928779.2A EP3674865B1 (en) 2017-10-09 2017-10-13 Display processing method and electronic device
US17/477,235 US11693552B2 (en) 2017-10-09 2021-09-16 Display processing method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710931363.0 2017-10-09
CN201710931363 2017-10-09

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US16/754,598 A-371-Of-International US11137891B2 (en) 2017-10-09 2017-10-13 Display processing method and electronic device
US17/477,235 Continuation US11693552B2 (en) 2017-10-09 2021-09-16 Display processing method and electronic device

Publications (1)

Publication Number Publication Date
WO2019071594A1 true WO2019071594A1 (zh) 2019-04-18

Family

ID=66101209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/106146 WO2019071594A1 (zh) 2017-10-09 2017-10-13 一种显示处理方法及电子设备

Country Status (7)

Country Link
US (2) US11137891B2 (zh)
EP (1) EP3674865B1 (zh)
JP (1) JP2020537244A (zh)
KR (1) KR102363499B1 (zh)
CN (1) CN110114748A (zh)
RU (1) RU2741516C1 (zh)
WO (1) WO2019071594A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580907A (zh) * 2020-04-28 2020-08-25 浙江大华技术股份有限公司 一种ai属性显示方法、显示装置及计算机可读存储介质
CN112115708A (zh) * 2020-08-31 2020-12-22 深圳市镜玩科技有限公司 自适应标签显示方法、相关装置、设备及介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USD923646S1 (en) * 2018-09-11 2021-06-29 Rodan & Fields, Llc Display screen or portion thereof having a graphical user interface for scoring an individual
CN112445551A (zh) * 2019-08-27 2021-03-05 成都鼎桥通信技术有限公司 一种解决Textview控件自动换行问题的方法和装置
CN112988297A (zh) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 基于触摸屏的语言切换方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092082A1 (en) * 2006-10-13 2008-04-17 Kabushiki Kaisha Toshiba Mobile terminal
CN102027442A (zh) * 2008-05-13 2011-04-20 日本电气株式会社 便携式通信终端及其显示方法和程序
CN103870146A (zh) * 2012-12-17 2014-06-18 联想(北京)有限公司 一种信息处理方法及电子设备
CN106325709A (zh) * 2016-08-24 2017-01-11 广东小天才科技有限公司 一种截取屏幕内容的方法及装置

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0785216B2 (ja) 1992-02-07 1995-09-13 インターナショナル・ビジネス・マシーンズ・コーポレイション メニュー表示装置および方法
JP3367282B2 (ja) 1995-06-01 2003-01-14 富士ゼロックス株式会社 画像形成装置の画面入力インタフェース装置
BRPI0212375B1 (pt) 2001-09-07 2016-05-24 Intergraph Hardware Tech Co método para estabilizar uma imagem
AU2003266658A1 (en) * 2002-09-27 2004-05-04 Brother Kogyo Kabushiki Kaisha Text edition device and program
KR20050049762A (ko) 2003-11-24 2005-05-27 (주)코인텍 그래픽 프로그램에서의 버튼 생성 시스템 및 방법
US7730418B2 (en) * 2005-05-04 2010-06-01 Workman Nydegger Size to content windows for computer graphics
JP2007140986A (ja) 2005-11-18 2007-06-07 Canon Inc 表示装置、表示方法及びコンピュータプログラム
JP2007286742A (ja) 2006-04-13 2007-11-01 Ricoh Co Ltd 文書検索装置
KR20080041856A (ko) 2006-11-08 2008-05-14 팅크웨어(주) 메뉴 표시 방법
CN100504850C (zh) 2007-10-11 2009-06-24 金蝶软件(中国)有限公司 在目标区域内绘制字符串的方法及装置
JP2009282827A (ja) * 2008-05-23 2009-12-03 Kyocera Mita Corp 表示装置
US20100145676A1 (en) * 2008-12-09 2010-06-10 Qualcomm Incorporated Method and apparatus for adjusting the length of text strings to fit display sizes
CN101599264B (zh) 2009-07-15 2011-10-12 青岛海信移动通信技术股份有限公司 移动终端上显示字符的方法及相关装置
CN102207870B (zh) * 2011-06-08 2014-04-23 广东威创视讯科技股份有限公司 多语言版本的软件界面自适应方法及系统
TWI463361B (zh) 2011-07-13 2014-12-01 Compal Electronics Inc 觸控面板之局部控制方法與系統
US9557892B2 (en) * 2011-11-26 2017-01-31 Douzen, Inc. Systems and methods for organizing and displaying hierarchical data structures in computing devices
US20130263039A1 (en) * 2012-03-30 2013-10-03 Nokia Corporation Character string shortcut key
KR102187255B1 (ko) * 2013-09-30 2020-12-04 삼성전자주식회사 전자 장치의 디스플레이 방법 및 그 전자 장치
JP6037041B2 (ja) * 2013-10-18 2016-11-30 三菱電機株式会社 文字列表示装置
US10691332B2 (en) * 2014-02-28 2020-06-23 Samsung Electronics Company, Ltd. Text input on an interactive display
CN105786308A (zh) 2014-12-26 2016-07-20 阿里巴巴集团控股有限公司 字符串的显示方法和装置
CN105389083B (zh) 2015-10-29 2020-01-10 小米科技有限责任公司 大字体实现方法和装置、智能终端
CN105930034B (zh) * 2016-04-25 2019-03-15 北京小米移动软件有限公司 显示对话框的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092082A1 (en) * 2006-10-13 2008-04-17 Kabushiki Kaisha Toshiba Mobile terminal
CN102027442A (zh) * 2008-05-13 2011-04-20 日本电气株式会社 便携式通信终端及其显示方法和程序
CN103870146A (zh) * 2012-12-17 2014-06-18 联想(北京)有限公司 一种信息处理方法及电子设备
CN106325709A (zh) * 2016-08-24 2017-01-11 广东小天才科技有限公司 一种截取屏幕内容的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3674865A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580907A (zh) * 2020-04-28 2020-08-25 浙江大华技术股份有限公司 一种ai属性显示方法、显示装置及计算机可读存储介质
CN112115708A (zh) * 2020-08-31 2020-12-22 深圳市镜玩科技有限公司 自适应标签显示方法、相关装置、设备及介质

Also Published As

Publication number Publication date
KR102363499B1 (ko) 2022-02-15
US20200356245A1 (en) 2020-11-12
EP3674865A1 (en) 2020-07-01
US11693552B2 (en) 2023-07-04
CN110114748A (zh) 2019-08-09
US20220075516A1 (en) 2022-03-10
JP2020537244A (ja) 2020-12-17
KR20200052956A (ko) 2020-05-15
US11137891B2 (en) 2021-10-05
EP3674865B1 (en) 2023-12-06
EP3674865A4 (en) 2020-11-11
RU2741516C1 (ru) 2021-01-26

Similar Documents

Publication Publication Date Title
US11392271B2 (en) Electronic device having touchscreen and input processing method thereof
US11073983B2 (en) Display method and apparatus
US11093069B2 (en) Method and apparatus for performing a function based on a touch event and a relationship to edge and non-edge regions
WO2019071594A1 (zh) 一种显示处理方法及电子设备
EP3712742A1 (en) Electronic device and method for configuring display thereof
WO2021057337A1 (zh) 操作方法及电子设备
WO2020134744A1 (zh) 图标移动方法及移动终端
US20170199662A1 (en) Touch operation method and apparatus for terminal
WO2018233399A1 (zh) 显示方法、移动终端及计算机可读存储介质
TW201421350A (zh) 於外部顯示裝置上顯示觸控裝置之畫面的方法
US10481790B2 (en) Method and apparatus for inputting information by using on-screen keyboard
US20190266129A1 (en) Icon Search Method and Terminal
US20150186003A1 (en) Electronic device and method for displaying user interface thereof
US10055119B2 (en) User input method and apparatus in electronic device
US10409404B2 (en) Method of processing touch events and electronic device adapted thereto
US11681410B2 (en) Icon management method and terminal device
US11526320B2 (en) Multi-screen interface control method and terminal device
WO2021057242A1 (zh) 显示控制方法及电子设备
US20210216195A1 (en) Split-Screen Display Method for Terminal and Apparatus
KR102353919B1 (ko) 터치의 압력에 응답하여 지정된 동작을 수행하는 전자 장치 및 방법
EP3674867A1 (en) Human-computer interaction method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17928779

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017928779

Country of ref document: EP

Effective date: 20200325

ENP Entry into the national phase

Ref document number: 2020520095

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20207011052

Country of ref document: KR

Kind code of ref document: A