[go: up one dir, main page]

CN107295170A - The display methods and electronic equipment of a kind of touch-control bar - Google Patents

The display methods and electronic equipment of a kind of touch-control bar Download PDF

Info

Publication number
CN107295170A
CN107295170A CN201710470197.9A CN201710470197A CN107295170A CN 107295170 A CN107295170 A CN 107295170A CN 201710470197 A CN201710470197 A CN 201710470197A CN 107295170 A CN107295170 A CN 107295170A
Authority
CN
China
Prior art keywords
touch bar
electronic device
display
environment information
content related
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710470197.9A
Other languages
Chinese (zh)
Inventor
罗斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710470197.9A priority Critical patent/CN107295170A/en
Publication of CN107295170A publication Critical patent/CN107295170A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides the display methods and electronic equipment of a kind of touch-control bar, and methods described includes:The environmental information of the electronic equipment is detected, the environmental information includes system time and/or geographical position;The content related to the environmental information is shown on the touch-control bar.The display methods of touch-control bar provided in an embodiment of the present invention, the content related to environmental information is shown on touch-control bar, and the display items on touch-control bar are adjusted so as to realize, improves the diversity of display items on the touch-control bar of electronic equipment.

Description

一种触控条的显示方法及电子设备Display method and electronic device of a touch bar

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种触控条的显示方法及电子设备。The invention relates to the field of communication technology, in particular to a display method of a touch bar and electronic equipment.

背景技术Background technique

随着通信技术的发展,手机、平板电脑以及笔记本电脑等电子设备已经成为人们日常生活中不可或缺的工具。为了满足人们的要求,电子设备具备越来越多的使用功能,如电子设备的触控条。电子设备的触控条逐渐被设置于显示屏上,不仅可以代替传统的物理功能键实现对电子设备的操作,还可以独立于显示屏的应用程序的显示界面,显示至少一项显示项,以便用户可以获取更多内容,提高电子设备的用户体验效果。With the development of communication technology, electronic devices such as mobile phones, tablet computers, and notebook computers have become indispensable tools in people's daily life. In order to meet people's requirements, electronic equipment has more and more functions, such as a touch bar of the electronic equipment. The touch bar of the electronic device is gradually installed on the display screen, which not only can replace the traditional physical function keys to realize the operation of the electronic device, but also can display at least one display item independently of the display interface of the application program of the display screen, so that The user can acquire more content, and the user experience effect of the electronic device is improved.

但是,目前的电子设备的触控条的显示项通常固定设置,且显示项显示固定的内容,导致触控条的显示项无法满足用户的需求。可见,目前的电子设备的触控条存在显示项单一的问题。However, the display items of the touch bar of the current electronic equipment are usually fixedly set, and the display items display fixed content, so that the display items of the touch bar cannot meet the needs of users. It can be seen that the touch bar of the current electronic device has a problem of single display items.

发明内容Contents of the invention

本发明实施例提供一种触控条的显示方法及电子设备,以解决目前的电子设备的触控条存在显示项单一的问题。Embodiments of the present invention provide a method for displaying a touch bar and an electronic device, so as to solve the problem of a single display item in the touch bar of the current electronic device.

第一方面,本发明实施例提供一种触控条的显示方法,应用于设置有触控条的电子设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for displaying a touch bar, which is applied to an electronic device provided with a touch bar, and the method includes:

检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;Detecting environmental information of the electronic device, the environmental information includes system time and/or geographic location;

在所述触控条上显示与所述环境信息相关的内容。Displaying content related to the environment information on the touch bar.

第二方面,本发明实施例还提供一种电子设备,所述电子设备设置有触控条,所述电子设备包括:In the second aspect, the embodiment of the present invention also provides an electronic device, the electronic device is provided with a touch bar, and the electronic device includes:

信息检测模块,用于检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;An information detection module, configured to detect environmental information of the electronic device, the environmental information including system time and/or geographic location;

显示模块,用于在所述触控条上显示与所述环境信息相关的内容。A display module, configured to display content related to the environmental information on the touch bar.

第三方面,本发明实施例还提供一种电子设备,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述触控条的显示方法的步骤。In the third aspect, the embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor The steps of realizing the display method of the above-mentioned touch bar at the same time.

第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述触控条的显示方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method for displaying a touch bar are implemented. .

这样,本发明实施例中,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容,从而实现对触控条上的显示项进行调整,提高电子设备的触控条的显示项的多样性。In this way, in the embodiment of the present invention, the environmental information of the electronic device is detected, and the environmental information includes the system time and/or geographic location; the content related to the environmental information is displayed on the touch bar, thereby realizing the The display items on the touch bar are adjusted to improve the diversity of display items on the touch bar of the electronic device.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明实施例提供的一种触控条的显示方法的流程示意图;FIG. 1 is a schematic flowchart of a method for displaying a touch bar provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种触控条的显示方法的流程示意图;FIG. 2 is a schematic flowchart of another method for displaying a touch bar provided by an embodiment of the present invention;

图3是本发明实施例提供的一种电子设备的结构示意图;Fig. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图5是本发明实施例提供的另一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图6是本发明实施例提供的另一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention;

图7是本发明实施例提供的另一种电子设备的结构示意图。Fig. 7 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,图1是本发明实施例提供的一种触控条的显示方法,应用于设置有触控条的电子设备,如图1所示,所述方法包括:Referring to FIG. 1, FIG. 1 is a method for displaying a touch bar provided by an embodiment of the present invention, which is applied to an electronic device provided with a touch bar. As shown in FIG. 1, the method includes:

步骤101、检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置。Step 101. Detect environment information of the electronic device, where the environment information includes system time and/or geographic location.

本发明实施例中,当电子设备处于开启状态时,电子设备可以检测其环境信息,例如:电子设备可以通过读取其系统时间作为环境信息;或者电子设备可以通过其定位组件检测其所处的地理位置作为环境信息;或者电子设备可以将读取的系统时间以及定位组件检测的地理位置作为环境信息。In the embodiment of the present invention, when the electronic device is turned on, the electronic device can detect its environment information, for example: the electronic device can read its system time as the environment information; or the electronic device can detect its location through its positioning component The geographical location is used as the environmental information; or the electronic device may use the read system time and the geographical location detected by the positioning component as the environmental information.

步骤102、在所述触控条上显示与所述环境信息相关的内容。Step 102, display content related to the environment information on the touch bar.

本发明实施例中,上述在所述触控条上显示与所述环境信息相关的内容,可以是电子设备在触控条上创建新的显示项,将与环境信息相关的内容显示在创建的显示项内,并保持原有显示项的显示内容不变;或者也可以是电子设备将与环境信息相关的内容显示于原有显示项内。例如:当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。In the embodiment of the present invention, the aforementioned displaying the content related to the environment information on the touch bar may be that the electronic device creates a new display item on the touch bar, and displays the content related to the environment information on the created In the display item, and keep the display content of the original display item unchanged; or the electronic device may display the content related to the environment information in the original display item. For example: when at least one display item is displayed on the touch bar, the display content of one display item in the at least one display item is adjusted to the content related to the environment information.

其中,上述与所述环境信息相关的内容,可以是电子设备根据预设的对应关系表,在对应关系表中查询与环境信息相关存在对应关系的内容。例如:电子设备可以在预设的对应关系表中,预设就餐时间如11:30-13:00与点餐应用程序的图标对应关系,当系统时间为就餐时间时,电子设备将点餐应用程序的图标作为与系统时间相关的内容并进行显示;或者电子设备预设下班时间以及公司地点与下班路线的对应关系,当环境信息为下班时间以及公司地点时,电子设备将下班裤线作为环境信息相关的内容并进行显示。Wherein, the above-mentioned content related to the environmental information may be that the electronic device searches the corresponding relationship table for content related to the environmental information according to a preset corresponding relationship table. For example: the electronic device can be in the preset correspondence table, and the preset meal time such as 11:30-13:00 has a corresponding relationship with the icon of the ordering application program. When the system time is the meal time, the electronic device will order the meal. The icon of the program is displayed as the content related to the system time; or the electronic device presets the corresponding relationship between the off-duty time and the company location and the off-duty route. When the environmental information is the off-duty time and the company location, the electronic device uses the off-duty line as the environment Information related content and display.

当然,上述与所述环境信息相关的内容,也可以是电子设备根据预设规则,查找与环境信息满足预设规则的内容。例如:当上述检测到的环境信息为处于一商场的地理位置时,电子设备可以通过地理位置获取该商场的名称,按照预设查询规则在本地数据库或者网络数据库中查询该商场的导航信息、商场推荐信息或者商场中各商店提供的商品和价格等信息等与环境信息相关的内容。Certainly, the above-mentioned content related to the environment information may also be the content that the electronic device searches for and satisfies the preset rules with the environment information according to the preset rules. For example: when the above-mentioned detected environmental information is the geographical location of a shopping mall, the electronic device can obtain the name of the shopping mall through the geographical location, and query the navigation information and shopping mall information of the shopping mall in the local database or network database according to the preset query rules. Content related to environmental information such as recommended information or information such as products and prices provided by each store in the mall.

其中,上述触控条可以是设置于电子设备的显示屏的设定区域,该设定区域区别于显示屏中可显示应用程序的区域,且该设定区域可显示上述显示项并接收用户的操作。Wherein, the above-mentioned touch bar can be set in the setting area of the display screen of the electronic device, the setting area is different from the area where the application program can be displayed in the display screen, and the setting area can display the above-mentioned display items and receive the user's operate.

本发明实施例中,所述电子设备可以是任何设置有触控条的电子设备,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)、可穿戴式设备(Wearable Device)或相机等。In the embodiment of the present invention, the electronic device can be any electronic device provided with a touch bar, such as a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant) , referred to as PDA), mobile Internet device (Mobile Internet Device, MID), wearable device (Wearable Device) or camera, etc.

本发明实施例中,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容。这样,电子设备可以根据其环境信息,将与环境信息相关的内容显示于触控条上,从而可以实现对触控条上的显示项进行调整,提高电子设备的触控条的显示项的多样性。In the embodiment of the present invention, the environmental information of the electronic device is detected, and the environmental information includes system time and/or geographic location; and content related to the environmental information is displayed on the touch bar. In this way, the electronic device can display the content related to the environment information on the touch bar according to its environment information, so that the display items on the touch bar can be adjusted, and the variety of display items on the touch bar of the electronic device can be improved. sex.

参见图2,图2是本发明实施例提供的一种触控条的显示方法,如图2所示,所述方法包括:Referring to FIG. 2, FIG. 2 is a display method of a touch bar provided by an embodiment of the present invention. As shown in FIG. 2, the method includes:

步骤201、检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置。Step 201. Detect environment information of the electronic device, where the environment information includes system time and/or geographic location.

本发明实施例中,当电子设备处于开启状态时,电子设备可以检测其环境信息,例如:电子设备可以通过读取其系统时间作为环境信息;或者电子设备可以通过其定位组件检测其所处的地理位置作为环境信息;或者电子设备可以将读取的系统时间以及定位组件检测的地理位置作为环境信息。In the embodiment of the present invention, when the electronic device is turned on, the electronic device can detect its environment information, for example: the electronic device can read its system time as the environment information; or the electronic device can detect its location through its positioning component The geographical location is used as the environmental information; or the electronic device may use the read system time and the geographical location detected by the positioning component as the environmental information.

步骤202、检测所述电子设备的当前运行状态。Step 202. Detect the current running state of the electronic device.

本发明实施例中,电子设备可以检测其当前运行状态,上述当前运行状态可以包括锁屏状态、解锁且显示应用界面的状态以及解锁但未显示应用界面的状态等中的任意一种。In the embodiment of the present invention, the electronic device can detect its current running state, and the above-mentioned current running state can include any one of the locked screen state, the state of unlocking and displaying the application interface, and the state of unlocking but not displaying the application interface.

其中,上述当前运行状态为解锁且显示应用界面的状态时,电子设备在解锁状态下前台进程中运行有应用程序,且电子设备的触控条上显示项显示的内容为与应用程序相关的内容。如:当前台进程中运行有音乐播放应用程序时,触控条的显示项可以显示为播放音乐的音量调节选项等。Wherein, when the above-mentioned current running state is unlocked and the state of displaying the application interface, the electronic device runs an application program in the foreground process in the unlocked state, and the content displayed on the touch bar of the electronic device is the content related to the application program . For example, when there is a music playing application program running in the foreground process, the display items of the touch bar may be displayed as volume adjustment options for playing music, etc.

需要说明的是,上述步骤201可以是与步骤202同时执行,也可以是步骤201在步骤202之前或者之后执行,在此并不进行限定。It should be noted that the above step 201 may be executed simultaneously with step 202, or step 201 may be executed before or after step 202, which is not limited herein.

步骤203、若所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。Step 203, if the current operating state of the electronic device is a preset state, display content related to the environmental information on the touch bar.

本发明实施例中,若上述步骤202检测到电子设备的当前运行状态,电子设备可以判断当前运行状态是否为预设状态,若电子设备的当前运行状态为预设状态,则电子设备在其触控条上显示与环境信息相关的内容,从而便于用户在预设状态下基于环境信息相关的内容对电子设备的触控条进行操作。In the embodiment of the present invention, if the above step 202 detects the current operating state of the electronic device, the electronic device can determine whether the current operating state is the preset state, and if the current operating state of the electronic device is the preset state, the electronic device will Content related to the environment information is displayed on the control bar, so that the user can operate the touch bar of the electronic device based on the content related to the environment information in a preset state.

其中,上述在所述触控条上显示与所述环境信息相关的内容,可以是电子设备在触控条上创建新的显示项,将与环境信息相关的内容显示在创建的显示项内,并保持原有显示项的显示内容不变;或者也可以是电子设备将与环境信息相关的内容显示于原有显示项内。Wherein, the above-mentioned displaying the content related to the environment information on the touch bar may be that the electronic device creates a new display item on the touch bar, and displays the content related to the environment information in the created display item, And keep the display content of the original display item unchanged; or the electronic device may display the content related to the environment information in the original display item.

可选的,所述在所述触控条上显示与所述环境信息相关的内容,可以包括:当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。Optionally, the displaying the content related to the environment information on the touch bar may include: when at least one display item is displayed on the touch bar, displaying the at least one display item The display content of one of the display items is adjusted to the content related to the environment information.

该实施方式中,电子设备可以将与环境信息相关的内容,显示于原有的至少一项显示项上,从而减少电子设备的触控条显示与环境信息相关的内容时占用的资源,且便于用户基于与环境信息相关的内容对触控条进行操作。In this embodiment, the electronic device can display content related to environmental information on at least one of the original display items, thereby reducing the resources occupied by the touch bar of the electronic device when displaying content related to environmental information, and facilitating The user operates the touch bar based on the content related to the environment information.

例如:若电子设备的触控条上预先设置有亮度调节显示项和电池电量显示项等,电子设备可以将亮度调节显示项上的亮度调节图标,置换为与环境信息相关的内容;或者将电池电量显示项上的电池电量图标,置换为与环境信息相关的内容。For example: if the touch bar of the electronic device is preset with brightness adjustment display items and battery power display items, etc., the electronic device can replace the brightness adjustment icon on the brightness adjustment display item with content related to environmental information; The battery power icon on the power display item is replaced with content related to environmental information.

另外,上述与所述环境信息相关的内容,可以是电子设备根据预设的对应关系表,在对应关系表中查询与环境信息相关存在对应关系的内容。例如:可选的,所述在所述触控条上显示与所述环境信息相关的内容之前,还可以包括:设置环境信息与应用程序的对应关系;所述在所述触控条上显示与所述环境信息相关的内容,可以包括:根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标,从而可以使电子设备在接收到用户对触控条上显示的应用程序的图标的触发操作时,可以在其应用界面运行与环境信息对应的应用程序,使操作便捷。In addition, the above-mentioned content related to the environmental information may be that the electronic device searches the corresponding relationship table for content related to the environmental information according to a preset corresponding relationship table. For example: Optionally, before displaying the content related to the environmental information on the touch bar, it may also include: setting the corresponding relationship between the environment information and the application program; The content related to the environment information may include: according to the corresponding relationship between the environment information and the application program, displaying the icon of the application program corresponding to the detected environment information on the touch bar, so that the electronic device can receive When the user triggers an operation on the icon of the application program displayed on the touch bar, the application program corresponding to the environment information can be run on the application interface, so that the operation is convenient.

可选的,所述预设状态可以为锁屏状态,或者,解锁但未显示应用界面的状态。其中,在锁屏状态下,电子设备的显示屏显示应用界面的区域处于锁定且不显示内容,通过将环境信息相关的内容显示于触控条上,可以在锁屏状态下向用户提供信息,并使用户可以基于环境信息相关的内容对触控条进行操作;而在解锁但未显示应用界面的状态下,电子设备将环境相关的内容显示于触控条上,可以避免用户基于触控条上显示的内容对触控条进行操作时,而影响触控条之外的显示界面上的显示内容。Optionally, the preset state may be a locked screen state, or a state in which the application interface is not displayed but is unlocked. Among them, in the locked screen state, the display screen of the electronic device displays the area of the application interface is locked and does not display content, and by displaying the content related to the environment information on the touch bar, information can be provided to the user in the locked screen state, And enable the user to operate the touch bar based on the content related to the environment information; and in the state of unlocking but not displaying the application interface, the electronic device displays the environment-related content on the touch bar, which can prevent the user from using the touch bar When the content displayed on the touch bar is operated, it affects the display content on the display interface other than the touch bar.

本发明实施例中,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;检测所述电子设备的当前运行状态;若所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。电子设备在其当前运行状态为预设状态时,将与其位置信息相关的内容显示于触控条的显示项,实现对显示项中显示内容的调整,从而提高电子设备的触控条的显示项的多样性。In the embodiment of the present invention, the environmental information of the electronic device is detected, and the environmental information includes system time and/or geographic location; the current operating state of the electronic device is detected; if the current operating state of the electronic device is preset In the state, the content related to the environment information is displayed on the touch bar. When the current operating state of the electronic device is the preset state, the content related to its location information is displayed on the display items of the touch bar, so as to realize the adjustment of the displayed content in the display items, thereby improving the display items of the touch bar of the electronic device. diversity.

参见图3,图3是本发明实施提供的一种电子设备的结构示意图,如图3所示,所述电子设备300设置有触控条,所述电子设备300包括:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an electronic device provided by the implementation of the present invention. As shown in FIG. 3, the electronic device 300 is provided with a touch bar, and the electronic device 300 includes:

信息检测模块301,用于检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;An information detection module 301, configured to detect environmental information of the electronic device, the environmental information including system time and/or geographic location;

显示模块302,用于在所述触控条上显示与所述环境信息相关的内容。The display module 302 is configured to display content related to the environment information on the touch bar.

可选的,如图4所示,所述电子设备300还可以包括:Optionally, as shown in FIG. 4, the electronic device 300 may further include:

状态检测模块303,用于检测所述电子设备的当前运行状态;A state detection module 303, configured to detect the current operating state of the electronic device;

所述显示模块302,具体用于在所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。The display module 302 is specifically configured to display content related to the environment information on the touch bar when the current operating state of the electronic device is a preset state.

可选的,所述预设状态可以为锁屏状态,或者,解锁但未显示应用界面的状态。Optionally, the preset state may be a locked screen state, or a state in which the application interface is not displayed but is unlocked.

可选的,所述显示模块302,具体用于当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。Optionally, the display module 302 is specifically configured to, when at least one display item is displayed on the touch bar, adjust the display content of one of the at least one display item to be consistent with the display content of the at least one display item. related to environmental information.

可选的,如图5所示,所述电子设备300还可以包括:Optionally, as shown in FIG. 5, the electronic device 300 may further include:

预配置模块304,用于设置环境信息与应用程序的对应关系;A pre-configuration module 304, configured to set the corresponding relationship between environment information and application programs;

相应地,所述显示模块302,具体用于根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标。Correspondingly, the display module 302 is specifically configured to display the icon of the application program corresponding to the detected environment information on the touch bar according to the corresponding relationship between the environment information and the application program.

电子设备300能够实现图1和图2中实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 300 can implement various processes implemented by the electronic device in the embodiments shown in FIG. 1 and FIG. 2 , and details are not repeated here to avoid repetition.

本发明实施例的电子设备300,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容,从而实现对触控条上的显示项进行调整,提高电子设备的触控条的显示项的多样性。The electronic device 300 in the embodiment of the present invention detects the environmental information of the electronic device, the environmental information includes system time and/or geographic location; displays content related to the environmental information on the touch bar, thereby realizing The display items on the touch bar are adjusted to improve the diversity of display items on the touch bar of the electronic device.

本发明实施例还提供一种电子设备,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述触控条的显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the above trigger Each process of the embodiment of the method for displaying the control bar can achieve the same technical effect, and will not be repeated here to avoid repetition.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述触控条的显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned embodiment of the method for displaying a touch bar is implemented, and can To achieve the same technical effect, in order to avoid repetition, no more details are given here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

参见图6,图6是本发明实施提供的一种电子设备的结构示意图,如图6所示,电子设备600包括:至少一个处理器601、存储器602、至少一个网络接口604和用户接口603。电子设备600中的各个组件通过总线系统605耦合在一起。可理解,总线系统605用于实现这些组件之间的连接通信。总线系统605除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统605,电子设备600还包括触控条606,触控条606通过总线系统605与电子设备的各个组件连接。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of an electronic device provided by the implementation of the present invention. As shown in FIG. Various components in the electronic device 600 are coupled together through a bus system 605 . It can be understood that the bus system 605 is used to realize connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in FIG. 6 , various buses are marked as a bus system 605 , and the electronic device 600 also includes a touch bar 606 , and the touch bar 606 is connected to various components of the electronic device through the bus system 605 .

其中,用户接口603可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 603 may include a display, a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 602 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). Memory 602 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器602存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统6021和应用程序6022。In some implementations, the memory 602 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 6021 and an application program 6022 .

其中,操作系统6021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序6022中。Among them, the operating system 6021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 6022 .

在本发明实施例中,电子设备600还包括:存储在存储器602上并可在处理器601上运行的计算机程序,具体地,可以是应用程序6022中的计算机程序,计算机程序被处理器601执行时实现如下步骤:检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容。In the embodiment of the present invention, the electronic device 600 further includes: a computer program stored in the memory 602 and operable on the processor 601, specifically, it may be a computer program in the application program 6022, and the computer program is executed by the processor 601 When implementing the following steps: detecting the environmental information of the electronic device, the environmental information includes system time and/or geographic location; displaying content related to the environmental information on the touch bar.

上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 601 or implemented by the processor 601 . The processor 601 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 601 or instructions in the form of software. The above-mentioned processor 601 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选的,计算机程序被处理器601执行时还可实现如下步骤:检测所述电子设备的当前运行状态;若所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。Optionally, when the computer program is executed by the processor 601, the following steps can also be implemented: detecting the current operating state of the electronic device; if the current operating state of the electronic device is a preset state, on the touch bar Display content related to the environment information.

可选的,所述预设状态可以为锁屏状态,或者,解锁但未显示应用界面的状态。Optionally, the preset state may be a locked screen state, or a state in which the application interface is not displayed but is unlocked.

可选的,计算机程序被处理器601执行时还可实现如下步骤:当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。Optionally, when the computer program is executed by the processor 601, the following steps can also be implemented: when at least one display item is displayed on the touch bar, the display content of a display item in the at least one display item , adjusted to the content related to the environment information.

可选的,计算机程序被处理器601执行时还可实现如下步骤:设置环境信息与应用程序的对应关系;根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标。Optionally, when the computer program is executed by the processor 601, the following steps can also be implemented: setting the corresponding relationship between the environmental information and the application program; according to the corresponding relationship between the environmental information and the application program, displaying and detecting the The icon of the application corresponding to the environment information.

电子设备600能够实现前述实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 600 can implement various processes implemented by the electronic device in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例的电子设备600,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容。电子设备可以根据其环境信息,将与环境信息相关的内容显示于触控条上,从而可以实现对触控条上的显示项进行调整,提高电子设备的触控条的显示项的多样性。The electronic device 600 in the embodiment of the present invention detects the environment information of the electronic device, and the environment information includes system time and/or geographic location; and displays content related to the environment information on the touch bar. The electronic device can display content related to the environment information on the touch bar according to its environment information, so that the display items on the touch bar can be adjusted, and the diversity of display items on the touch bar of the electronic device can be improved.

请参阅图7,图7是本发明实施提供的一种电子设备的结构示意图,能够实现图1和图2中实施例中触控条的显示方法的细节,并达到相同的效果。如图7所示,电子设备700包括射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、处理器750、音频电路760、通信模块770、电源780和触控条790。Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of an electronic device provided by the present invention, which can realize the details of the display method of the touch bar in the embodiment in FIG. 1 and FIG. 2, and achieve the same effect. As shown in FIG. 7 , the electronic device 700 includes a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a processor 750, an audio circuit 760, a communication module 770, a power supply 780 and a touch bar 790 .

其中,输入单元730可用于接收用户输入的数字或字符信息,以及产生与电子设备700的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元730可以包括触控面板731。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器750,并能接收处理器750发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 730 can be used for receiving digital or character information input by the user, and generating signal input related to user setting and function control of the electronic device 700 . Specifically, in the embodiment of the present invention, the input unit 730 may include a touch panel 731 . The touch panel 731, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 731 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 731 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 750, and can receive and execute commands sent by the processor 750. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731, the input unit 730 may also include other input devices 732, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元740可用于显示由用户输入的信息或提供给用户的信息以及电子设备700的各种菜单界面。显示单元740可包括显示面板741,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。Wherein, the display unit 740 can be used to display information input by the user or information provided to the user and various menu interfaces of the electronic device 700 . The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板731可以覆盖显示面板741,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器750以确定触摸事件的类型,随后处理器750根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 731 can cover the display panel 741 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 750 to determine the type of the touch event, and then the processor The 750 provides corresponding visual output on the touch display screen according to the type of touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。本发明实施例的触摸屏为柔性屏,柔性屏的两个面均贴有碳纳米管的有机透明导电膜。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons. The touch screen in the embodiment of the present invention is a flexible screen, and both sides of the flexible screen are pasted with an organic transparent conductive film of carbon nanotubes.

其中处理器750是电子设备700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器721内的软件程序和/或模块,以及调用存储在第二存储器722内的数据,执行电子设备700的各种功能和处理数据,从而对电子设备700进行整体监控。可选的,处理器1050可包括一个或多个处理单元。Wherein the processor 750 is the control center of the electronic device 700, utilizes various interfaces and lines to connect various parts of the whole mobile phone, and runs or executes the software programs and/or modules stored in the first memory 721, and calls the software programs and/or modules stored in the second memory 721. The data in the memory 722 executes various functions of the electronic device 700 and processes data, so as to monitor the electronic device 700 as a whole. Optionally, the processor 1050 may include one or more processing units.

在本发明实施例中,电子设备700还包括存储在第一存储器721内并可在处理器750上运行的计算机程序,计算机程序被处理器750执行时实现如下步骤检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容。In the embodiment of the present invention, the electronic device 700 further includes a computer program stored in the first memory 721 and operable on the processor 750. When the computer program is executed by the processor 750, the following steps are implemented to detect the environmental information of the electronic device , the environment information includes system time and/or geographic location; displaying content related to the environment information on the touch bar.

可选的,计算机程序被处理器701执行时还可实现如下步骤:检测所述电子设备的当前运行状态;若所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。Optionally, when the computer program is executed by the processor 701, the following steps can also be implemented: detecting the current operating state of the electronic device; if the current operating state of the electronic device is a preset state, on the touch bar Display content related to the environment information.

可选的,所述预设状态可以为锁屏状态,或者,解锁但未显示应用界面的状态。Optionally, the preset state may be a locked screen state, or a state in which the application interface is not displayed but is unlocked.

可选的,计算机程序被处理器701执行时还可实现如下步骤:当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。Optionally, when the computer program is executed by the processor 701, the following steps can also be implemented: when at least one display item is displayed on the touch bar, the display content of a display item in the at least one display item , adjusted to the content related to the environment information.

可选的,计算机程序被处理器701执行时还可实现如下步骤:设置环境信息与应用程序的对应关系;根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标。Optionally, when the computer program is executed by the processor 701, the following steps can also be implemented: setting the corresponding relationship between the environmental information and the application program; according to the corresponding relationship between the environmental information and the application program, displaying and detecting the The icon of the application corresponding to the environment information.

电子设备700能够实现前述实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 700 is capable of implementing various processes implemented by the electronic device in the foregoing embodiments, and details are not repeated here to avoid repetition.

本发明实施例的电子设备700,检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;在所述触控条上显示与所述环境信息相关的内容。这样,电子设备可以根据其环境信息,将与环境信息相关的内容显示于触控条上,从而可以实现对触控条上的显示项进行调整,提高电子设备的触控条的显示项的多样性。The electronic device 700 in the embodiment of the present invention detects the environment information of the electronic device, and the environment information includes system time and/or geographic location; and displays content related to the environment information on the touch bar. In this way, the electronic device can display the content related to the environment information on the touch bar according to its environment information, so that the display items on the touch bar can be adjusted, and the variety of display items on the touch bar of the electronic device can be improved. sex.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of 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 invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、电子设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。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, electronic device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的电子设备和方法,可以通过其它的方式实现。例如,以上所描述的电子设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,电子设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed electronic devices and methods may be implemented in other ways. For example, the electronic device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of electronic devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention 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 in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (12)

1.一种触控条的显示方法,应用于设置有触控条的电子设备,其特征在于,所述方法包括:1. A display method for a touch bar, applied to an electronic device provided with a touch bar, characterized in that the method comprises: 检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;Detecting environmental information of the electronic device, the environmental information includes system time and/or geographic location; 在所述触控条上显示与所述环境信息相关的内容。Displaying content related to the environment information on the touch bar. 2.根据权利要求1所述的触控条的显示方法,其特征在于,所述在所述触控条上显示与所述环境信息相关的内容的步骤之前,还包括:2. The method for displaying the touch bar according to claim 1, characterized in that before the step of displaying the content related to the environmental information on the touch bar, further comprising: 检测所述电子设备的当前运行状态;Detecting the current operating state of the electronic device; 所述在所述触控条上显示与所述环境信息相关的内容,包括:The displaying the content related to the environment information on the touch bar includes: 若所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。If the current operating state of the electronic device is a preset state, content related to the environmental information is displayed on the touch bar. 3.根据权利要求2所述的触控条的显示方法,其特征在于,所述预设状态为锁屏状态,或者,解锁但未显示应用界面的状态。3 . The display method of the touch bar according to claim 2 , wherein the preset state is a locked screen state, or a state of unlocked but no application interface is displayed. 4 . 4.根据权利要求1所述的触控条的显示方法,其特征在于,所述在所述触控条上显示与所述环境信息相关的内容,包括:4. The display method of the touch bar according to claim 1, wherein the displaying the content related to the environmental information on the touch bar comprises: 当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。When at least one display item is displayed on the touch bar, the display content of one display item in the at least one display item is adjusted to the content related to the environment information. 5.根据权利要求1所述的触控条的显示方法,其特征在于,所述在所述触控条上显示与所述环境信息相关的内容之前,还包括:5. The display method of the touch bar according to claim 1, characterized in that, before displaying the content related to the environment information on the touch bar, further comprising: 设置环境信息与应用程序的对应关系;Set the corresponding relationship between the environment information and the application program; 所述在所述触控条上显示与所述环境信息相关的内容,包括:The displaying the content related to the environment information on the touch bar includes: 根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标。According to the corresponding relationship between the environment information and the application program, the icon of the application program corresponding to the detected environment information is displayed on the touch bar. 6.一种电子设备,所述电子设备设置有触控条,其特征在于,所述电子设备包括:6. A kind of electronic equipment, described electronic equipment is provided with touch bar, is characterized in that, described electronic equipment comprises: 信息检测模块,用于检测所述电子设备的环境信息,所述环境信息包括系统时间和/或地理位置;An information detection module, configured to detect environmental information of the electronic device, the environmental information including system time and/or geographic location; 显示模块,用于在所述触控条上显示与所述环境信息相关的内容。A display module, configured to display content related to the environmental information on the touch bar. 7.根据权利要求6所述的电子设备,其特征在于,所述电子设备还包括:7. The electronic device according to claim 6, further comprising: 状态检测模块,用于检测所述电子设备的当前运行状态;A state detection module, configured to detect the current operating state of the electronic device; 所述显示模块,具体用于在所述电子设备的当前运行状态为预设状态时,在所述触控条上显示与所述环境信息相关的内容。The display module is specifically configured to display content related to the environmental information on the touch bar when the current operating state of the electronic device is a preset state. 8.根据权利要求7所述的电子设备,其特征在于,所述预设状态为锁屏状态,或者,解锁但未显示应用界面的状态。8 . The electronic device according to claim 7 , wherein the preset state is a screen-locked state, or a state of unlocking but not displaying an application interface. 9.根据权利要求6所述的电子设备,其特征在于,9. The electronic device according to claim 6, wherein: 所述显示模块,具体用于当所述触控条上显示有至少一项显示项时,将所述至少一项显示项中的一显示项的显示内容,调整为与所述环境信息相关的内容。The display module is specifically configured to adjust the display content of one of the at least one display item to be related to the environmental information when at least one display item is displayed on the touch bar. content. 10.根据权利要求6所述的电子设备,其特征在于,所述电子设备还包括:10. The electronic device according to claim 6, further comprising: 预配置模块,用于设置环境信息与应用程序的对应关系;A pre-configuration module, which is used to set the corresponding relationship between environment information and application programs; 所述显示模块,具体用于根据环境信息与应用程序的对应关系,在所述触控条上显示与检测到的环境信息对应的应用程序的图标。The display module is specifically configured to display the icon of the application program corresponding to the detected environment information on the touch bar according to the corresponding relationship between the environment information and the application program. 11.一种电子设备,其特征在于,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的触控条的显示方法的步骤。11. An electronic device, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the display method of the touch bar described in any one of 1 to 5 are required. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的触控条的显示方法的步骤。12. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is realized. The steps of the method for displaying the touch bar.
CN201710470197.9A 2017-06-20 2017-06-20 The display methods and electronic equipment of a kind of touch-control bar Pending CN107295170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710470197.9A CN107295170A (en) 2017-06-20 2017-06-20 The display methods and electronic equipment of a kind of touch-control bar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710470197.9A CN107295170A (en) 2017-06-20 2017-06-20 The display methods and electronic equipment of a kind of touch-control bar

Publications (1)

Publication Number Publication Date
CN107295170A true CN107295170A (en) 2017-10-24

Family

ID=60096954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710470197.9A Pending CN107295170A (en) 2017-06-20 2017-06-20 The display methods and electronic equipment of a kind of touch-control bar

Country Status (1)

Country Link
CN (1) CN107295170A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536343A (en) * 2017-12-29 2018-09-14 广东欧珀移动通信有限公司 Control exposure method, apparatus, terminal and storage medium
WO2019085722A1 (en) * 2017-10-30 2019-05-09 Huawei Technologies Co., Ltd. Apparatus and method for simplifying repeat performance of a prior performed task based on a context of a mobile device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120274597A1 (en) * 2007-01-07 2012-11-01 Scott Forstall Portable Electronic Device, Method, and Graphical User Interface for Displaying Electronic Lists and Documents
CN102945138A (en) * 2012-11-14 2013-02-27 李江涛 Switching method and terminal for application programs
CN104199936A (en) * 2014-09-09 2014-12-10 联想(北京)有限公司 Method and device for processing information
CN104346024A (en) * 2013-07-23 2015-02-11 北京千橡网景科技发展有限公司 Method and device for selecting shortcuts
CN105117475A (en) * 2015-09-07 2015-12-02 广东欧珀移动通信有限公司 Store recommendation method and user terminal
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN105302887A (en) * 2015-10-15 2016-02-03 百度在线网络技术(北京)有限公司 Information pushing method and pushing apparatus
CN106202358A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of method recommending application program and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120274597A1 (en) * 2007-01-07 2012-11-01 Scott Forstall Portable Electronic Device, Method, and Graphical User Interface for Displaying Electronic Lists and Documents
CN102945138A (en) * 2012-11-14 2013-02-27 李江涛 Switching method and terminal for application programs
CN104346024A (en) * 2013-07-23 2015-02-11 北京千橡网景科技发展有限公司 Method and device for selecting shortcuts
CN104199936A (en) * 2014-09-09 2014-12-10 联想(北京)有限公司 Method and device for processing information
CN105117475A (en) * 2015-09-07 2015-12-02 广东欧珀移动通信有限公司 Store recommendation method and user terminal
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN105302887A (en) * 2015-10-15 2016-02-03 百度在线网络技术(北京)有限公司 Information pushing method and pushing apparatus
CN106202358A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of method recommending application program and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085722A1 (en) * 2017-10-30 2019-05-09 Huawei Technologies Co., Ltd. Apparatus and method for simplifying repeat performance of a prior performed task based on a context of a mobile device
CN108536343A (en) * 2017-12-29 2018-09-14 广东欧珀移动通信有限公司 Control exposure method, apparatus, terminal and storage medium
CN108536343B (en) * 2017-12-29 2020-06-09 Oppo广东移动通信有限公司 Control display method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107678666A (en) A kind of virtual key display methods, mobile terminal and computer-readable recording medium
CN107506109A (en) A kind of method and mobile terminal for starting application program
CN106325753B (en) Method for displaying payment interface and mobile terminal
CN107608591A (en) The display methods and mobile terminal of a kind of virtual key
CN106445495A (en) Application program interface display method and mobile terminal
CN106293705A (en) A kind of collecting method and mobile terminal
CN106503179A (en) A kind of loading method of Webpage and mobile terminal
CN107562345A (en) A kind of information storage means and mobile terminal
CN107609374A (en) A kind of unlocking method and mobile terminal
CN107479822A (en) A kind of data inputting method and terminal
CN106168966A (en) A kind of file search method and mobile terminal
CN107678813A (en) A kind of switching method and mobile terminal of the theme of desktop icons
CN106527937B (en) Method for adding mobile terminal widget and mobile terminal
CN107145238A (en) A kind of method for sending information and electronic equipment
CN107329586A (en) A kind of data inputting method, mobile terminal and computer-readable recording medium
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107395672A (en) A kind of picture method for down loading and mobile terminal
CN106231113A (en) A kind of Dialing Method and mobile terminal
CN106776899A (en) A kind of information search method and mobile terminal
CN106095128A (en) The character input method of a kind of mobile terminal and mobile terminal
CN106502872B (en) A kind of display methods and terminal of application state information
CN107682902B (en) Method for controlling electronic equipment and electronic equipment
CN106027786B (en) A search method for record list and mobile terminal
CN107562262A (en) A kind of method, terminal and computer-readable recording medium for responding touch control operation
CN107678642A (en) The control method and mobile terminal of a kind of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171024

RJ01 Rejection of invention patent application after publication