WO2023071441A1 - Method and apparatus for displaying letters in contact list, and terminal device - Google Patents
Method and apparatus for displaying letters in contact list, and terminal device Download PDFInfo
- Publication number
- WO2023071441A1 WO2023071441A1 PCT/CN2022/113250 CN2022113250W WO2023071441A1 WO 2023071441 A1 WO2023071441 A1 WO 2023071441A1 CN 2022113250 W CN2022113250 W CN 2022113250W WO 2023071441 A1 WO2023071441 A1 WO 2023071441A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- initial
- contact
- letter
- character
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 10
- 230000006870 function Effects 0.000 description 38
- 238000004891 communication Methods 0.000 description 23
- 238000012545 processing Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 20
- 238000010295 mobile communication Methods 0.000 description 17
- 238000007726 management method Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 10
- 238000013461 design Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000004438 eyesight Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27453—Directories allowing storage of additional subscriber data, e.g. metadata
- H04M1/27457—Management thereof, e.g. manual editing of data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27467—Methods of retrieving data
- H04M1/27475—Methods of retrieving data using interactive graphical means or pictorial representations
Definitions
- the embodiments of the present application relate to the technical field of smart terminals, and in particular to a method, device and terminal equipment for displaying letters in an address book.
- the terminal equipment for example: mobile communication equipment
- the mobile communication equipment displays the contact interface, and
- the letters from "A to Z" ("#" is searched as a special symbol) are displayed on the right edge of the contact interface as a search method for quickly filtering target contacts.
- the embodiment of the present application provides a method and device for displaying letters in the address book, and a terminal device.
- the embodiment of the present application also provides a computer-readable storage medium, so that in the contact interface of the terminal device, the display terminal device saves reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
- the embodiment of the present application provides a method for displaying letters in an address book, which is applied to a terminal device.
- the above method may include: the terminal device acquires first contact information; wherein, the above first contact information may be a contact information to be added to the address book of the terminal device, and the above first contact information includes the first contact The name of the person; then, the terminal device obtains the first letter of the name of the first contact. If the existing initials in the address book of the above-mentioned terminal device do not include the above-mentioned first initial, the terminal device determines the number of the first initial according to the sum of the first initial and the number of existing initials in the above-mentioned address book. The size of the first key hotspot area. Next, the terminal device can save the first contact information in the address book of the terminal device, and display the above-mentioned first contact information in the letter display area of the contact interface displayed on the terminal device according to the size of the hotspot area of the first button. letter.
- the terminal device may acquire second contact information; wherein, the second contact information may be another contact information to be added to the address book of the terminal device, and the second contact information includes the second contact information name; then, the terminal device obtains the second initial of the second contact name. If the existing initial letters in the address book of the above-mentioned terminal device do not include the second initial letter, the terminal device determines the first letter of the second initial letter based on the sum of the second initial letter and the number of existing initial letters in the above-mentioned address book.
- the terminal device can also save the above-mentioned second contact information in the address book of the terminal device, and according to the size of the hot spot area of the second button, display the second contact information in the letter display area of the contact interface displayed on the above-mentioned terminal device. two initials.
- the terminal device 100 obtains the contact information, it obtains the initials of the above-mentioned contact names, and then when the existing initials in the address book of the terminal device 100 do not include the acquired initials, according to The sum of the obtained initials and the number of existing initials in the address book of the terminal device 100, determining the size of the key hotspot area of the obtained initials, and finally storing the above-mentioned contact information in the address book of the terminal device 100, and According to the size of the key hotspot area, the initial letter obtained above is displayed in the letter display area of the contact interface displayed on the terminal device 100, so that only the contacts saved in the terminal device 100 can be displayed in the contact interface of the terminal device 100. reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
- the terminal device obtains the first initial of the first contact name
- the first initial in the address book of the above-mentioned terminal device does not include the first initial
- the first initial Sort with the initials already in the address book above. Then, according to the sum of the number of the first initial and the existing initials in the address book, determine the size of the first key hot spot area of the first initial, and determine the key hot area of the first initial according to the sorting result the first position of .
- the above-mentioned first initial is displayed according to the size and first position of the hot spot area of the first button.
- the terminal device may determine the size of the first key hotspot area of the first initial in the following manner: when the sum of the first initial and the number of existing initials in the address book is N , the above-mentioned letter display area is divided into N areas on average; the size of one area in the N areas is the size of the hot spot area of the first button; wherein, N is a positive integer.
- the terminal device may obtain the first letter of the first contact name in the following manner: First, identify the first letter of the first contact name; wherein, the first letter includes Chinese characters , a word composed of letters or other characters except the above-mentioned Chinese characters and words; then, the above-mentioned first character is alphabetized to obtain the letters included in the first character; finally, from the letters included in the above-mentioned first character Get the first initial.
- the terminal device alphabetizes the first character to obtain the letters included in the first character may be: when the first character is a Chinese character, obtain the Chinese pinyin of the Chinese character, and obtain the above-mentioned Chinese pinyin the letters included in; when the first character is a word, obtain the letters included in the above word; when the first character is other than Chinese characters and words, replace each of the above other characters with a predetermined character original characters; or keep the above other characters, obtain each original character included in the above other characters.
- the acquisition of the first contact information by the terminal device may be: reading the first contact information from the subscriber identity module card or internal memory of the terminal device; or detecting that the user displays the After the operation of scanning the business card icon in the contact interface, in response to the above operation, scan the electronic information code or take a picture of the business card through the camera of the terminal device to obtain the first contact information; or, detect the contact information displayed by the user on the above terminal device After the operation of creating a new contact icon in the human interface, in response to the above operation, display the new contact interface to the user, and obtain the first contact information input by the user in the new contact interface.
- the embodiment of the present application provides an apparatus for displaying letters in an address book, the apparatus is included in a terminal device, and the apparatus has the function of realizing the behavior of the terminal device in the first aspect and the possible implementation manners of the first aspect.
- the functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware.
- Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a receiving module or unit, a processing module or unit, a sending module or unit, and the like.
- the embodiment of the present application provides a terminal device, including: one or more processors; memory; multiple application programs; and one or more computer programs, wherein the above one or more computer programs are stored in the above-mentioned
- the above-mentioned one or more computer programs include instructions, and when the above-mentioned instructions are executed by the above-mentioned terminal device, the above-mentioned terminal device is made to perform the following steps: obtaining first contact information; wherein, the above-mentioned first contact information includes the first Contact name; obtain the first letter of the above-mentioned first contact name; if the first letter of the above-mentioned first letter in the address book of the above-mentioned terminal device does not include the above-mentioned first letter, then according to the first letter and the above-mentioned address book The sum of the numbers of the first letters determines the size of the hotspot area of the first button of the first letter; the above-mentioned first contact information is stored
- the above-mentioned instruction when executed by the above-mentioned terminal device, after the above-mentioned terminal device executes the step of obtaining the first initial of the name of the first contact, the following steps are also performed: if the above-mentioned terminal device If the existing initials in the address book do not include the above-mentioned first letter, sort the above-mentioned first initial with the existing initials in the above-mentioned address book; The sum of the numbers of the first letters determines the size of the hotspot area of the first key of the first letter, and according to the sorting result, determines the first position of the hotspot area of the key of the first initial; in the contact interface displayed by the above-mentioned terminal device According to the size of the hot spot area of the first key and the first position, the first letter is displayed in the letter display area.
- making the above-mentioned terminal device execute the step of determining the size of the first button hotspot area of the above-mentioned first initial includes: when the above-mentioned first initial and the above-mentioned When the sum of the number of existing initial letters in the address book is N, the above-mentioned letter display area is divided into N areas on average; the size of one area in the above-mentioned N areas is the size of the above-mentioned first button hot spot area; wherein, N is a positive integer.
- causing the above-mentioned terminal device to perform the step of obtaining the first initial of the first contact name includes: identifying the first letter of the first contact name in the above-mentioned A first character; wherein, the above-mentioned first character includes Chinese characters, words composed of letters, or other characters except the above-mentioned Chinese characters and words; the above-mentioned first character is alphabetized to obtain the letters included in the above-mentioned first character; Get the first initial from the letters included in the first initial above.
- the above-mentioned terminal device when the above-mentioned instruction is executed by the above-mentioned terminal device, the above-mentioned terminal device is made to perform alphabetization of the above-mentioned first initial character, and the step of obtaining the letters included in the above-mentioned first initial character includes: when the above-mentioned first character When a first character is a Chinese character, obtain the Chinese Pinyin of the above-mentioned Chinese character, and obtain the letters included in the above-mentioned Chinese Pinyin; when the above-mentioned first character is a word, obtain the letters included in the above-mentioned word; When other characters other than Chinese characters and words are used, each original character in the above-mentioned other characters is replaced with a predetermined character; or the above-mentioned other characters are retained, and each original character included in the above-mentioned other characters is obtained.
- causing the above-mentioned terminal device to perform the step of obtaining the first contact information includes: reading the first contact information from the subscriber identity module card or memory of the above-mentioned terminal device.
- an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the above-mentioned computer-readable storage medium, and when running on a computer, causes the computer to execute the method provided in the first aspect.
- an embodiment of the present application provides a computer program, which is used to execute the method provided in the first aspect when the above computer program is executed by a computer.
- all or part of the program in the fifth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
- FIG. 1 is a schematic diagram of a contact interface in the related art
- FIG. 2 is a schematic diagram of a user clicking on a letter on the right edge of a contact interface in the related art
- FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- FIG. 4(a) is a structural block diagram of the software system of the terminal device 100 provided by one embodiment of the present application;
- FIG. 4(b) is a schematic diagram of an interaction process in the terminal device 100 system provided by another embodiment of the present application.
- FIG. 5 is a flowchart of a method for displaying letters in an address book provided by an embodiment of the present application
- FIG. 6 is a schematic diagram of a contact interface in an embodiment of the present application.
- FIG. 7 is a flow chart of a method for displaying letters in an address book provided by another embodiment of the present application.
- FIG. 8 is a schematic diagram of a contact interface in another embodiment of the present application.
- FIG. 9 is a flowchart of a method for displaying letters in an address book provided in another embodiment of the present application.
- FIG. 10 is a flow chart of a method for displaying letters in an address book provided in another embodiment of the present application.
- FIG. 11 is a schematic diagram of identifying a contact name provided in an embodiment of the present application.
- Fig. 12 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
- FIG. 1 is a schematic diagram of a contact interface in the related art.
- Fig. 2 is a schematic diagram of the user clicking on the letters on the right edge of the contact interface in the related art.
- the display area of multiple letters can be covered, so that , when the user's fingers are large and/or walking, the click accuracy drops significantly; and, for users with poor eyesight and/or older age, it is necessary to find the letter they want to search among so many letters, The search efficiency is low and the user experience is poor.
- the embodiment of the present application provides a method for displaying the letters of the address book, which can automatically form a corresponding arrangement according to the initials of the surnames of the contacts, and display the initials of the contacts saved in the terminal device on the contact interface of the terminal device , reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
- the method for displaying letters in the address book provided in the embodiment of the present application can be applied to a terminal device, wherein the above-mentioned terminal device can be a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality ( virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, or personal digital assistants (personal digital assistants, PDAs); the embodiments of this application do not make specific types of terminal devices any restrictions.
- augmented reality augmented reality, AR
- VR virtual reality
- notebook computers notebook computers
- ultra-mobile personal computers ultra-mobile personal computers
- netbooks ultra-mobile personal computers
- PDAs personal digital assistants
- FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus, USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, Earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100 .
- the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- the processor 110 may obtain contact information, where the above contact information includes a contact name; then, the processor 110 may obtain the initial letter of the above contact name, if the contact list of the terminal device already has the initial letter does not include the acquired initials, then the sum of the acquired initials and the number of existing initials in the address book of the terminal device 100 can be used to determine the size of the key hotspot area of the acquired initials, and according to the above-mentioned key hotspot area In the letter display area of the contact interface displayed on the display screen 194, the initial letter obtained above is displayed.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, DCL).
- processor 110 may include multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to realize the touch function of the terminal device 100 .
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
- the processor 110 communicates with the camera 193 through a CSI interface to realize the shooting function of the terminal device 100 .
- the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal device 100 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
- the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the terminal device 100 .
- the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device 100 through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the terminal device 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the terminal device 100 may support one or more video codecs.
- the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- the NPU can quickly process input information and continuously learn by itself.
- Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the terminal device 100 may implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
- the terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the receiver 170B can be placed close to the human ear to receive the voice.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
- the terminal device 100 may be provided with at least one microphone 170C. In some other embodiments, the terminal device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
- the earphone interface 170D is used for connecting wired earphones.
- the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the touch sensor 180K is also called “touch device”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position of the display screen 194 .
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card.
- the SIM card can be connected and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 is also compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the terminal device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
- the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
- the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal device 100 .
- Fig. 4 (a) is a software structural block diagram of the terminal device 100 provided by one embodiment of the present application, as shown in Fig. 4 (a), the software structural block diagram of the terminal device 100 may include:
- a hardware layer 410 a hardware abstraction layer (hardware abstraction layer, HAL) 420 , a system runtime library 430 and an application layer 440 .
- HAL hardware abstraction layer
- the hardware layer 410 can realize obtaining the contact information from the subscriber identity module (subscriber identity module, SIM) card 411 or memory 412; the camera driver 421 in the HAL420 can drive the camera 442, use the camera 442 to take pictures or scan function, obtain Contact information; the application layer 440 may implement obtaining contact information from a system application 441 (for example: a contact application).
- SIM subscriber identity module
- the database 431 in the system runtime 430 can obtain the above-mentioned contact information, save the contact name in the above-mentioned contact information, identify the first Chinese character or first character of the above-mentioned contact name, and then alphabetize the first Chinese character or first character , extract the first letter from the first Chinese character or the letters included in the first character to generate a data set.
- the database 431 passes the above-mentioned data set to the UI layout module 432, and the initial letters in the data set are sorted by the UI layout module 432 to determine the size of the key hot spot area of each initial letter, and according to the size of the above-mentioned key hot spot area, in The letter display area in the UI interface displays the above initials.
- the system runtime library 430 includes functional modules related to graphic display, such as opengles and/or surfacemanager, etc., which can display the above initials on the UI interface.
- FIG. 4(b) is a schematic diagram of the interaction process in the terminal device 100 system provided by another embodiment of the present application. As shown in FIG. 4(b), the above-mentioned interaction process may include:
- the database 431 acquires contact information.
- the above-mentioned contact information can be obtained from the SIM card 411 or the internal memory 412; or, the above-mentioned contact information can be obtained by taking pictures or scanning functions of the camera 442; or, the above-mentioned contact information can be obtained from the system application 441 (for example: contact application).
- Step 402 the database 431 saves the contact name in the above contact information, identifies the first Chinese character or first character of the above contact name, and then alphabetizes the first Chinese character or first character, and extracts from the letters included in the first Chinese character or first character Initials generate datasets.
- Step 403 the database 431 transmits the above data set to the UI layout module 432 .
- Step 404 the UI layout module 432 sorts the initials in the above-mentioned data set, determines the size of the key hotspot area of each initial, and displays the above-mentioned initials in the letter display area in the UI interface according to the size of the key hotspot area .
- the method for displaying the letters of the address book provided in the embodiment of the present application can count the first letters of the contact names, and display the initial letters of the contact names saved in the terminal device 100 in the hotspot area by gradually increasing the method, and according to the UI design
- the position is adaptively distributed, so that the search efficiency can be improved.
- the above-mentioned hotspot area refers to the letter display area in the contact interface of the terminal device 100, after the letter display area is operated by the user, it can respond to the user's operation.
- Fig. 5 is the flowchart of the method for displaying the letters of the address book provided by one embodiment of the present application. As shown in Fig. 5, the method for displaying the letters of the above-mentioned address book may include:
- step 501 the terminal device 100 obtains contact information; wherein, the contact information includes a contact name.
- the terminal device 100 may obtain contact information as follows:
- the camera of the terminal device 100 After detecting the user's operation of scanning the business card icon in the contact interface displayed on the terminal device 100, in response to the above operation, the camera of the terminal device 100 scans the electronic information code or takes a picture of the business card to obtain contact information; wherein, the above electronic information
- the code can be a two-dimensional code or a barcode, which is not limited in this embodiment; or,
- the method of obtaining contact information is not limited to this, and may also be obtained through other methods, and the above other methods may include:
- touching between devices may include edge touching, touching between screens and/or rear case touching, and the like.
- This embodiment does not limit the manner of acquiring contact information.
- the terminal device 100 may perform an operation of acquiring contact information through the processor 110 .
- Step 502 acquiring the first letter of the contact name.
- Step 503 if the acquired initials do not include the acquired initials in the address book of the terminal device 100, then determine the number of the acquired initials according to the sum of the acquired initials and the number of existing initials in the above-mentioned address book. The size of the key hotspot area.
- the size of the key hotspot area of the acquired initial letter decreases as the number of letters increases.
- Step 504 save the contact information in the address book of the terminal device 100, and display the acquired initials in the letter display area of the contact interface displayed on the terminal device 100 according to the size of the key hotspot area.
- FIG. 6 is a schematic diagram of a contact interface in an embodiment of the present application.
- the letter display area of the contact interface can be as shown in FIG. As shown in the interface 61; if there are two contacts stored in the terminal device 100, the letter display area of the contact interface can be as shown in the interface 62 in Figure 6; if there are multiple contacts stored in the terminal device 100, the contact
- the letter display area of the human interface can be shown as interface 63 in FIG. 6 . It can be seen from the interface shown in FIG. 6 that the size of the key hotspot area of each initial letter decreases as the number of initial letters increases.
- FIG. 6 is only an example of the letter list on the right side of the contact interface, and does not constitute a limitation to the embodiment of the present application.
- the terminal device 100 obtains the contact information, it obtains the initials of the above-mentioned contact names, and then when the existing initials in the address book of the terminal device 100 do not include the acquired initials, according to The sum of the obtained initials and the number of existing initials in the address book of the terminal device 100, determining the size of the key hotspot area of the obtained initials, and finally storing the above-mentioned contact information in the address book of the terminal device 100, and According to the size of the key hotspot area, the initial letter obtained above is displayed in the letter display area of the contact interface displayed on the terminal device 100, so that only the contacts saved in the terminal device 100 can be displayed in the contact interface of the terminal device 100. reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
- Fig. 7 is a flowchart of a method for displaying letters in the address book provided by another embodiment of the present application. As shown in Fig. 7, in the embodiment shown in Fig. 5 of the present application, after step 502, it may also include:
- Step 701 if the existing initials in the address book of the terminal device 100 do not include the acquired initials, the terminal device 100 sorts the acquired initials with the existing initials in the terminal device 100's address book.
- the acquired initials and the existing initials in the address book of the terminal device 100 may be sorted in ascending order of A ⁇ Z/a ⁇ z, or in descending order of Z ⁇ A/z ⁇ a Sorting, this embodiment does not limit the sorting manner.
- Step 702 according to the sum of the acquired initials and the number of existing initials in the above-mentioned address book, determine the size of the key hotspot area of the above-mentioned initials obtained, and determine the key hotspots of the above-mentioned acquired initials according to the sorting result The location of the region.
- Step 703 in the letter display area of the contact interface displayed on the terminal device 100 , display the acquired initials according to the size and position of the key hotspot area.
- FIG. 8 is a schematic diagram of a contact interface in another embodiment of the present application. It can be seen from FIG. 8 that in the alphabet display area of the contact interface shown in FIG. 8 , initial letters are sorted in ascending order of AZ. If only one contact is stored in the terminal device 100, the letter display area of the contact interface can be as shown in the interface 81 in Figure 8; if two contacts are stored in the terminal device 100, the letter display area of the contact interface The area can be as shown in interface 82 in FIG. If there are n contacts, the letter display area of the contact interface may be as shown in interface 84 in FIG. 8 , where n is a positive integer.
- the size of the key hot spot area of the first letter acquired is determined according to the number of initial letters, and the position of the hot spot area of the key initial letter obtained is determined according to the sorting result of the initial letter, and then according to the size and the hot spot area of the key key In the above position, the above-mentioned acquired initials are displayed in the letter display area of the contact interface, so that the layout of the letter display area in the contact interface can be carried out according to the contacts stored in the terminal device 100, and the area of the letter key hotspot area is enlarged , which improves the search accuracy, thereby reducing the time for users to search for letters and improving efficiency; and the layout of the letter display area is more concise, reducing redundant information.
- Fig. 9 is a flow chart of a method for displaying letters in the address book provided by another embodiment of the present application. As shown in Fig. 9, in the embodiment shown in Fig. 5 of the present application, step 503 may include:
- Step 901 if the acquired initials are not included in the existing initials in the address book of the terminal device 100, when the sum of the acquired initials and the number of existing initials in the above-mentioned address book is N, the above-mentioned letters
- the display area is evenly divided into N areas; the size of one of the above N areas is the size of the key hot spot area of the initial letter obtained above; wherein, N is a positive integer.
- the letter display area in the contact interface displayed by the terminal device 100 can be divided into two halves to obtain two areas of the same size. Each area of is a key hotspot area of an initial letter.
- FIG. 10 is a flow chart of a method for displaying letters in an address book provided in another embodiment of the present application. As shown in FIG. 10 , in the embodiment shown in FIG. 5 of the present application, step 502 may include:
- step 1001 the terminal device 100 recognizes the first character in the above-mentioned contact name; wherein, the above-mentioned first character includes Chinese characters, words composed of letters, or other characters except the Chinese characters and words.
- FIG. 11 is a schematic diagram of identifying a contact name provided in an embodiment of the present application.
- the contact name is a Chinese name, for example: "Zhao xx”
- the first character is the Chinese character "Zhao”
- the contact name is an English name, for example: "Jack”
- the first character is the word "Jack” composed of characters
- the contact name is other characters except Chinese characters and words, For example: "@@”, the first character is "@@” other than Chinese characters and words.
- contact name is other characters than Chinese characters and words, "#" can be uniformly used as the initial character, or an actual character can also be used as the initial character, which is not limited in this embodiment.
- Step 1002 alphabetize the above initial character to obtain letters included in the above initial character.
- alphabetizing the above-mentioned first character to obtain the letters included in the above-mentioned first character may be: when the first character is a Chinese character, obtaining the Chinese pinyin of the above-mentioned Chinese character to obtain the letters included in the above-mentioned Chinese pinyin; when the first character is a word , to obtain the letters included in the above-mentioned words; when the first character is other characters except Chinese characters and words, replace each original character in the above-mentioned other characters with a predetermined character; or keep the above-mentioned other characters, and obtain the above-mentioned other characters included each original character of .
- the above-mentioned predetermined character can be set by itself during actual implementation, and this embodiment does not limit the above-mentioned predetermined character, for example, the above-mentioned predetermined character can be "#".
- the first character is a Chinese character, for example: " ⁇ ”, then obtain the Chinese pinyin of the above-mentioned Chinese character, and obtain the letter "ZHAO" included in the above-mentioned Chinese pinyin; if the first character is a word, for example : "Jack”, then get the character "Jack” included in the above words; if the first character is other characters than Chinese characters and words, for example: "@@”, you can keep the above other characters, and get the above other characters Include every original character "@@", or replace "@@” with "##".
- Step 1003 obtaining the initial letter from the letters included in the above initial character.
- the first-ranked letter that is, the first letter
- the first-ranked letter can be obtained from the above-mentioned letters.
- the interface 1104 in FIG. 11 what is displayed on the interface 1104 is the initial letter obtained from the letters included in the initial character displayed on the interface 1103 .
- the terminal device includes corresponding hardware and/or software modules for performing various functions.
- the application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
- the functional modules of the terminal device may be divided according to the foregoing method embodiments.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module.
- the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
- Fig. 12 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
- Fig. 12 shows a possible composition of the terminal device 1200 involved in the above embodiment Schematic diagram, as shown in FIG. 12, the terminal device 1200 may include: a receiving unit 1201, a processing unit 1202, and a sending unit 1203;
- the receiving unit 1201 can be used to support the terminal device 1200 to execute step 501, etc., and/or be used for other processes of the technical solution described in the embodiment of this application;
- the processing unit 1202 may be used to support the terminal device 1200 to execute steps 501 to 504, 701 to 703, 901, and 1001 to 1003, etc., and/or other methods for the technical solutions described in the embodiments of this application. process.
- the terminal device 1200 provided in this embodiment is used to implement the above-mentioned method for displaying letters in the address book, so the same effect as the above-mentioned method can be achieved.
- the terminal device 1200 may correspond to the terminal device 100 shown in FIG. 3 .
- the terminal device 1200 may include a processing module, a storage module and a communication module.
- the processing module may be used to control and manage the actions of the terminal device 1200, for example, may be used to support the terminal device 1200 to perform the steps performed by the receiving unit 1201, the processing unit 1202 and the sending unit 1203 above.
- the storage module can be used to support the terminal device 1200 to store program codes and data.
- the communication module may be used to support communication between the terminal device 1200 and other devices.
- the processing module may be a processor or a controller, which may realize or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application.
- the processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like.
- the storage module may be a memory.
- the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip.
- the terminal device 1200 involved in this embodiment may be a device having the structure shown in FIG. 3 .
- the embodiment of the present application also provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program. When it is run on a computer, the computer executes the program provided by the embodiments shown in FIGS. 5 to 11 of the present application. method.
- An embodiment of the present application further provides a computer program product, the computer program product includes a computer program, and when it is run on a computer, the computer executes the method provided in the embodiments shown in FIGS. 5 to 11 of the present application.
- "at least one” means one or more, and “multiple” means two or more.
- “And/or” describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural.
- the character “/” generally indicates that the contextual objects are an “or” relationship.
- “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
- At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, or Can be multiple.
- any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Library & Information Science (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Provided in the embodiments of the present application are a method and apparatus for displaying letters in a contact list, and a terminal device. The method for displaying letters in a contact list comprises: after acquiring information of a contact, a terminal device acquiring the first letter of the name of the contact; then, if the first letters that are already present in a contact list of the terminal device do not comprise the acquired first letter, determining the size of a key hotspot area of the acquired first letter according to the sum of the number of acquired first letters and the number of first letters that are already present in the contact list of the terminal device; and finally, displaying, according to the size of the key hotspot area, the acquired first letter in a letter display area in a contact interface that is displayed by the terminal device. Therefore, only the first letters of a contact that are saved in a terminal device can be displayed in a contact interface of the terminal device, thereby reducing the number of letters that are displayed on the right edge of the contact interface, increasing the arrangement distance between the letters, and improving the search efficiency.
Description
本申请实施例要求于2021年10月28日提交中国专利局、申请号为202111265579.0、发明名称为“通信录字母的显示方法、装置和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请实施例中。The embodiment of this application claims the priority of the Chinese patent application submitted to the China Patent Office on October 28, 2021, the application number is 202111265579.0, and the invention title is "Display method, device and terminal equipment for letters in the address book", the entire content of which is passed References are incorporated in the examples of this application.
本申请实施例涉及智能终端技术领域,特别涉及一种通信录字母的显示方法、装置和终端设备。The embodiments of the present application relate to the technical field of smart terminals, and in particular to a method, device and terminal equipment for displaying letters in an address book.
现有相关技术中,终端设备(例如:移动通信设备)上具有“联系人”的功能,用户操作移动通信设备所显示界面中“联系人”的标签之后,移动通信设备显示联系人界面,并在联系人界面的右侧边缘显示从“A~Z”(“#”作为特殊符号搜索)的字母作为快速筛选目标联系人的搜索方式。In the existing related art, the terminal equipment (for example: mobile communication equipment) has the function of "contact", after the user operates the label of "contact" in the interface displayed by the mobile communication equipment, the mobile communication equipment displays the contact interface, and The letters from "A to Z" ("#" is searched as a special symbol) are displayed on the right edge of the contact interface as a search method for quickly filtering target contacts.
由于不同厂家生产的移动通信设备的用户界面(user interface,UI)设计不同、移动通信设备的外观尺寸不同,因此这些字母的空间布局不同,字母大小也不同。在联系人界面的右侧边缘,这些字母是按照英文字母的先后顺序,从上到下依次排列,这就会导致有些手比较大、年龄比较大和/或视力较差的用户不太容易快速找到想要搜索的字母,使用体验较差。Since the user interface (user interface, UI) designs of mobile communication devices produced by different manufacturers are different, and the appearance and size of mobile communication devices are different, the spatial layout of these letters is different, and the size of the letters is also different. On the right edge of the contact interface, these letters are arranged in the order of English letters from top to bottom, which makes it difficult for some users with larger hands, older age and/or poor eyesight to find them quickly The letters you want to search for have a poor user experience.
发明内容Contents of the invention
本申请实施例提供了一种通信录字母的显示方法、装置和终端设备,本申请实施例还提供一种计算机可读存储介质,以实现在终端设备的联系人界面中,显示终端设备中保存的联系人的首字母,减少联系人界面右侧边缘显示的字母的数量,增大字母的排列距离,提高搜索效率。The embodiment of the present application provides a method and device for displaying letters in the address book, and a terminal device. The embodiment of the present application also provides a computer-readable storage medium, so that in the contact interface of the terminal device, the display terminal device saves reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
第一方面,本申请实施例提供了一种通信录字母的显示方法,应用于终端设备。上述方法可以包括:终端设备获取第一联系人信息;其中,上述第一联系人信息可以为待添加到终端设备的通信录中的一个联系人信息,上述第一联系人信息中包括第一联系人名称;然后,终端设备获取第一联系人名称的第一首字母。如果上述终端设备的通信录已有的首字母中不包括上述第一首字母,则终端设备根据第一首字母和上述通信录中已有的首字母的数量之和,确定第一首字母的第一按键热点区域的大小。接下来,终端设备可以将第一联系人信息保存在终端设备的通信录中,以及根据第一按键热点区域的大小,在终端设备显示的联系人界面中的字母显示区域,显示上述第一首字母。In a first aspect, the embodiment of the present application provides a method for displaying letters in an address book, which is applied to a terminal device. The above method may include: the terminal device acquires first contact information; wherein, the above first contact information may be a contact information to be added to the address book of the terminal device, and the above first contact information includes the first contact The name of the person; then, the terminal device obtains the first letter of the name of the first contact. If the existing initials in the address book of the above-mentioned terminal device do not include the above-mentioned first initial, the terminal device determines the number of the first initial according to the sum of the first initial and the number of existing initials in the above-mentioned address book. The size of the first key hotspot area. Next, the terminal device can save the first contact information in the address book of the terminal device, and display the above-mentioned first contact information in the letter display area of the contact interface displayed on the terminal device according to the size of the hotspot area of the first button. letter.
进而,终端设备可以获取第二联系人信息;其中,上述第二联系人信息可以为待添加到终端设备的通信录中的另一联系人信息,上述第二联系人信息中包括第二联系人名称;然后,终端设备获取第二联系人名称的第二首字母。如果上述终端设备的通信录已有的首字母中不包括第二首字母,则终端设备根据第二首字母和上述通信录中已有的首字母的数量之和,确定第二首字母的第二按键热点区域的大小;这时,由于首字母的数量增加了,而终端设备显示的联系人界面中的字母显示区域的大小是固定的,因此上述第二按键热点区域小于第一按键热点区域。接下来,终端设备同样可以将上述第二联系人信息保存在终端设备的通信录中,以及根据第二按键热点区域的大小,在上述终端设备显示的联系人界面中的字母显示区域,显示第二首字母。Furthermore, the terminal device may acquire second contact information; wherein, the second contact information may be another contact information to be added to the address book of the terminal device, and the second contact information includes the second contact information name; then, the terminal device obtains the second initial of the second contact name. If the existing initial letters in the address book of the above-mentioned terminal device do not include the second initial letter, the terminal device determines the first letter of the second initial letter based on the sum of the second initial letter and the number of existing initial letters in the above-mentioned address book. The size of the hotspot area of the second button; at this time, since the number of initial letters has increased, and the size of the letter display area in the contact interface displayed by the terminal device is fixed, the hotspot area of the second button is smaller than the hotspot area of the first button . Next, the terminal device can also save the above-mentioned second contact information in the address book of the terminal device, and according to the size of the hot spot area of the second button, display the second contact information in the letter display area of the contact interface displayed on the above-mentioned terminal device. two initials.
上述通信录字母的显示方法中,终端设备100获取联系人信息之后,获取上述联系人名称的首字母,然后当终端设备100的通信录已有的首字母中不包括获取的首字母时,根据获取的首字母和终端设备100通信录中已有的首字母的数量之和,确定获取的首字母的按键热点区域的大小,最后将上述联系人信息保存在终端设备100的通信录中,以及根据上述按键热点区域的大小,在终端设备100显示的联系人界面中的字母显示区域,显示上述获取的首字母,从而可以实现在终端设备100的联系人界面中,仅显示终端设备100中保存的联系人的首字母,减少联系人界面右侧边缘显示的字母的数量,增大字母的排列距离,提高搜索效率。In the above method for displaying letters in the address book, after the terminal device 100 obtains the contact information, it obtains the initials of the above-mentioned contact names, and then when the existing initials in the address book of the terminal device 100 do not include the acquired initials, according to The sum of the obtained initials and the number of existing initials in the address book of the terminal device 100, determining the size of the key hotspot area of the obtained initials, and finally storing the above-mentioned contact information in the address book of the terminal device 100, and According to the size of the key hotspot area, the initial letter obtained above is displayed in the letter display area of the contact interface displayed on the terminal device 100, so that only the contacts saved in the terminal device 100 can be displayed in the contact interface of the terminal device 100. reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
其中一种可能的实现方式中,终端设备获取第一联系人名称的第一首字母之后,如果上述终端设备的通信录已有的首字母中不包括第一首字母,则将第一首字母与上述通信录中已有的首字母进行排序。然后,根据第一首字母和上述通信录中已有的首字母的数量之和,确定第一首字母的第一按键热点区域的大小,以及根据排序结果,确定第一首字母的按键热点区域的第一位置。最后,在终端设备显示的联系人界面中的字母显示区域,根据第一按键热点区域的大小和第一位置,显示上述第一首字母。In one of the possible implementations, after the terminal device obtains the first initial of the first contact name, if the first initial in the address book of the above-mentioned terminal device does not include the first initial, then the first initial Sort with the initials already in the address book above. Then, according to the sum of the number of the first initial and the existing initials in the address book, determine the size of the first key hot spot area of the first initial, and determine the key hot area of the first initial according to the sorting result the first position of . Finally, in the letter display area of the contact interface displayed on the terminal device, the above-mentioned first initial is displayed according to the size and first position of the hot spot area of the first button.
其中一种可能的实现方式中,终端设备可以按照以下方式确定第一首字母的第一按键热点区域的大小:当第一首字母与上述通信录中已有的首字母的数量之和为N时,将上述字母显示区域平均划分为N个区域;这N个区域中一个区域的大小为第一按键热点区域的大小;其中,N为正整数。In one of the possible implementations, the terminal device may determine the size of the first key hotspot area of the first initial in the following manner: when the sum of the first initial and the number of existing initials in the address book is N , the above-mentioned letter display area is divided into N areas on average; the size of one area in the N areas is the size of the hot spot area of the first button; wherein, N is a positive integer.
其中一种可能的实现方式中,终端设备可以按照以下方式获取第一联系人名称的第一首字母:首先,识别第一联系人名称中的第一首字符;其中,第一首字符包括汉字、字母组成的单词或除上述汉字和单词之外的其他字符;然后,将上述第一首字符进行字母化,获得第一首字符包括的字母;最后,从上述第一首字符包括的字母中获取第一首字母。In one of the possible implementation manners, the terminal device may obtain the first letter of the first contact name in the following manner: First, identify the first letter of the first contact name; wherein, the first letter includes Chinese characters , a word composed of letters or other characters except the above-mentioned Chinese characters and words; then, the above-mentioned first character is alphabetized to obtain the letters included in the first character; finally, from the letters included in the above-mentioned first character Get the first initial.
其中一种可能的实现方式中,终端设备将第一首字符进行字母化,获得第一首字符包括的字母可以为:当第一首字符为汉字时,获取汉字的汉语拼音,获得上述汉语拼音中包括的字母;当第一首字符为单词时,获得上述单词中包括的字母;当第一首字符为除汉字和单词之外的其他字符时,以预定字符替代上述其他字符中的每个原始字符;或者保留上述其他字符,获得上述其他字符中包括的每个原始字符。In one of the possible implementations, the terminal device alphabetizes the first character to obtain the letters included in the first character may be: when the first character is a Chinese character, obtain the Chinese pinyin of the Chinese character, and obtain the above-mentioned Chinese pinyin the letters included in; when the first character is a word, obtain the letters included in the above word; when the first character is other than Chinese characters and words, replace each of the above other characters with a predetermined character original characters; or keep the above other characters, obtain each original character included in the above other characters.
其中一种可能的实现方式中,终端设备获取第一联系人信息可以为:从上述终端设备的用户识别模块卡或内存中读取第一联系人信息;或者,检测到用户对上述终端设备显示的联系人界面中扫名片图标的操作之后,响应于上述操作,通过终端设备的相机扫描电子信息码或拍摄名片,以获取第一联系人信息;或者,检测到用户对上述终端设备显示的联系人界面中新建联系人图标的操作之后,响应于上述操作,向上述用户展示新建联系人界面,获取用户在上述新建联系人界面中输入的第一联系人信息。In one possible implementation manner, the acquisition of the first contact information by the terminal device may be: reading the first contact information from the subscriber identity module card or internal memory of the terminal device; or detecting that the user displays the After the operation of scanning the business card icon in the contact interface, in response to the above operation, scan the electronic information code or take a picture of the business card through the camera of the terminal device to obtain the first contact information; or, detect the contact information displayed by the user on the above terminal device After the operation of creating a new contact icon in the human interface, in response to the above operation, display the new contact interface to the user, and obtain the first contact information input by the user in the new contact interface.
第二方面,本申请实施例提供一种通信录字母的显示装置,该装置包含在终端设备中,该装置具有实现第一方面及第一方面的可能实现方式中终端设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,接收模块或单元、处理模块或单元、发送模块或单元等。In the second aspect, the embodiment of the present application provides an apparatus for displaying letters in an address book, the apparatus is included in a terminal device, and the apparatus has the function of realizing the behavior of the terminal device in the first aspect and the possible implementation manners of the first aspect. The functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware. Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a receiving module or unit, a processing module or unit, a sending module or unit, and the like.
第三方面,本申请实施例提供一种终端设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述终端设备执行时,使得上述终端设备执行以下步骤:获取第一联系人信息;其中,上述第一联系人信息中包括第一联系人名称;获取上述第一联系人名称的第一首字母;如果上述终端设备的通信录已有的首字母中不包括上述第一首字母,则根据第一首字母和上述通信录中已有的首字母的数量之和,确定第一首字母的第一按键热点区域的大小;将上述第一联系人信息保存在上述终端设备的通信录中,以及根据上述第一按键热点区域的大小,在上述终端设备显示的联系人界面中的字母显示区域,显示上述第一首字母;获取第二联系人信息;其中,上述第二联系人信息中包括第二联系人名称;获取上述第二联系人名称的第二首字母;如果上述终端设备的通信录已有的首字母中不包括上述第二首字母,则根据上述第二首字母和上述通信录中已有的首字母的数量之和,确定上述第二首字母的第二按键热点区域的大小;其中,上述第二按键热点区域小于上述第一按键热点区域;将上述第二联系人信息保存在上述终端设备的通信录中,以及根据上述第二按键热点区域的大小,在上述终端设备显示的联系人界面中的字母显示区域,显示上述第二首字母。In the third aspect, the embodiment of the present application provides a terminal device, including: one or more processors; memory; multiple application programs; and one or more computer programs, wherein the above one or more computer programs are stored in the above-mentioned In the memory, the above-mentioned one or more computer programs include instructions, and when the above-mentioned instructions are executed by the above-mentioned terminal device, the above-mentioned terminal device is made to perform the following steps: obtaining first contact information; wherein, the above-mentioned first contact information includes the first Contact name; obtain the first letter of the above-mentioned first contact name; if the first letter of the above-mentioned first letter in the address book of the above-mentioned terminal device does not include the above-mentioned first letter, then according to the first letter and the above-mentioned address book The sum of the numbers of the first letters determines the size of the hotspot area of the first button of the first letter; the above-mentioned first contact information is stored in the address book of the terminal device, and according to the size of the hotspot area of the first button , in the letter display area of the contact interface displayed by the above-mentioned terminal device, display the above-mentioned first initial; obtain the second contact information; wherein, the above-mentioned second contact information includes the name of the second contact; obtain the above-mentioned second The second initial of the contact name; if the existing initials in the address book of the above-mentioned terminal device do not include the above-mentioned second initial, according to the number of the above-mentioned second initial and the number of existing initials in the above-mentioned address book and, determining the size of the second button hotspot area of the second initial letter; wherein, the second button hotspot area is smaller than the first button hotspot area; storing the second contact information in the address book of the terminal device, And according to the size of the hotspot area of the second button, the second initial letter is displayed in the letter display area of the contact interface displayed on the terminal device.
其中一种可能的实现方式中,当上述指令被上述终端设备执行时,使得上述终端设备执行获取上述第一联系人名称的第一首字母的步骤之后,还执行以下步骤:如果上述终端设备的通信录已有的首字母中不包括上述第一首字母,则将上述第一首字母与上述通信录中已有的首字母进行排序;根据上述第一首字母和上述通信录中已有的首字母的数量之和,确定第一首字母的第一按键热点区域的大小,以及根据排序结果,确定第一首字母的按键热点区域的第一位置;在上述终端设备显示的联系人界面中的字母显示区域,根据上述第一按键热点区域的大小和上述第一位置,显示上述第一首字母。In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned terminal device, after the above-mentioned terminal device executes the step of obtaining the first initial of the name of the first contact, the following steps are also performed: if the above-mentioned terminal device If the existing initials in the address book do not include the above-mentioned first letter, sort the above-mentioned first initial with the existing initials in the above-mentioned address book; The sum of the numbers of the first letters determines the size of the hotspot area of the first key of the first letter, and according to the sorting result, determines the first position of the hotspot area of the key of the first initial; in the contact interface displayed by the above-mentioned terminal device According to the size of the hot spot area of the first key and the first position, the first letter is displayed in the letter display area.
其中一种可能的实现方式中,当上述指令被上述终端设备执行时,使得上述终端设备执行确定上述第一首字母的第一按键热点区域的大小的步骤包括:当上述第一首字母与上述通信录中已有的首字母的数量之和为N时,将上述字母显示区域平 均划分为N个区域;上述N个区域中一个区域的大小为上述第一按键热点区域的大小;其中,N为正整数。In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned terminal device, making the above-mentioned terminal device execute the step of determining the size of the first button hotspot area of the above-mentioned first initial includes: when the above-mentioned first initial and the above-mentioned When the sum of the number of existing initial letters in the address book is N, the above-mentioned letter display area is divided into N areas on average; the size of one area in the above-mentioned N areas is the size of the above-mentioned first button hot spot area; wherein, N is a positive integer.
其中一种可能的实现方式中,当上述指令被上述终端设备执行时,使得上述终端设备执行获取上述第一联系人名称的第一首字母的步骤包括:识别上述第一联系人名称中的第一首字符;其中,上述第一首字符包括汉字、字母组成的单词或除上述汉字和单词之外的其他字符;将上述第一首字符进行字母化,获得上述第一首字符包括的字母;从上述第一首字符包括的字母中获取第一首字母。In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned terminal device, causing the above-mentioned terminal device to perform the step of obtaining the first initial of the first contact name includes: identifying the first letter of the first contact name in the above-mentioned A first character; wherein, the above-mentioned first character includes Chinese characters, words composed of letters, or other characters except the above-mentioned Chinese characters and words; the above-mentioned first character is alphabetized to obtain the letters included in the above-mentioned first character; Get the first initial from the letters included in the first initial above.
其中一种可能的实现方式中,当上述指令被上述终端设备执行时,使得上述终端设备执行将上述第一首字符进行字母化,获得上述第一首字符包括的字母的步骤包括:当上述第一首字符为汉字时,获取上述汉字的汉语拼音,获得上述汉语拼音中包括的字母;当上述第一首字符为单词时,获得上述单词中包括的字母;当上述第一首字符为除上述汉字和单词之外的其他字符时,以预定字符替代上述其他字符中的每个原始字符;或者保留上述其他字符,获得上述其他字符中包括的每个原始字符。In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned terminal device, the above-mentioned terminal device is made to perform alphabetization of the above-mentioned first initial character, and the step of obtaining the letters included in the above-mentioned first initial character includes: when the above-mentioned first character When a first character is a Chinese character, obtain the Chinese Pinyin of the above-mentioned Chinese character, and obtain the letters included in the above-mentioned Chinese Pinyin; when the above-mentioned first character is a word, obtain the letters included in the above-mentioned word; When other characters other than Chinese characters and words are used, each original character in the above-mentioned other characters is replaced with a predetermined character; or the above-mentioned other characters are retained, and each original character included in the above-mentioned other characters is obtained.
其中一种可能的实现方式中,当上述指令被上述终端设备执行时,使得上述终端设备执行获取第一联系人信息的步骤包括:从上述终端设备的用户识别模块卡或内存中读取第一联系人信息;或者,检测到用户对上述终端设备显示的联系人界面中扫名片图标的操作之后,响应于上述操作,通过上述终端设备的相机扫描电子信息码或拍摄名片,以获取第一联系人信息;或者,检测到用户对上述终端设备显示的联系人界面中新建联系人图标的操作之后,响应于上述操作,向上述用户展示新建联系人界面,获取上述用户在上述新建联系人界面中输入的第一联系人信息。In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned terminal device, causing the above-mentioned terminal device to perform the step of obtaining the first contact information includes: reading the first contact information from the subscriber identity module card or memory of the above-mentioned terminal device. Contact information; or, after detecting the user’s operation of scanning the business card icon on the contact interface displayed by the above-mentioned terminal device, in response to the above-mentioned operation, scan the electronic information code or take a photo of the business card through the camera of the above-mentioned terminal device to obtain the first contact or, after detecting the user’s operation of creating a new contact icon in the contact interface displayed on the terminal device, in response to the above operation, display the new contact interface to the above user, and obtain the above user’s new contact icon in the above new contact interface. The entered primary contact information.
应当理解的是,本申请实施例的第二方面和第三方面与本申请实施例的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second aspect and the third aspect of the embodiment of the present application are consistent with the technical solution of the first aspect of the embodiment of the present application, and the beneficial effects obtained in each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
第四方面,本申请实施例提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面提供的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the above-mentioned computer-readable storage medium, and when running on a computer, causes the computer to execute the method provided in the first aspect.
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面提供的方法。In a fifth aspect, an embodiment of the present application provides a computer program, which is used to execute the method provided in the first aspect when the above computer program is executed by a computer.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, all or part of the program in the fifth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
图1为现有相关技术中联系人界面的示意图;FIG. 1 is a schematic diagram of a contact interface in the related art;
图2为现有相关技术中用户点击联系人界面右侧边缘字母的示意图;FIG. 2 is a schematic diagram of a user clicking on a letter on the right edge of a contact interface in the related art;
图3为本申请一个实施例提供的终端设备的结构示意图;FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图4(a)为本申请一个实施例提供的终端设备100的软件系统结构框图;FIG. 4(a) is a structural block diagram of the software system of the terminal device 100 provided by one embodiment of the present application;
图4(b)为本申请另一个实施例提供的终端设备100系统内的交互过程示意图;FIG. 4(b) is a schematic diagram of an interaction process in the terminal device 100 system provided by another embodiment of the present application;
图5为本申请一个实施例提供的通信录字母的显示方法的流程图;FIG. 5 is a flowchart of a method for displaying letters in an address book provided by an embodiment of the present application;
图6为本申请一个实施例中联系人界面的示意图;FIG. 6 is a schematic diagram of a contact interface in an embodiment of the present application;
图7为本申请另一个实施例提供的通信录字母的显示方法的流程图;FIG. 7 is a flow chart of a method for displaying letters in an address book provided by another embodiment of the present application;
图8为本申请另一个实施例中联系人界面的示意图;FIG. 8 is a schematic diagram of a contact interface in another embodiment of the present application;
图9为本申请再一个实施例提供的通信录字母的显示方法的流程图;FIG. 9 is a flowchart of a method for displaying letters in an address book provided in another embodiment of the present application;
图10为本申请再一个实施例提供的通信录字母的显示方法的流程图;FIG. 10 is a flow chart of a method for displaying letters in an address book provided in another embodiment of the present application;
图11为本申请一个实施例中提供的识别联系人名称的示意图;FIG. 11 is a schematic diagram of identifying a contact name provided in an embodiment of the present application;
图12为本申请另一个实施例提供的终端设备的结构示意图。Fig. 12 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application, and are not intended to limit the present application.
现有相关技术中,在终端设备联系人界面的右侧边缘会出现从“A~Z”(“#”作为特殊符号搜索)的字母作为快速筛选目标联系人的搜索方式,如图1所示,图1为现有相关技术中联系人界面的示意图。In the existing related technology, letters from "A to Z" ("#" as a special symbol search) will appear on the right edge of the contact interface of the terminal device as a search method for quickly filtering target contacts, as shown in Figure 1 , FIG. 1 is a schematic diagram of a contact interface in the related art.
参见图1,在终端设备的联系人界面的右侧边缘,26个英文字母按照从“A~Z”的顺序,从上到下依次排列。Referring to FIG. 1 , on the right edge of the contact interface of the terminal device, 26 English letters are arranged in order from "A to Z" from top to bottom.
图2为现有相关技术中用户点击联系人界面右侧边缘字母的示意图,从图2可以看出,当用户手指点击联系人界面的右侧边缘时,可以覆盖多个字母的显示区域,这样,当用户的手指较大和/或在行走时,点击准确度明显下降;并且,对于视力较差和/或年龄比较大的用户来说,需要在这么多字母里找到自己想要搜索的字母,搜索效率较低,使用体验较差。Fig. 2 is a schematic diagram of the user clicking on the letters on the right edge of the contact interface in the related art. As can be seen from Fig. 2, when the user's finger clicks on the right edge of the contact interface, the display area of multiple letters can be covered, so that , when the user's fingers are large and/or walking, the click accuracy drops significantly; and, for users with poor eyesight and/or older age, it is necessary to find the letter they want to search among so many letters, The search efficiency is low and the user experience is poor.
基于以上问题,本申请实施例提供一种通信录字母的显示方法,可以根据联系人姓氏首字母自动形成对应排列,在终端设备的联系人界面中,显示终端设备中保存的联系人的首字母,减少联系人界面右侧边缘显示的字母的数量,增大字母的排列距离,提高搜索效率。Based on the above problems, the embodiment of the present application provides a method for displaying the letters of the address book, which can automatically form a corresponding arrangement according to the initials of the surnames of the contacts, and display the initials of the contacts saved in the terminal device on the contact interface of the terminal device , reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
本申请实施例提供的通信录字母的显示方法可以应用于终端设备,其中,上述终端设备可以为智能手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或个人数字助理(personal digital assistant,PDA)等设备;本申请实施例对终端设备的具体类型不作任何限制。The method for displaying letters in the address book provided in the embodiment of the present application can be applied to a terminal device, wherein the above-mentioned terminal device can be a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality ( virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, or personal digital assistants (personal digital assistants, PDAs); the embodiments of this application do not make specific types of terminal devices any restrictions.
示例性的,图3为本申请一个实施例提供的终端设备的结构示意图,如图3所示,终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器 180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Exemplarily, FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 3 , the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus, USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, Earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100 . In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
具体地,处理器110可以获取联系人信息,其中,上述联系人信息中包括联系人名称;然后,处理器110可以获取上述联系人名称的首字母,如果终端设备的通信录已有的首字母中不包括获取的首字母,则可以根据获取的首字母和终端设备100通信录中已有的首字母的数量之和,确定获取的首字母的按键热点区域的大小,以及根据上述按键热点区域的大小,在显示屏194显示的联系人界面中的字母显示区域,显示上述获取的首字母。Specifically, the processor 110 may obtain contact information, where the above contact information includes a contact name; then, the processor 110 may obtain the initial letter of the above contact name, if the contact list of the terminal device already has the initial letter does not include the acquired initials, then the sum of the acquired initials and the number of existing initials in the address book of the terminal device 100 can be used to determine the size of the key hotspot area of the acquired initials, and according to the above-mentioned key hotspot area In the letter display area of the contact interface displayed on the display screen 194, the initial letter obtained above is displayed.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,DCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, DCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to realize the touch function of the terminal device 100 .
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。 MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface to realize the shooting function of the terminal device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the terminal device 100 . In other embodiments of the present application, the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备100供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device 100 through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块 可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194, N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 may implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a phone call or voice information, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In some other embodiments, the terminal device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM 卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the terminal device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal device 100 .
图4(a)为本申请一个实施例提供的终端设备100的软件结构框图,如图4(a)所示,终端设备100的软件结构框图可以包括:Fig. 4 (a) is a software structural block diagram of the terminal device 100 provided by one embodiment of the present application, as shown in Fig. 4 (a), the software structural block diagram of the terminal device 100 may include:
硬件层410、硬件抽象层(hardware abstraction layer,HAL)420、系统运行库430和应用层440。A hardware layer 410 , a hardware abstraction layer (hardware abstraction layer, HAL) 420 , a system runtime library 430 and an application layer 440 .
其中,硬件层410可以实现从用户识别模块(subscriber identity module,SIM)卡411或内存412中获取联系人信息;HAL420中的相机驱动421可以驱动相机442,使用相机442的拍照或扫描功能,获取联系人信息;应用层440可以实现从系统应用441(例如:联系人应用)中获取联系人信息。Wherein, the hardware layer 410 can realize obtaining the contact information from the subscriber identity module (subscriber identity module, SIM) card 411 or memory 412; the camera driver 421 in the HAL420 can drive the camera 442, use the camera 442 to take pictures or scan function, obtain Contact information; the application layer 440 may implement obtaining contact information from a system application 441 (for example: a contact application).
然后,系统运行库430中的数据库431可以获取上述联系人信息,保存上述联系人信息中的联系人名称,识别上述联系人名称的首汉字或首字符,进而将首汉字或首字符进行字母化,从首汉字或首字符包括的字母中提取首字母生成数据集。Then, the database 431 in the system runtime 430 can obtain the above-mentioned contact information, save the contact name in the above-mentioned contact information, identify the first Chinese character or first character of the above-mentioned contact name, and then alphabetize the first Chinese character or first character , extract the first letter from the first Chinese character or the letters included in the first character to generate a data set.
然后数据库431将上述数据集传递给UI布局模块432,由UI布局模块432将数据集中的首字母进行排序,确定每个首字母的按键热点区域的大小,以及根据上述按键热点区域的大小,在UI界面中的字母显示区域显示上述首字母。具体实现时,系统运行库430中包括与图形显示相关的功能模块,例如:opengles和/或surfacemanager等,可以实现将上述首字母显示在UI界面。Then the database 431 passes the above-mentioned data set to the UI layout module 432, and the initial letters in the data set are sorted by the UI layout module 432 to determine the size of the key hot spot area of each initial letter, and according to the size of the above-mentioned key hot spot area, in The letter display area in the UI interface displays the above initials. During specific implementation, the system runtime library 430 includes functional modules related to graphic display, such as opengles and/or surfacemanager, etc., which can display the above initials on the UI interface.
图4(b)为本申请另一个实施例提供的终端设备100系统内的交互过程示意图,如图4(b)所示,上述交互过程可以包括:FIG. 4(b) is a schematic diagram of the interaction process in the terminal device 100 system provided by another embodiment of the present application. As shown in FIG. 4(b), the above-mentioned interaction process may include:
步骤401,数据库431获取联系人信息。其中,上述联系人信息可以从SIM卡411或内存412中获取;或者,上述联系人信息可以通过相机442的拍照或扫描功能获取;或者,上述联系人信息可以从系统应用441(例如:联系人应用)中获取。In step 401, the database 431 acquires contact information. Wherein, the above-mentioned contact information can be obtained from the SIM card 411 or the internal memory 412; or, the above-mentioned contact information can be obtained by taking pictures or scanning functions of the camera 442; or, the above-mentioned contact information can be obtained from the system application 441 (for example: contact application).
步骤402,数据库431保存上述联系人信息中的联系人名称,识别上述联系人名称的首汉字或首字符,进而将首汉字或首字符进行字母化,从首汉字或首字符包括的字母中提取首字母生成数据集。Step 402, the database 431 saves the contact name in the above contact information, identifies the first Chinese character or first character of the above contact name, and then alphabetizes the first Chinese character or first character, and extracts from the letters included in the first Chinese character or first character Initials generate datasets.
步骤403,数据库431将上述数据集传递给UI布局模块432。Step 403 , the database 431 transmits the above data set to the UI layout module 432 .
步骤404,UI布局模块432将上述数据集中的首字母进行排序,确定每个首字母的按键热点区域的大小,以及根据上述按键热点区域的大小,在UI界面中的字母显示区域显示上述首字母。Step 404, the UI layout module 432 sorts the initials in the above-mentioned data set, determines the size of the key hotspot area of each initial, and displays the above-mentioned initials in the letter display area in the UI interface according to the size of the key hotspot area .
为了便于理解,本申请以下实施例将以具有图3所示结构的终端设备为例,结合附图,对本申请实施例提供的通信录字母的显示方法进行具体阐述。For ease of understanding, the following embodiments of the present application will take the terminal device with the structure shown in FIG. 3 as an example, and describe the method for displaying letters in the address book provided by the embodiments of the present application in detail with reference to the accompanying drawings.
本申请实施例提供的通信录字母的显示方法可以统计联系人姓氏的首字母,通过逐步增加的方法,将终端设备100中保存的联系人姓氏的首字母显示在热点区域,并根据UI设计的位置,进行自适应分布,从而可以提高搜索效率。其中,上述热点 区域是指终端设备100联系人界面中的字母显示区域,该字母显示区域在被用户操作之后,可以响应用户的操作。The method for displaying the letters of the address book provided in the embodiment of the present application can count the first letters of the contact names, and display the initial letters of the contact names saved in the terminal device 100 in the hotspot area by gradually increasing the method, and according to the UI design The position is adaptively distributed, so that the search efficiency can be improved. Wherein, the above-mentioned hotspot area refers to the letter display area in the contact interface of the terminal device 100, after the letter display area is operated by the user, it can respond to the user's operation.
图5为本申请一个实施例提供的通信录字母的显示方法的流程图,如图5所示,上述通信录字母的显示方法可以包括:Fig. 5 is the flowchart of the method for displaying the letters of the address book provided by one embodiment of the present application. As shown in Fig. 5, the method for displaying the letters of the above-mentioned address book may include:
步骤501,终端设备100获取联系人信息;其中,上述联系人信息中包括联系人名称。In step 501, the terminal device 100 obtains contact information; wherein, the contact information includes a contact name.
具体地,终端设备100获取联系人信息可以为:Specifically, the terminal device 100 may obtain contact information as follows:
从终端设备100的用户识别模块卡或内存中读取联系人信息;或者,Read contact information from the SIM card or memory of the terminal device 100; or,
检测到用户对终端设备100显示的联系人界面中扫名片图标的操作之后,响应于上述操作,通过终端设备100的相机扫描电子信息码或拍摄名片,以获取联系人信息;其中,上述电子信息码可以为二维码或条形码,本实施例对此不作限定;或者,After detecting the user's operation of scanning the business card icon in the contact interface displayed on the terminal device 100, in response to the above operation, the camera of the terminal device 100 scans the electronic information code or takes a picture of the business card to obtain contact information; wherein, the above electronic information The code can be a two-dimensional code or a barcode, which is not limited in this embodiment; or,
检测到用户对终端设备100显示的联系人界面中新建联系人图标的操作之后,响应于上述操作,向用户展示新建联系人界面,获取用户在上述新建联系人界面中输入的联系人信息。After detecting the user's operation on the new contact icon in the contact interface displayed by the terminal device 100, in response to the above operation, display the new contact interface to the user, and obtain the contact information input by the user in the above new contact interface.
另外,本实施例中,获取联系人信息的方式并不仅限于此,还可以通过其他方式获取,上述其他方式可以包括:In addition, in this embodiment, the method of obtaining contact information is not limited to this, and may also be obtained through other methods, and the above other methods may include:
1)通过蓝牙、WiFi和/或共享等方式从其他设备传输获取;1) Transmission and acquisition from other devices through Bluetooth, WiFi and/or sharing;
2)通过设备间触碰获取;其中,设备间触碰可以包括边缘触碰、屏幕间触碰和/或后壳触碰等。2) Acquisition by touching between devices; wherein, touching between devices may include edge touching, touching between screens and/or rear case touching, and the like.
本实施例对获取联系人信息的方式不作限定。This embodiment does not limit the manner of acquiring contact information.
具体实现时,终端设备100可以通过处理器110执行获取联系人信息的操作。During specific implementation, the terminal device 100 may perform an operation of acquiring contact information through the processor 110 .
步骤502,获取上述联系人名称的首字母。 Step 502, acquiring the first letter of the contact name.
步骤503,如果终端设备100的通信录已有的首字母中不包括获取的首字母,则根据获取的首字母和上述通信录中已有的首字母的数量之和,确定获取的首字母的按键热点区域的大小。 Step 503, if the acquired initials do not include the acquired initials in the address book of the terminal device 100, then determine the number of the acquired initials according to the sum of the acquired initials and the number of existing initials in the above-mentioned address book. The size of the key hotspot area.
具体地,由于终端设备100显示的联系人界面中的字母显示区域的大小是固定的,因此获取的首字母的按键热点区域的大小,随着字母数量的增加而减小。Specifically, since the size of the letter display area in the contact interface displayed by the terminal device 100 is fixed, the size of the key hotspot area of the acquired initial letter decreases as the number of letters increases.
步骤504,将上述联系人信息保存在终端设备100的通信录中,以及根据上述按键热点区域的大小,在终端设备100显示的联系人界面中的字母显示区域,显示上述获取的首字母。 Step 504, save the contact information in the address book of the terminal device 100, and display the acquired initials in the letter display area of the contact interface displayed on the terminal device 100 according to the size of the key hotspot area.
具体地,图6为本申请一个实施例中联系人界面的示意图,如图6所示,如果终端设备100中仅保存有一个联系人,则联系人界面的字母显示区域可以如图6中的界面61所示;如果终端设备100中保存有两个联系人,则联系人界面的字母显示区域可以如图6中的界面62所示;如果终端设备100中保存有多个联系人,则联系人界面的字母显示区域可以如图6中的界面63所示。从图6所示的界面可以看出,每个首字母的按键热点区域的大小,随着首字母数量的增加而减小。Specifically, FIG. 6 is a schematic diagram of a contact interface in an embodiment of the present application. As shown in FIG. 6, if only one contact is stored in the terminal device 100, the letter display area of the contact interface can be as shown in FIG. As shown in the interface 61; if there are two contacts stored in the terminal device 100, the letter display area of the contact interface can be as shown in the interface 62 in Figure 6; if there are multiple contacts stored in the terminal device 100, the contact The letter display area of the human interface can be shown as interface 63 in FIG. 6 . It can be seen from the interface shown in FIG. 6 that the size of the key hotspot area of each initial letter decreases as the number of initial letters increases.
当然,图6所示仅为联系人界面的右侧字母列表的一种示例,并不构成对本申请实施例的限定。Certainly, what is shown in FIG. 6 is only an example of the letter list on the right side of the contact interface, and does not constitute a limitation to the embodiment of the present application.
上述通信录字母的显示方法中,终端设备100获取联系人信息之后,获取上述联系人名称的首字母,然后当终端设备100的通信录已有的首字母中不包括获取的首字母时,根据获取的首字母和终端设备100通信录中已有的首字母的数量之和,确定获取的首字母的按键热点区域的大小,最后将上述联系人信息保存在终端设备100的通信录中,以及根据上述按键热点区域的大小,在终端设备100显示的联系人界面中的字母显示区域,显示上述获取的首字母,从而可以实现在终端设备100的联系人界面中,仅显示终端设备100中保存的联系人的首字母,减少联系人界面右侧边缘显示的字母的数量,增大字母的排列距离,提高搜索效率。In the above method for displaying letters in the address book, after the terminal device 100 obtains the contact information, it obtains the initials of the above-mentioned contact names, and then when the existing initials in the address book of the terminal device 100 do not include the acquired initials, according to The sum of the obtained initials and the number of existing initials in the address book of the terminal device 100, determining the size of the key hotspot area of the obtained initials, and finally storing the above-mentioned contact information in the address book of the terminal device 100, and According to the size of the key hotspot area, the initial letter obtained above is displayed in the letter display area of the contact interface displayed on the terminal device 100, so that only the contacts saved in the terminal device 100 can be displayed in the contact interface of the terminal device 100. reduce the number of letters displayed on the right edge of the contact interface, increase the arrangement distance of letters, and improve search efficiency.
图7为本申请另一个实施例提供的通信录字母的显示方法的流程图,如图7所示,本申请图5所示实施例中,步骤502之后,还可以包括:Fig. 7 is a flowchart of a method for displaying letters in the address book provided by another embodiment of the present application. As shown in Fig. 7, in the embodiment shown in Fig. 5 of the present application, after step 502, it may also include:
步骤701,如果终端设备100的通信录已有的首字母中不包括上述获取的首字母,则终端设备100将获取的首字母与终端设备100的通信录中已有的首字母进行排序。Step 701, if the existing initials in the address book of the terminal device 100 do not include the acquired initials, the terminal device 100 sorts the acquired initials with the existing initials in the terminal device 100's address book.
具体地,可以将获取的首字母与终端设备100的通信录中已有的首字母,按照A~Z/a~z升序的顺序进行排序,或者按照Z~A/z~a降序的顺序进行排序,本实施例对排序的方式不作限定。Specifically, the acquired initials and the existing initials in the address book of the terminal device 100 may be sorted in ascending order of A~Z/a~z, or in descending order of Z~A/z~a Sorting, this embodiment does not limit the sorting manner.
步骤702,根据获取的首字母和上述通信录中已有的首字母的数量之和,确定上述获取的首字母的按键热点区域的大小,以及根据排序结果,确定上述获取的首字母的按键热点区域的位置。Step 702, according to the sum of the acquired initials and the number of existing initials in the above-mentioned address book, determine the size of the key hotspot area of the above-mentioned initials obtained, and determine the key hotspots of the above-mentioned acquired initials according to the sorting result The location of the region.
步骤703,在终端设备100显示的联系人界面中的字母显示区域,根据上述按键热点区域的大小和位置,显示上述获取的首字母。 Step 703 , in the letter display area of the contact interface displayed on the terminal device 100 , display the acquired initials according to the size and position of the key hotspot area.
图8为本申请另一个实施例中联系人界面的示意图,从图8可以看出,图8所示的联系人界面的字母显示区域中,首字母按照A~Z升序的顺序进行排序。如果终端设备100中仅保存有一个联系人,则联系人界面的字母显示区域可以如图8中的界面81所示;如果终端设备100中保存有两个联系人,则联系人界面的字母显示区域可以如图8中的界面82所示;如果终端设备100中保存有4个联系人,则联系人界面的字母显示区域可以如图8中的界面83所示;如果终端设备100中保存有n个联系人,则联系人界面的字母显示区域可以如图8中的界面84所示,其中,n为正整数。FIG. 8 is a schematic diagram of a contact interface in another embodiment of the present application. It can be seen from FIG. 8 that in the alphabet display area of the contact interface shown in FIG. 8 , initial letters are sorted in ascending order of AZ. If only one contact is stored in the terminal device 100, the letter display area of the contact interface can be as shown in the interface 81 in Figure 8; if two contacts are stored in the terminal device 100, the letter display area of the contact interface The area can be as shown in interface 82 in FIG. If there are n contacts, the letter display area of the contact interface may be as shown in interface 84 in FIG. 8 , where n is a positive integer.
本实施例中,按照首字母的数量确定获取的首字母的按键热点区域的大小,按照首字母的排序结果确定上述获取的首字母的按键热点区域的位置,进而按照上述按键热点区域的大小和上述位置,在联系人界面中的字母显示区域显示上述获取的首字母,从而可以按照终端设备100保存的联系人,对联系人界面中的字母显示区域进行布局,扩大了字母按键热点区域的面积,提高了搜索准确度,进而可以缩减用户寻找字母的时间,提高效率;并且字母显示区域的布局画面更加简洁,减少了冗余信息。In this embodiment, the size of the key hot spot area of the first letter acquired is determined according to the number of initial letters, and the position of the hot spot area of the key initial letter obtained is determined according to the sorting result of the initial letter, and then according to the size and the hot spot area of the key key In the above position, the above-mentioned acquired initials are displayed in the letter display area of the contact interface, so that the layout of the letter display area in the contact interface can be carried out according to the contacts stored in the terminal device 100, and the area of the letter key hotspot area is enlarged , which improves the search accuracy, thereby reducing the time for users to search for letters and improving efficiency; and the layout of the letter display area is more concise, reducing redundant information.
图9为本申请再一个实施例提供的通信录字母的显示方法的流程图,如图9所示,本申请图5所示实施例中,步骤503可以包括:Fig. 9 is a flow chart of a method for displaying letters in the address book provided by another embodiment of the present application. As shown in Fig. 9, in the embodiment shown in Fig. 5 of the present application, step 503 may include:
步骤901,如果终端设备100的通信录已有的首字母中不包括获取的首字母,则 当获取的首字母与上述通信录中已有的首字母的数量之和为N时,将上述字母显示区域平均划分为N个区域;上述N个区域中的一个区域的大小为上述获取的首字母的按键热点区域的大小;其中,N为正整数。 Step 901, if the acquired initials are not included in the existing initials in the address book of the terminal device 100, when the sum of the acquired initials and the number of existing initials in the above-mentioned address book is N, the above-mentioned letters The display area is evenly divided into N areas; the size of one of the above N areas is the size of the key hot spot area of the initial letter obtained above; wherein, N is a positive integer.
举例来说,假设首字母的总数为2,即N为2,则可以将终端设备100显示的联系人界面中的字母显示区域二等分,获得两个大小相同的区域,这两个区域中的每个区域为一个首字母的按键热点区域。For example, assuming that the total number of initial letters is 2, that is, N is 2, then the letter display area in the contact interface displayed by the terminal device 100 can be divided into two halves to obtain two areas of the same size. Each area of is a key hotspot area of an initial letter.
图10为本申请再一个实施例提供的通信录字母的显示方法的流程图,如图10所示,本申请图5所示实施例中,步骤502可以包括:FIG. 10 is a flow chart of a method for displaying letters in an address book provided in another embodiment of the present application. As shown in FIG. 10 , in the embodiment shown in FIG. 5 of the present application, step 502 may include:
步骤1001,终端设备100识别上述联系人名称中的首字符;其中,上述首字符包括汉字、字母组成的单词或除所述汉字和单词之外的其他字符。In step 1001, the terminal device 100 recognizes the first character in the above-mentioned contact name; wherein, the above-mentioned first character includes Chinese characters, words composed of letters, or other characters except the Chinese characters and words.
具体地,图11为本申请一个实施例中提供的识别联系人名称的示意图,如图11中的界面1101和界面1102所示,当联系人名称为中文名,例如:“赵xx”时,首字符为汉字“赵”;当联系人名称为英文名,例如:“Jack”时,首字符为字符组成的单词“Jack”;而当联系人名称为除汉字和单词之外的其他字符,例如:“@@”时,首字符为除汉字和单词之外的其他字符“@@”。Specifically, FIG. 11 is a schematic diagram of identifying a contact name provided in an embodiment of the present application. As shown in interface 1101 and interface 1102 in FIG. 11, when the contact name is a Chinese name, for example: "Zhao xx", The first character is the Chinese character "Zhao"; when the contact name is an English name, for example: "Jack", the first character is the word "Jack" composed of characters; and when the contact name is other characters except Chinese characters and words, For example: "@@", the first character is "@@" other than Chinese characters and words.
需要说明的是,当联系人名称为除汉字和单词之外的其他字符时,可以统一使用“#”作为首字符,或者也可以使用实际字符作为首字符,本实施例对此不作限定。It should be noted that when the contact name is other characters than Chinese characters and words, "#" can be uniformly used as the initial character, or an actual character can also be used as the initial character, which is not limited in this embodiment.
步骤1002,将上述首字符进行字母化,获得上述首字符包括的字母。 Step 1002, alphabetize the above initial character to obtain letters included in the above initial character.
具体地,将上述首字符进行字母化,获得上述首字符包括的字母可以为:当首字符为汉字时,获取上述汉字的汉语拼音,获得上述汉语拼音中包括的字母;当首字符为单词时,获得上述单词中包括的字母;当首字符为除汉字和单词之外的其他字符时,以预定字符替代上述其他字符中的每个原始字符;或者保留上述其他字符,获得上述其他字符中包括的每个原始字符。其中,上述预定字符可以在具体实现时自行设定,本实施例对上述预定字符不作限定,举例来说,上述预定字符可以为“#”。Specifically, alphabetizing the above-mentioned first character to obtain the letters included in the above-mentioned first character may be: when the first character is a Chinese character, obtaining the Chinese pinyin of the above-mentioned Chinese character to obtain the letters included in the above-mentioned Chinese pinyin; when the first character is a word , to obtain the letters included in the above-mentioned words; when the first character is other characters except Chinese characters and words, replace each original character in the above-mentioned other characters with a predetermined character; or keep the above-mentioned other characters, and obtain the above-mentioned other characters included each original character of . Wherein, the above-mentioned predetermined character can be set by itself during actual implementation, and this embodiment does not limit the above-mentioned predetermined character, for example, the above-mentioned predetermined character can be "#".
具体地,参见图11中的界面1103,如果首字符为汉字,例如:“赵”,则获取上述汉字的汉语拼音,获得上述汉语拼音中包括的字母“ZHAO”;如果首字符为单词,例如:“Jack”,则获得上述单词中包括的字符“Jack”;如果首字符为除汉字和单词之外的其他字符,例如:“@@”,则可以保留上述其他字符,获得上述其他字符中包括的每个原始字符“@@”,或者以“##”替代“@@”。Specifically, referring to the interface 1103 in Fig. 11, if the first character is a Chinese character, for example: "赵", then obtain the Chinese pinyin of the above-mentioned Chinese character, and obtain the letter "ZHAO" included in the above-mentioned Chinese pinyin; if the first character is a word, for example : "Jack", then get the character "Jack" included in the above words; if the first character is other characters than Chinese characters and words, for example: "@@", you can keep the above other characters, and get the above other characters Include every original character "@@", or replace "@@" with "##".
步骤1003,从上述首字符包括的字母中获取首字母。 Step 1003, obtaining the initial letter from the letters included in the above initial character.
具体地,获得上述首字符包括的字母之后,即可从上述字母中获取排在第一位的字母,即为首字母。参见图11中的界面1104,界面1104显示的即为从界面1103显示的首字符包括的字母中获取的首字母。Specifically, after the letters included in the above-mentioned first characters are obtained, the first-ranked letter, that is, the first letter, can be obtained from the above-mentioned letters. Referring to the interface 1104 in FIG. 11 , what is displayed on the interface 1104 is the initial letter obtained from the letters included in the initial character displayed on the interface 1103 .
可以理解的是,上述实施例中的部分或全部步骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It can be understood that some or all of the steps or operations in the foregoing embodiments are only examples, and other operations or modifications of various operations may also be performed in the embodiment of the present application. In addition, various steps may be performed in different orders presented in the above embodiments, and it may not be necessary to perform all operations in the above embodiments.
可以理解的是,终端设备为了实现上述功能,其包含了执行各个功能相应的硬 件和/或软件模块。结合本申请所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the above functions, the terminal device includes corresponding hardware and/or software modules for performing various functions. Combining the algorithm steps of each example described in the embodiments disclosed in the application, the application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本实施例可以根据上述方法实施例对终端设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the functional modules of the terminal device may be divided according to the foregoing method embodiments. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
图12为本申请另一个实施例提供的终端设备的结构示意图,在采用对应各个功能划分各个功能模块的情况下,图12示出了上述实施例中涉及的终端设备1200的一种可能的组成示意图,如图12所示,该终端设备1200可以包括:接收单元1201、处理单元1202和发送单元1203;Fig. 12 is a schematic structural diagram of a terminal device provided by another embodiment of the present application. In the case of dividing each functional module corresponding to each function, Fig. 12 shows a possible composition of the terminal device 1200 involved in the above embodiment Schematic diagram, as shown in FIG. 12, the terminal device 1200 may include: a receiving unit 1201, a processing unit 1202, and a sending unit 1203;
其中,接收单元1201可以用于支持终端设备1200执行步骤501等,和/或用于本申请实施例所描述的技术方案的其他过程;Wherein, the receiving unit 1201 can be used to support the terminal device 1200 to execute step 501, etc., and/or be used for other processes of the technical solution described in the embodiment of this application;
处理单元1202可以用于支持终端设备1200执行步骤501~步骤504、步骤701~步骤703、步骤901,以及步骤1001~步骤1003等,和/或用于本申请实施例所描述的技术方案的其他过程。The processing unit 1202 may be used to support the terminal device 1200 to execute steps 501 to 504, 701 to 703, 901, and 1001 to 1003, etc., and/or other methods for the technical solutions described in the embodiments of this application. process.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, and will not be repeated here.
本实施例提供的终端设备1200,用于执行上述通信录字母的显示方法,因此可以达到与上述方法相同的效果。The terminal device 1200 provided in this embodiment is used to implement the above-mentioned method for displaying letters in the address book, so the same effect as the above-mentioned method can be achieved.
应当理解的是,终端设备1200可以对应于图3所示的终端设备100。其中,接收单元1201和发送单元1203的功能可以由图3所示的终端设备100中处理器110、天线1和移动通信模块150,和/或,由处理器110、天线2和无线通信模块160实现;处理单元1202的功能可以由图3所示的终端设备100中的处理器110实现。It should be understood that the terminal device 1200 may correspond to the terminal device 100 shown in FIG. 3 . Wherein, the functions of the receiving unit 1201 and the sending unit 1203 may be implemented by the processor 110, the antenna 1 and the mobile communication module 150 in the terminal device 100 shown in FIG. Implementation; the function of the processing unit 1202 may be implemented by the processor 110 in the terminal device 100 shown in FIG. 3 .
在采用集成的单元的情况下,终端设备1200可以包括处理模块、存储模块和通信模块。In the case of using an integrated unit, the terminal device 1200 may include a processing module, a storage module and a communication module.
其中,处理模块可以用于对终端设备1200的动作进行控制管理,例如,可以用于支持终端设备1200执行上述接收单元1201、处理单元1202和发送单元1203执行的步骤。存储模块可以用于支持终端设备1200存储程序代码和数据等。通信模块,可以用于支持终端设备1200与其他设备的通信。Wherein, the processing module may be used to control and manage the actions of the terminal device 1200, for example, may be used to support the terminal device 1200 to perform the steps performed by the receiving unit 1201, the processing unit 1202 and the sending unit 1203 above. The storage module can be used to support the terminal device 1200 to store program codes and data. The communication module may be used to support communication between the terminal device 1200 and other devices.
其中,处理模块可以是处理器或控制器,其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框、模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片和/或Wi-Fi芯片等与其他电子设备交互的设备。Wherein, the processing module may be a processor or a controller, which may realize or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application. The processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like. The storage module may be a memory. Specifically, the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉 及的终端设备1200可以为具有图3所示结构的设备。In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device 1200 involved in this embodiment may be a device having the structure shown in FIG. 3 .
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图11所示实施例提供的方法。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When it is run on a computer, the computer executes the program provided by the embodiments shown in FIGS. 5 to 11 of the present application. method.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图11所示实施例提供的方法。An embodiment of the present application further provides a computer program product, the computer program product includes a computer program, and when it is run on a computer, the computer executes the method provided in the embodiments shown in FIGS. 5 to 11 of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, or Can be multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that each unit and algorithm steps described in the embodiments disclosed herein can be realized by a combination of electronic hardware, computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In several embodiments provided in this application, if any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific implementation of the present application. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should be covered by the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.
Claims (14)
- 一种通信录字母的显示方法,应用于终端设备,其特征在于,包括:A method for displaying letters in an address book, applied to a terminal device, characterized in that it includes:获取第一联系人信息;其中,所述第一联系人信息中包括第一联系人名称;Obtaining first contact information; wherein, the first contact information includes a first contact name;获取所述第一联系人名称的第一首字母;obtaining the first letter of the name of the first contact;如果所述终端设备的通信录已有的首字母中不包括所述第一首字母,则根据所述第一首字母和所述通信录中已有的首字母的数量之和,确定所述第一首字母的第一按键热点区域的大小;If the existing initials in the address book of the terminal device do not include the first initial, then determine the The size of the hotspot area of the first key of the first letter;将所述第一联系人信息保存在所述终端设备的通信录中,以及根据所述第一按键热点区域的大小,在所述终端设备显示的联系人界面中的字母显示区域,显示所述第一首字母;saving the first contact information in the address book of the terminal device, and displaying the first contact information in the letter display area of the contact interface displayed on the terminal device according to the size of the hot spot area of the first key. first letter;获取第二联系人信息;其中,所述第二联系人信息中包括第二联系人名称;Obtaining second contact information; wherein, the second contact information includes a second contact name;获取所述第二联系人名称的第二首字母;obtaining the second initial of the name of the second contact;如果所述终端设备的通信录已有的首字母中不包括所述第二首字母,则根据所述第二首字母和所述通信录中已有的首字母的数量之和,确定所述第二首字母的第二按键热点区域的大小;其中,所述第二按键热点区域小于所述第一按键热点区域;If the existing initial letters in the address book of the terminal device do not include the second initial letter, then according to the sum of the second initial letter and the number of existing initial letters in the address book, the The size of the hot spot area of the second key of the second initial; wherein, the hot spot area of the second key is smaller than the hot spot area of the first key;将所述第二联系人信息保存在所述终端设备的通信录中,以及根据所述第二按键热点区域的大小,在所述终端设备显示的联系人界面中的字母显示区域,显示所述第二首字母。saving the second contact information in the address book of the terminal device, and according to the size of the hot spot area of the second button, displaying the second initial.
- 根据权利要求1所述的方法,其特征在于,所述获取所述第一联系人名称的第一首字母之后,还包括:The method according to claim 1, wherein after said obtaining the first initial of the first contact name, further comprising:如果所述终端设备的通信录已有的首字母中不包括所述第一首字母,则将所述第一首字母与所述通信录中已有的首字母进行排序;If the existing initials in the address book of the terminal device do not include the first initial, sorting the first initial with the existing initials in the address book;根据所述第一首字母和所述通信录中已有的首字母的数量之和,确定所述第一首字母的第一按键热点区域的大小,以及根据排序结果,确定所述第一首字母的按键热点区域的第一位置;According to the sum of the first initial letter and the number of existing initial letters in the address book, determine the size of the first key hotspot area of the first initial letter, and determine the first initial letter according to the sorting result. The first position of the key hotspot area of the letter;在所述终端设备显示的联系人界面中的字母显示区域,根据所述第一按键热点区域的大小和所述第一位置,显示所述第一首字母。In the letter display area of the contact interface displayed on the terminal device, the first initial letter is displayed according to the size of the hot spot area of the first button and the first position.
- 根据权利要求1或2所述的方法,其特征在于,所述确定所述第一首字母的第一按键热点区域的大小包括:The method according to claim 1 or 2, wherein the determining the size of the first key hotspot area of the first initial comprises:当所述第一首字母与所述通信录中已有的首字母的数量之和为N时,将所述字母显示区域平均划分为N个区域;所述N个区域中一个区域的大小为所述第一按键热点区域的大小;其中,N为正整数。When the sum of the first initial and the existing initials in the address book is N, the letter display area is divided into N areas on average; the size of one area in the N areas is The size of the hotspot area of the first button; wherein, N is a positive integer.
- 根据权利要求1所述的方法,其特征在于,所述获取所述第一联系人名称的第一首字母包括:The method according to claim 1, wherein said obtaining the first initial of the name of the first contact comprises:识别所述第一联系人名称中的第一首字符;其中,所述第一首字符包括汉字、字母组成的单词或除所述汉字和单词之外的其他字符;Identifying the first character in the name of the first contact; wherein, the first character includes Chinese characters, words composed of letters, or other characters except the Chinese characters and words;将所述第一首字符进行字母化,获得所述第一首字符包括的字母;alphabetizing the first initial character to obtain letters included in the first initial character;从所述第一首字符包括的字母中获取第一首字母。A first initial letter is obtained from letters included in the first initial character.
- 根据权利要求4所述的方法,其特征在于,所述将所述第一首字符进行字母 化,获得所述第一首字符包括的字母包括:The method according to claim 4, wherein said first initial character is alphabetized, and obtaining the letters included in said first initial character comprises:当所述第一首字符为汉字时,获取所述汉字的汉语拼音,获得所述汉语拼音中包括的字母;When the first character is a Chinese character, obtain the Chinese phonetic alphabet of the Chinese character, and obtain the letters included in the Chinese phonetic alphabet;当所述第一首字符为单词时,获得所述单词中包括的字母;When the first character is a word, obtain the letters included in the word;当所述第一首字符为除所述汉字和单词之外的其他字符时,以预定字符替代所述其他字符中的每个原始字符;或者保留所述其他字符,获得所述其他字符中包括的每个原始字符。When the first first character is other characters except the Chinese characters and words, replace each original character in the other characters with a predetermined character; or keep the other characters, and obtain the included characters in the other characters each original character of .
- 根据权利要求1所述的方法,其特征在于,所述获取第一联系人信息包括:The method according to claim 1, wherein said acquiring first contact information comprises:从所述终端设备的用户识别模块卡或内存中读取第一联系人信息;或者,reading the first contact information from the subscriber identity module card or memory of the terminal device; or,检测到用户对所述终端设备显示的联系人界面中扫名片图标的操作之后,响应于所述操作,通过所述终端设备的相机扫描电子信息码或拍摄名片,以获取第一联系人信息;或者,After detecting the user's operation of scanning the business card icon in the contact interface displayed by the terminal device, in response to the operation, scanning the electronic information code or photographing the business card through the camera of the terminal device to obtain the first contact information; or,检测到用户对所述终端设备显示的联系人界面中新建联系人图标的操作之后,响应于所述操作,向所述用户展示新建联系人界面,获取所述用户在所述新建联系人界面中输入的第一联系人信息。After detecting the user's operation on the new contact icon in the contact interface displayed on the terminal device, in response to the operation, display the new contact interface to the user, and obtain the user's new contact interface in the new contact interface. The entered primary contact information.
- 一种通信录字母的显示装置,其特征在于,用于执行如权利要求1至6任一所述的方法。A display device for letters in an address book, characterized in that it is used to execute the method according to any one of claims 1 to 6.
- 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述终端设备执行时,使得所述终端设备执行以下步骤:one or more processors; memory; a plurality of application programs; and one or more computer programs, wherein said one or more computer programs are stored in said memory, said one or more computer programs comprising instructions, When the instruction is executed by the terminal device, the terminal device is made to perform the following steps:获取第一联系人信息;其中,所述第一联系人信息中包括第一联系人名称;Obtaining first contact information; wherein, the first contact information includes a first contact name;获取所述第一联系人名称的第一首字母;obtaining the first letter of the name of the first contact;如果所述终端设备的通信录已有的首字母中不包括所述第一首字母,则根据所述第一首字母和所述通信录中已有的首字母的数量之和,确定所述第一首字母的第一按键热点区域的大小;If the existing initials in the address book of the terminal device do not include the first initial, then determine the The size of the hotspot area of the first key of the first letter;将所述第一联系人信息保存在所述终端设备的通信录中,以及根据所述第一按键热点区域的大小,在所述终端设备显示的联系人界面中的字母显示区域,显示所述第一首字母;saving the first contact information in the address book of the terminal device, and displaying the first contact information in the letter display area of the contact interface displayed on the terminal device according to the size of the hot spot area of the first key. first letter;获取第二联系人信息;其中,所述第二联系人信息中包括第二联系人名称;Obtaining second contact information; wherein, the second contact information includes a second contact name;获取所述第二联系人名称的第二首字母;obtaining the second initial of the name of the second contact;如果所述终端设备的通信录已有的首字母中不包括所述第二首字母,则根据所述第二首字母和所述通信录中已有的首字母的数量之和,确定所述第二首字母的第二按键热点区域的大小;其中,所述第二按键热点区域小于所述第一按键热点区域;If the existing initial letters in the address book of the terminal device do not include the second initial letter, then according to the sum of the second initial letter and the number of existing initial letters in the address book, the The size of the hot spot area of the second key of the second initial; wherein, the hot spot area of the second key is smaller than the hot spot area of the first key;将所述第二联系人信息保存在所述终端设备的通信录中,以及根据所述第二按键热点区域的大小,在所述终端设备显示的联系人界面中的字母显示区域,显示所述第二首字母。saving the second contact information in the address book of the terminal device, and according to the size of the hot spot area of the second button, displaying the second initial.
- 根据权利要求8所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述获取所述第一联系人名称的第一首字母的步骤之后,还执行以下步骤:The terminal device according to claim 8, wherein when the instruction is executed by the terminal device, after the terminal device executes the step of obtaining the first initial of the name of the first contact , also perform the following steps:如果所述终端设备的通信录已有的首字母中不包括所述第一首字母,则将所述 第一首字母与所述通信录中已有的首字母进行排序;If the existing initials in the address book of the terminal device do not include the first initial, then sort the first initial with the existing initials in the address book;根据所述第一首字母和所述通信录中已有的首字母的数量之和,确定所述第一首字母的第一按键热点区域的大小,以及根据排序结果,确定所述第一首字母的按键热点区域的第一位置;According to the sum of the first initial letter and the number of existing initial letters in the address book, determine the size of the first key hotspot area of the first initial letter, and determine the first initial letter according to the sorting result. The first position of the key hotspot area of the letter;在所述终端设备显示的联系人界面中的字母显示区域,根据所述第一按键热点区域的大小和所述第一位置,显示所述第一首字母。In the letter display area of the contact interface displayed on the terminal device, the first initial letter is displayed according to the size of the hot spot area of the first button and the first position.
- 根据权利要求8或9所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述确定所述第一首字母的第一按键热点区域的大小的步骤包括:The terminal device according to claim 8 or 9, characterized in that, when the instruction is executed by the terminal device, the terminal device is made to perform the step of determining the hotspot area of the first button of the first letter The size steps include:当所述第一首字母与所述通信录中已有的首字母的数量之和为N时,将所述字母显示区域平均划分为N个区域;所述N个区域中一个区域的大小为所述第一按键热点区域的大小;其中,N为正整数。When the sum of the first initial and the existing initials in the address book is N, the letter display area is divided into N areas on average; the size of one area in the N areas is The size of the hotspot area of the first button; wherein, N is a positive integer.
- 根据权利要求8所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述获取所述第一联系人名称的第一首字母的步骤包括:The terminal device according to claim 8, wherein when the instruction is executed by the terminal device, causing the terminal device to perform the step of obtaining the first initial of the name of the first contact includes :识别所述第一联系人名称中的第一首字符;其中,所述第一首字符包括汉字、字母组成的单词或除所述汉字和单词之外的其他字符;Identifying the first character in the name of the first contact; wherein, the first character includes Chinese characters, words composed of letters, or other characters except the Chinese characters and words;将所述第一首字符进行字母化,获得所述第一首字符包括的字母;alphabetizing the first initial character to obtain letters included in the first initial character;从所述第一首字符包括的字母中获取第一首字母。A first initial letter is obtained from letters included in the first initial character.
- 根据权利要求11所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述将所述第一首字符进行字母化,获得所述第一首字符包括的字母的步骤包括:The terminal device according to claim 11, wherein when the instruction is executed by the terminal device, the terminal device executes the lettering of the first initial character to obtain the first character. The steps for letters included in the first character include:当所述第一首字符为汉字时,获取所述汉字的汉语拼音,获得所述汉语拼音中包括的字母;When the first character is a Chinese character, obtain the Chinese phonetic alphabet of the Chinese character, and obtain the letters included in the Chinese phonetic alphabet;当所述第一首字符为单词时,获得所述单词中包括的字母;When the first character is a word, obtain the letters included in the word;当所述第一首字符为除所述汉字和单词之外的其他字符时,以预定字符替代所述其他字符中的每个原始字符;或者保留所述其他字符,获得所述其他字符中包括的每个原始字符。When the first first character is other characters except the Chinese characters and words, replace each original character in the other characters with a predetermined character; or keep the other characters, and obtain the included characters in the other characters each original character of .
- 根据权利要求8所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述获取第一联系人信息的步骤包括:The terminal device according to claim 8, wherein when the instruction is executed by the terminal device, enabling the terminal device to execute the step of obtaining the first contact information comprises:从所述终端设备的用户识别模块卡或内存中读取第一联系人信息;或者,reading the first contact information from the subscriber identity module card or memory of the terminal device; or,检测到用户对所述终端设备显示的联系人界面中扫名片图标的操作之后,响应于所述操作,通过所述终端设备的相机扫描电子信息码或拍摄名片,以获取第一联系人信息;或者,After detecting the user's operation of scanning the business card icon in the contact interface displayed by the terminal device, in response to the operation, scanning the electronic information code or photographing the business card through the camera of the terminal device to obtain the first contact information; or,检测到用户对所述终端设备显示的联系人界面中新建联系人图标的操作之后,响应于所述操作,向所述用户展示新建联系人界面,获取所述用户在所述新建联系人界面中输入的第一联系人信息。After detecting the user's operation on the new contact icon in the contact interface displayed on the terminal device, in response to the operation, display the new contact interface to the user, and obtain the user's new contact interface in the new contact interface. The entered primary contact information.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-6任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when it is run on a computer, it causes the computer to execute the method according to any one of claims 1-6.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111265579.0A CN115633114A (en) | 2021-10-28 | 2021-10-28 | Display method and device of address book letters and terminal equipment |
CN202111265579.0 | 2021-10-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023071441A1 true WO2023071441A1 (en) | 2023-05-04 |
Family
ID=84902994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/113250 WO2023071441A1 (en) | 2021-10-28 | 2022-08-18 | Method and apparatus for displaying letters in contact list, and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115633114A (en) |
WO (1) | WO2023071441A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135253A (en) * | 2023-07-12 | 2023-11-28 | 荣耀终端有限公司 | Contact searching method, terminal equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106204A (en) * | 2011-11-10 | 2013-05-15 | 腾讯科技(深圳)有限公司 | Method for searching target telecommuter entry in address book and user device |
CN103248739A (en) * | 2012-02-14 | 2013-08-14 | 联想(北京)有限公司 | Contact list navigation display method and device and mobile communication equipment |
CN104735243A (en) * | 2015-02-27 | 2015-06-24 | 小米科技有限责任公司 | Method and device for displaying contact list |
CN105577894A (en) * | 2014-10-13 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Information display method, information display terminal and electronic equipment |
CN105812531A (en) * | 2016-03-31 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Search method and device for contact names and terminal |
CN106383636A (en) * | 2016-09-23 | 2017-02-08 | 珠海市魅族科技有限公司 | Index information display method and apparatus |
CN106713585A (en) * | 2016-12-08 | 2017-05-24 | 宇龙计算机通信科技(深圳)有限公司 | Address book display method and device |
CN106961507A (en) * | 2016-01-11 | 2017-07-18 | 中兴通讯股份有限公司 | A kind of display methods of contact person record, device and terminal |
US20170359302A1 (en) * | 2016-06-12 | 2017-12-14 | Apple Inc. | Managing contact information for communication applications |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104050184B (en) * | 2013-03-13 | 2017-08-22 | 阿里巴巴集团控股有限公司 | Show the method and device of content of pages |
CN104375751A (en) * | 2014-12-11 | 2015-02-25 | 北京奇虎科技有限公司 | Message content display method and device |
CN108737618B (en) * | 2018-05-03 | 2021-03-02 | Oppo广东移动通信有限公司 | Information processing method and device, electronic equipment and computer readable storage medium |
-
2021
- 2021-10-28 CN CN202111265579.0A patent/CN115633114A/en active Pending
-
2022
- 2022-08-18 WO PCT/CN2022/113250 patent/WO2023071441A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106204A (en) * | 2011-11-10 | 2013-05-15 | 腾讯科技(深圳)有限公司 | Method for searching target telecommuter entry in address book and user device |
CN103248739A (en) * | 2012-02-14 | 2013-08-14 | 联想(北京)有限公司 | Contact list navigation display method and device and mobile communication equipment |
CN105577894A (en) * | 2014-10-13 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Information display method, information display terminal and electronic equipment |
CN104735243A (en) * | 2015-02-27 | 2015-06-24 | 小米科技有限责任公司 | Method and device for displaying contact list |
CN106961507A (en) * | 2016-01-11 | 2017-07-18 | 中兴通讯股份有限公司 | A kind of display methods of contact person record, device and terminal |
CN105812531A (en) * | 2016-03-31 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Search method and device for contact names and terminal |
US20170359302A1 (en) * | 2016-06-12 | 2017-12-14 | Apple Inc. | Managing contact information for communication applications |
CN106383636A (en) * | 2016-09-23 | 2017-02-08 | 珠海市魅族科技有限公司 | Index information display method and apparatus |
CN106713585A (en) * | 2016-12-08 | 2017-05-24 | 宇龙计算机通信科技(深圳)有限公司 | Address book display method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135253A (en) * | 2023-07-12 | 2023-11-28 | 荣耀终端有限公司 | Contact searching method, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115633114A (en) | 2023-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11722449B2 (en) | Notification message preview method and electronic device | |
WO2021213120A1 (en) | Screen projection method and apparatus, and electronic device | |
CN113542485B (en) | Notification processing method, electronic equipment and computer readable storage medium | |
WO2021147396A1 (en) | Icon management method and smart terminal | |
CN111742539B (en) | Voice control command generation method and terminal | |
CN117632067A (en) | Screen display method and electronic equipment | |
CN113805797B (en) | Processing method of network resource, electronic equipment and computer readable storage medium | |
CN111881315A (en) | Image information input method, electronic device, and computer-readable storage medium | |
US12086071B2 (en) | Method for determining physical address and chip system | |
CN113472861B (en) | File transmission method and electronic equipment | |
CN113852714A (en) | Interaction method for electronic equipment and electronic equipment | |
CN115967851A (en) | Quick photographing method, electronic device and computer readable storage medium | |
CN114115770A (en) | Display control method and related device | |
CN113641271A (en) | Application window management method, terminal device and computer readable storage medium | |
WO2023273543A1 (en) | Folder management method and apparatus | |
WO2022042768A1 (en) | Index display method, electronic device, and computer readable storage medium | |
WO2023071441A1 (en) | Method and apparatus for displaying letters in contact list, and terminal device | |
CN114971107A (en) | Privacy risk feedback method and device and first terminal equipment | |
KR102584682B1 (en) | Information display methods and devices | |
CN115730091A (en) | Comment display method and device, terminal device and readable storage medium | |
CN113986406B (en) | Method, device, electronic equipment and storage medium for generating doodle pattern | |
WO2022194007A1 (en) | Screenshot method, electronic device, and storage medium | |
WO2023207799A1 (en) | Message processing method and electronic device | |
WO2022217969A1 (en) | Method and apparatus for enabling function in application | |
CN117666810A (en) | Input method and electronic equipment |
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: 22885341 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22885341 Country of ref document: EP Kind code of ref document: A1 |