CN105373285A - Method and device for changing application icons of terminal - Google Patents
Method and device for changing application icons of terminal Download PDFInfo
- Publication number
- CN105373285A CN105373285A CN201410425287.2A CN201410425287A CN105373285A CN 105373285 A CN105373285 A CN 105373285A CN 201410425287 A CN201410425287 A CN 201410425287A CN 105373285 A CN105373285 A CN 105373285A
- Authority
- CN
- China
- Prior art keywords
- application
- wallpaper
- icon
- color system
- average value
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/453—Help systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72427—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种终端更换应用图标的方法及装置,涉及终端技术领域,其方法包括以下步骤:当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系;根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标;将所选的每个应用的图标用作已切换的壁纸为背景的每个应用的图标。本发明通过对图标所占面积的像素点色系进行分析,从而选择最适合显示的应用图标,提高了用户体验。
The invention discloses a method and device for replacing application icons on a terminal, relating to the technical field of terminals. The method includes the following steps: when the wallpaper on the terminal screen is switched, determine the wallpaper color system of each application on the terminal screen wallpaper; The determined wallpaper color system at the location of each application, selecting an icon that is similar to the contrast color of the wallpaper color system from the icon library of each application; using the selected icon of each application as the switched Wallpapers for each app icon in the background. The present invention selects the most suitable application icon for display by analyzing the pixel point color system of the area occupied by the icon, thereby improving user experience.
Description
技术领域 technical field
本发明涉及终端技术领域,特别涉及一种终端更换应用图标的方法及装置。 The present invention relates to the technical field of terminals, in particular to a method and device for replacing application icons on a terminal.
背景技术 Background technique
如今很多用户为凸显个性化从而自己更改设定壁纸,但是这样一来由于应用的图标是预设且唯一,所以一旦某图标所占据区域的背景和图标色系相近,那么应用的图标就会显示不清楚,带来不佳的用户体验。 Nowadays, many users change their own wallpapers to highlight personalization, but in this way, since the icon of the application is preset and unique, once the background of the area occupied by an icon is similar to the color of the icon, the icon of the application will be displayed Not clear, brings poor user experience.
为解决上述问题,本发明提供了一种终端更换应用图标的方法及装置。 In order to solve the above problems, the present invention provides a method and a device for replacing an application icon by a terminal.
发明内容 Contents of the invention
本发明的目的在于提供一种终端更换应用图标的方法及装置,解决了现有技术中因图标所占据区域的背景和图标色系相近,应用的图标就会显示不清楚,给用户带来不佳用户体验的问题。 The purpose of the present invention is to provide a method and device for replacing application icons on a terminal, which solves the problem that in the prior art, because the background of the area occupied by the icons is similar to the color system of the icons, the icons of the applications will be displayed unclearly, causing inconvenience to the user. problem of good user experience.
根据本发明的一个方面,提供了一种终端更换应用图标的方法,包括以下步骤: According to one aspect of the present invention, a method for replacing an application icon on a terminal is provided, including the following steps:
当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系; When the terminal screen wallpaper is switched, determine the wallpaper color system of each application on the terminal screen wallpaper;
根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标; According to the determined wallpaper color system where each application is located, select an icon that is similar to the contrast color of the wallpaper color system from the icon library of each application;
将所选的每个应用的图标用作已切换的壁纸为背景的每个应用的图标。 Use the selected icon of each app as the icon of each app with the switched wallpaper as the background.
优选地,所述根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标包括: Preferably, according to the determined wallpaper color system where each application is located, selecting an icon that is similar to the contrast color of the wallpaper color system from the icon library of each application includes:
获取每个应用图标在终端屏幕壁纸上所占的壁纸面积,并分别计算每个应用图标所占壁纸面积的壁纸色系平均值; Obtain the wallpaper area occupied by each application icon on the terminal screen wallpaper, and calculate the average value of the wallpaper color system of the wallpaper area occupied by each application icon;
分别计算图标库中每个应用图标的应用色系平均值; Calculate the average value of the application color system of each application icon in the icon library;
利用所计算的壁纸色系平均值和应用色系平均值,分别选择一个与所述壁纸色系的对比色相近的图标。 Using the calculated average value of the wallpaper color system and the average value of the application color system, an icon that is similar to the contrast color of the wallpaper color system is selected respectively.
优选地,所述的分别计算每个应用图标所占壁纸面积的壁纸色系平均值包括: Preferably, said calculating the average value of the wallpaper color system of the wallpaper area occupied by each application icon includes:
分别获取每个应用图标壁纸面积上所有像素点相对应的壁纸ARGB值; Obtain the wallpaper ARGB values corresponding to all pixels on the wallpaper area of each application icon respectively;
根据所获取的壁纸ARGB值,计算出每个应用图标所占壁纸面积的壁纸色系平均值。 According to the acquired ARGB value of the wallpaper, the average value of the wallpaper color system of the wallpaper area occupied by each application icon is calculated.
优选地,所述的分别计算图标库中每个应用图标的应用色系平均值包括: Preferably, said calculating the average value of the application color system of each application icon in the icon library includes:
分别获取每个应用图标的图标库中所有像素点相对应的应用ARGB值; Obtain the application ARGB values corresponding to all pixels in the icon library of each application icon respectively;
根据所获取的应用ARGB值,计算出图标库中每个应用图标的应用色系平均值。 According to the acquired ARGB value of the application, the average value of the application color system of each application icon in the icon library is calculated.
优选地,所述图标库中每个应用的图标是通过应用自身获得或通过网络下载主题包获得。 Preferably, the icon of each application in the icon library is obtained through the application itself or by downloading a theme package from the network.
根据本发明的另一方面,提供了一种终端更换应用图标的装置,包括: According to another aspect of the present invention, there is provided a device for replacing an application icon on a terminal, including:
确定模块,用于当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系; A determining module, configured to determine the wallpaper color system of each application location on the terminal screen wallpaper when the terminal screen wallpaper is switched;
选择模块,用于根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标; A selection module, configured to select an icon that is similar to the contrasting color of the wallpaper color system from the icon library of each application according to the determined wallpaper color system at the location of each application;
更换模块,用于将所选的每个应用的图标用作已切换的壁纸为背景的每个应用的图标。 Replacement module for using the selected icon of each application as the icon of each application with the switched wallpaper as the background.
优选地,所述选择模块包括: Preferably, the selection module includes:
第一计算单元,用于获取每个应用图标在终端屏幕壁纸上所占的壁纸面积,并分别计算每个应用图标所占壁纸面积的壁纸色系平均值; The first calculation unit is configured to obtain the wallpaper area occupied by each application icon on the terminal screen wallpaper, and respectively calculate the average value of the wallpaper color system of the wallpaper area occupied by each application icon;
第二计算单元,用于分别计算图标库中每个应用图标的应用色系平均值; The second calculation unit is used to calculate the average value of the application color system of each application icon in the icon library;
选择单元,用于利用所计算的壁纸色系平均值和应用色系平均值,分别选择一个与所述壁纸色系的对比色相近的图标。 The selection unit is configured to use the calculated average value of the wallpaper color system and the average value of the application color system to respectively select an icon that is similar to the contrast color of the wallpaper color system.
优选地,所述第一计算单元包括: Preferably, the first calculation unit includes:
获取壁纸ARGB值子单元,用于分别获取每个应用图标壁纸面积上所有像素点相对应的壁纸ARGB值; Get the wallpaper ARGB value sub-unit, which is used to respectively get the wallpaper ARGB values corresponding to all pixels on the wallpaper area of each application icon;
计算壁纸色系平均值子单元,用于根据所获取的壁纸ARGB值,计算出每个应用图标所占壁纸面积的壁纸色系平均值。 The subunit for calculating the average value of the wallpaper color system is configured to calculate the average value of the wallpaper color system of the wallpaper area occupied by each application icon according to the acquired ARGB value of the wallpaper.
优选地,所述第二计算单元包括: Preferably, the second calculation unit includes:
获取应用ARGB值子单元,用于分别获取每个应用图标的图标库中所有像素点相对应的应用ARGB值; Obtaining the application ARGB value sub-unit, which is used to respectively obtain the application ARGB values corresponding to all pixels in the icon library of each application icon;
计算应用色系平均值子单元,用于根据所获取的应用ARGB值,计算出图标库中每个应用图标的应用色系平均值。 The sub-unit for calculating the average value of the application color system is configured to calculate the average value of the application color system of each application icon in the icon library according to the acquired ARGB value of the application.
优选地,所述图标库中每个应用的图标是通过应用自身获得或通过网络下载主题包获得。 Preferably, the icon of each application in the icon library is obtained through the application itself or by downloading a theme package from the network.
与现有技术相比较,本发明的有益效果在于: Compared with the prior art, the beneficial effects of the present invention are:
本发明通过对图标所占面积的像素点色系进行分析,从而选择最适合显示的应用图标,提高了用户体验。 The present invention selects the most suitable application icon for display by analyzing the pixel point color system of the area occupied by the icon, thereby improving user experience.
附图说明 Description of drawings
图1是本发明提供的一种终端更换应用图标的方法流程图; FIG. 1 is a flowchart of a method for replacing an application icon by a terminal provided by the present invention;
图2是本发明提供的一种终端更换应用图标的装置示意图; Fig. 2 is a schematic diagram of a terminal replacement application icon device provided by the present invention;
图3是本发明实施例提供的终端应用图标分布在壁纸上的示意图; Fig. 3 is a schematic diagram of distributing terminal application icons on a wallpaper provided by an embodiment of the present invention;
图4是本发明实施例提供的自动更换应用图表的方法流程图; FIG. 4 is a flow chart of a method for automatically replacing an application chart provided by an embodiment of the present invention;
图5是本发明实施例提供图3中终端图库应用图标所占壁纸面积的示意图。 FIG. 5 is a schematic diagram of the wallpaper area occupied by the terminal gallery application icons in FIG. 3 according to an embodiment of the present invention.
具体实施方式 detailed description
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。 The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.
图1显示了本发明提供的一种终端更换应用图标的方法流程图,如图1所示,包括以下步骤: Fig. 1 shows a flow chart of a method for replacing an application icon by a terminal provided by the present invention, as shown in Fig. 1 , including the following steps:
步骤S101:当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系; Step S101: When the terminal screen wallpaper is switched, determine the wallpaper color system at the location of each application on the terminal screen wallpaper;
通过对终端屏幕壁纸更换消息进行监听,判断屏幕壁纸是否切换,当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系。 By monitoring the terminal screen wallpaper change message, it is judged whether the screen wallpaper is switched, and when the terminal screen wallpaper is switched, the wallpaper color system of each application location on the terminal screen wallpaper is determined.
步骤S102:根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标; Step S102: According to the determined wallpaper color system where each application is located, select an icon that is similar to the contrasting color of the wallpaper color system from the icon library of each application;
具体地说,所述根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标包括:获取每个应用图标在终端屏幕壁纸上所占的壁纸面积,并分别计算每个应用图标所占壁纸面积的壁纸色系平均值;分别计算图标库中每个应用图标的应用色系平均值;利用所计算的壁纸色系平均值和应用色系平均值,分别选择一个与所述壁纸色系的对比色相近的图标。 Specifically, according to the determined wallpaper color system at the location of each application, selecting an icon that is similar to the contrast color of the wallpaper color system from the icon library of each application includes: obtaining each application icon The wallpaper area occupied by the terminal screen wallpaper, and calculate the average wallpaper color system of the wallpaper area occupied by each application icon respectively; calculate the average application color system of each application icon in the icon library; use the calculated wallpaper For the average value of the color system and the average value of the application color system, select an icon that is similar to the contrast color of the wallpaper color system.
其中,所述的分别计算每个应用图标所占壁纸面积的壁纸色系平均值包括:分别获取每个应用图标壁纸面积上所有像素点相对应的壁纸ARGB值;根据所获取的壁纸ARGB值,计算出每个应用图标所占壁纸面积的壁纸色系平均值。所述的分别计算图标库中每个应用图标的应用色系平均值包括:分别获取每个应用图标的图标库中所有像素点相对应的应用ARGB值;根据所获取的应用ARGB值,计算出图标库中每个应用图标的应用色系平均值。 Wherein, said calculating the average value of the wallpaper color system of the wallpaper area occupied by each application icon respectively includes: respectively obtaining the wallpaper ARGB values corresponding to all pixels on the wallpaper area of each application icon; according to the obtained wallpaper ARGB values, The average value of the wallpaper color system of the wallpaper area occupied by each application icon is calculated. The calculating the average value of the application color system of each application icon in the icon library includes: respectively obtaining the application ARGB values corresponding to all pixels in the icon library of each application icon; according to the obtained application ARGB values, calculate App color scheme average for each app icon in the icon library.
本发明所述图标库中每个应用的图标是通过应用自身获得或通过网络下载主题包获得。 The icon of each application in the icon library of the present invention is obtained by the application itself or by downloading a theme package from the network.
步骤S103:将所选的每个应用的图标用作已切换的壁纸为背景的每个应用的图标。 Step S103: Use the selected icon of each application as the icon of each application whose background is the switched wallpaper.
图2显示了本发明提供的一种终端更换应用图标的装置示意图,如图2所示,包括:确定模块201,用于当终端屏幕壁纸切换时,确定终端屏幕壁纸上每个应用所处位置的壁纸色系;选择模块202,用于根据所确定的每个应用所处位置的壁纸色系,从所述每个应用的图标库中选择与所述壁纸色系的对比色相近的图标;更换模块203,用于将所选的每个应用的图标用作已切换的壁纸为背景的每个应用的图标。 Fig. 2 shows a schematic diagram of an apparatus for replacing application icons on a terminal provided by the present invention, as shown in Fig. 2 , including: a determining module 201, configured to determine the location of each application on the terminal screen wallpaper when the terminal screen wallpaper is switched The wallpaper color system; the selection module 202 is used to select an icon that is similar to the contrast color of the wallpaper color system from the icon library of each application according to the determined wallpaper color system at the location of each application; replace Module 203, configured to use the selected icon of each application as the icon of each application with the switched wallpaper as the background.
其中,所述选择模块202包括:第一计算单元,用于获取每个应用图标在终端屏幕壁纸上所占的壁纸面积,并分别计算每个应用图标所占壁纸面积的壁纸色系平均值;第二计算单元,用于分别计算图标库中每个应用图标的应用色系平均值;选择单元,用于利用所计算的壁纸色系平均值和应用色系平均值,分别选择一个与所述壁纸色系的对比色相近的图标。具体地说,所述第一计算单元包括:获取壁纸ARGB值子单元,用于分别获取每个应用图标壁纸面积上所有像素点相对应的壁纸ARGB值;计算壁纸色系平均值子单元,用于根据所获取的壁纸ARGB值,计算出每个应用图标所占壁纸面积的壁纸色系平均值。所述第二计算单元包括:获取应用ARGB值子单元,用于分别获取每个应用图标的图标库中所有像素点相对应的应用ARGB值;计算应用色系平均值子单元,用于根据所获取的应用ARGB值,计算出图标库中每个应用图标的应用色系平均值。 Wherein, the selection module 202 includes: a first calculation unit, configured to obtain the wallpaper area occupied by each application icon on the terminal screen wallpaper, and calculate the average value of the wallpaper color system of the wallpaper area occupied by each application icon; The second calculation unit is used to separately calculate the average value of the application color system of each application icon in the icon library; the selection unit is used to use the calculated average value of the wallpaper color system and the average value of the application color system to select a color system corresponding to the above-mentioned Icons that are similar to the contrasting color of the wallpaper color family. Specifically, the first calculation unit includes: a subunit for acquiring wallpaper ARGB values, which is used to respectively acquire the wallpaper ARGB values corresponding to all pixels on the wallpaper area of each application icon; a subunit for calculating the average value of the wallpaper color system, using Based on the acquired ARGB value of the wallpaper, the average value of the wallpaper color system of the wallpaper area occupied by each application icon is calculated. The second computing unit includes: obtaining an application ARGB value subunit for obtaining the application ARGB values corresponding to all pixels in the icon library of each application icon; The obtained ARGB value of the application is used to calculate the average value of the application color system of each application icon in the icon library.
本发明所述图标库中每个应用的图标是通过应用自身获得或通过网络下载主题包获得。 The icon of each application in the icon library of the present invention is obtained by the application itself or by downloading a theme package from the network.
图4显示了本发明实施例提供的自动更换应用图表的方法流程图,如图4所示,首先需要监听壁纸变化的系统事件(框架侧支持,比如在Android系统中就是通过监听壁纸更换消息达到目标),应用图标需有多个图标作为备选,来源可为应用自身或者网上下载的主题包。其方法包括以下步骤: Fig. 4 has shown the flow chart of the method for automatically replacing the application graph provided by the embodiment of the present invention, as shown in Fig. 4, first need to monitor the system event of wallpaper change (supported by the frame side, for example, in the Android system, it is achieved by monitoring the wallpaper change message target), the application icon needs to have multiple icons as alternatives, and the source can be the application itself or a theme package downloaded from the Internet. Its method includes the following steps:
步骤S401:桌面壁纸发生更换; Step S401: the desktop wallpaper is changed;
步骤S402:遍历所有待机界面上的应用图标; Step S402: traversing all application icons on the standby interface;
当壁纸更换后,遍历当前桌面上所有显示的应用图标。 When the wallpaper is changed, traverse all the application icons displayed on the current desktop.
步骤S403:通过其坐标可获取所占的那片壁纸; Step S403: Obtain the occupied piece of wallpaper through its coordinates;
对于每个应用,都可通过其坐标获取其所占的那片壁纸。 For each application, the piece of wallpaper it occupies can be obtained through its coordinates.
步骤S404:获取这片壁纸上的所有像素点的色彩; Step S404: Obtain the colors of all pixels on the wallpaper;
获取这片壁纸上的所有像素点的色彩,以ARGB为例(其余类似),将这些色彩的数值分别取平均数,得到一个平均ARGB值。 Obtain the colors of all pixels on this wallpaper, take ARGB as an example (others are similar), and average the values of these colors to obtain an average ARGB value.
步骤S405:遍历该应用所有备选图标,也是同样获取该图标各个像素点的ARGB值(通过工具接口,各个平台类似),然后同样获取一个平均ARGB值; Step S405: traverse all the candidate icons of the application, also obtain the ARGB value of each pixel of the icon (through the tool interface, similar for each platform), and then also obtain an average ARGB value;
步骤S406:将各个图标的平均ARGB值和壁纸所占区域的平均ARGB值进行比较,获得与壁纸平均ARGB的差值绝对值和; Step S406: Comparing the average ARGB value of each icon with the average ARGB value of the area occupied by the wallpaper to obtain the absolute value sum of the difference with the average ARGB value of the wallpaper;
步骤S407:选择差值绝对值和最大的图标为应用图标。 Step S407: Select the icon with the largest sum of the absolute value of the difference as the application icon.
下面以具体的实施例来说明本发明的内容: The content of the present invention is described below with specific embodiment:
壁纸发生变化,各个应用获取对应位置的图片层,如图3所示,这是一个5*4的布局,比如A应用位于第五行第二列(图3中为图库应用),整个屏幕是5行4列的配置。那么根据比例关系自然可获取A应用图标所占据的那个矩形图片块,如图5所示,显示了终端图库应用所占据的那块壁纸面积,并获取该壁纸面积上的所有像素点。这里假设一共是4个点(实际情况是几百个点,但逻辑一样),分别获取对应的ARGB值,比如为: When the wallpaper changes, each application obtains the image layer at the corresponding position, as shown in Figure 3, which is a 5*4 layout, for example, application A is located in the fifth row and second column (the gallery application in Figure 3), and the entire screen is 5 Row 4 column configuration. Then, according to the proportional relationship, the rectangular picture block occupied by the application icon of A can be naturally obtained, as shown in Figure 5, which shows the area of the wallpaper occupied by the terminal gallery application, and obtains all the pixels on the area of the wallpaper. Here it is assumed that there are a total of 4 points (the actual situation is hundreds of points, but the logic is the same), and the corresponding ARGB values are obtained respectively, for example:
(100,10,20,30)(100,30,20,130) (100,10,20,30)(100,30,20,130)
(100,10,40,30)(100,10,20,130) (100,10,40,30)(100,10,20,130)
那么获取平均像素点。每个位置上的点的值都为所有点对应位置上的值的平均值。比如第二个位置上的值即为: Then get the average pixel point. The value of the point at each position is the average value of the values at the corresponding positions of all points. For example, the value at the second position is:
(10+30+10+10)/4=15 (10+30+10+10)/4=15
得到平均值为:(100,15,25,80) The average value obtained is: (100,15,25,80)
假设该应用有两个应用图标可用,用上述同样的方法可获取对应应用图标的平均ARGB值,两个应用图标分别为: Assuming that the application has two application icons available, the average ARGB value of the corresponding application icon can be obtained by using the same method as above. The two application icons are:
(100,120,80,45),(100,200,120,10) (100,120,80,45), (100,200,120,10)
比较应用图标和对应图片块平均ARGB的差值: Compare the difference between the app icon and the average ARGB of the corresponding image block:
那么图片一的差值为:(120-15)+(80-25)+Math.abs(45-80)=195 Then the difference of picture 1 is: (120-15)+(80-25)+Math.abs(45-80)=195
图片二的差值为:(200-15)+(120-25)+Math.abs(10-80)=350 The difference of picture 2 is: (200-15)+(120-25)+Math.abs(10-80)=350
所以应该选择图片二为默认应用图标。 So you should choose picture 2 as the default application icon.
综上所述,本发明具有以下技术效果: In summary, the present invention has the following technical effects:
本发明在有多个图标以备选择的情况下,根据应用图标占据的面积中的像素点色系平均值来选择最佳的应用图标,使得应用的图标不会因所设壁纸的更改而显示不清楚,提高了用户体验。 In the present invention, when there are multiple icons for selection, the best application icon is selected according to the average value of the pixel color system in the area occupied by the application icon, so that the application icon will not be displayed due to the change of the set wallpaper Not clear, improved user experience.
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。 Although the present invention has been described in detail above, the present invention is not limited thereto, and various modifications can be made by those skilled in the art based on the principle of the present invention. Therefore, any modifications made according to the principles of the present invention should be understood as falling within the protection scope of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410425287.2A CN105373285A (en) | 2014-08-26 | 2014-08-26 | Method and device for changing application icons of terminal |
| PCT/CN2014/093878 WO2015117505A1 (en) | 2014-08-26 | 2014-12-15 | Method and device for changing application logos on terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410425287.2A CN105373285A (en) | 2014-08-26 | 2014-08-26 | Method and device for changing application icons of terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105373285A true CN105373285A (en) | 2016-03-02 |
Family
ID=53777310
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410425287.2A Pending CN105373285A (en) | 2014-08-26 | 2014-08-26 | Method and device for changing application icons of terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105373285A (en) |
| WO (1) | WO2015117505A1 (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105843625A (en) * | 2016-04-01 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device for setting application icon |
| CN106201536A (en) * | 2016-07-15 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | The replacing options of a kind of application icon and terminal unit |
| CN107219986A (en) * | 2017-05-12 | 2017-09-29 | 奇酷互联网络科技(深圳)有限公司 | A kind of wallpaper method to set up, device and mobile terminal applied to terminal |
| CN107479781A (en) * | 2017-07-20 | 2017-12-15 | 努比亚技术有限公司 | A kind of update method and terminal of application icon color |
| CN108008951A (en) * | 2017-11-24 | 2018-05-08 | 北京酷我科技有限公司 | A kind of method of analog CD machine result of broadcast |
| CN108733448A (en) * | 2018-05-28 | 2018-11-02 | 北京小米移动软件有限公司 | Theme processing method, device, equipment, system and storage medium |
| CN109993738A (en) * | 2019-03-31 | 2019-07-09 | 联想(北京)有限公司 | A kind of processing method and electronic equipment |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106503004B (en) * | 2015-09-07 | 2020-09-11 | 腾讯科技(深圳)有限公司 | An information processing method and device, and a terminal |
| CN105204736A (en) * | 2015-09-16 | 2015-12-30 | 成都中科创达软件有限公司 | Application software icon replacing method and application software icon replacing system |
| CN106873863B (en) * | 2015-12-09 | 2021-02-19 | 斑马智行网络(香港)有限公司 | Method and device for setting interface switching animation |
| CN109408177B (en) * | 2018-09-29 | 2022-08-12 | 北京乐蜜科技有限责任公司 | Method and device for configuring color of characters in picture and electronic equipment |
| CN113407289A (en) * | 2021-07-13 | 2021-09-17 | 上海米哈游璃月科技有限公司 | Wallpaper switching method, wallpaper generation method, device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101308445A (en) * | 2008-06-26 | 2008-11-19 | 无敌科技(西安)有限公司 | Method for effectively relieving menu icon under picture background |
| CN101916168A (en) * | 2010-08-31 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Application icon display method, system and mobile terminal |
| CN102724582A (en) * | 2012-05-31 | 2012-10-10 | 福州瑞芯微电子有限公司 | Method for displaying color key based on user interface |
| CN102938863A (en) * | 2012-11-27 | 2013-02-20 | 乐视致新电子科技(天津)有限公司 | Intelligent television icon theme replacement method and device based on Android system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100362848C (en) * | 2005-07-11 | 2008-01-16 | 佛山市顺德区顺达电脑厂有限公司 | Screen-icon color changing method |
| US20120127198A1 (en) * | 2010-11-22 | 2012-05-24 | Microsoft Corporation | Selection of foreground characteristics based on background |
-
2014
- 2014-08-26 CN CN201410425287.2A patent/CN105373285A/en active Pending
- 2014-12-15 WO PCT/CN2014/093878 patent/WO2015117505A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101308445A (en) * | 2008-06-26 | 2008-11-19 | 无敌科技(西安)有限公司 | Method for effectively relieving menu icon under picture background |
| CN101916168A (en) * | 2010-08-31 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Application icon display method, system and mobile terminal |
| CN102724582A (en) * | 2012-05-31 | 2012-10-10 | 福州瑞芯微电子有限公司 | Method for displaying color key based on user interface |
| CN102938863A (en) * | 2012-11-27 | 2013-02-20 | 乐视致新电子科技(天津)有限公司 | Intelligent television icon theme replacement method and device based on Android system |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105843625A (en) * | 2016-04-01 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device for setting application icon |
| CN106201536A (en) * | 2016-07-15 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | The replacing options of a kind of application icon and terminal unit |
| CN107219986A (en) * | 2017-05-12 | 2017-09-29 | 奇酷互联网络科技(深圳)有限公司 | A kind of wallpaper method to set up, device and mobile terminal applied to terminal |
| CN107479781A (en) * | 2017-07-20 | 2017-12-15 | 努比亚技术有限公司 | A kind of update method and terminal of application icon color |
| CN108008951A (en) * | 2017-11-24 | 2018-05-08 | 北京酷我科技有限公司 | A kind of method of analog CD machine result of broadcast |
| CN108733448A (en) * | 2018-05-28 | 2018-11-02 | 北京小米移动软件有限公司 | Theme processing method, device, equipment, system and storage medium |
| CN109993738A (en) * | 2019-03-31 | 2019-07-09 | 联想(北京)有限公司 | A kind of processing method and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015117505A1 (en) | 2015-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105373285A (en) | Method and device for changing application icons of terminal | |
| CN104965631B (en) | Desktop color matching method and device and intelligent terminal | |
| CN103164839B (en) | A drawing method, device and terminal | |
| CN105608161B (en) | Loading progress display method and terminal | |
| CN102508655B (en) | Method and system for displaying desktop icons | |
| CN103020250B (en) | The map-indication method of a kind of Distribution GIS and device | |
| CN105183349B (en) | Display method of image editing tool and mobile terminal | |
| EP2837992A1 (en) | User interface interaction method and apparatus applied in touchscreen device, and touchscreen device | |
| CN107221290A (en) | Mura compensation display method and device and computer readable storage medium | |
| CN105808230B (en) | Method and device for moving floating icons | |
| CN109731329B (en) | Method and device for determining placement position of virtual component in game | |
| KR20210002761A (en) | Apparatus and method for supplying content aware photo filters | |
| WO2012122933A1 (en) | Icon generation method | |
| US9684947B2 (en) | Indicating availability of indoor content on a digital map | |
| WO2016145832A1 (en) | Method of operating terminal and device utilizing same | |
| CN105825499A (en) | Reference plane determination method and determination system | |
| CN108170356B (en) | Application split screen method and related product | |
| CN106980510A (en) | The form adaptive approach and device of a kind of player | |
| TWI547853B (en) | System and method for displaying user interface | |
| CN104331225A (en) | Picture display method and picture display device | |
| CN103984477A (en) | Method and device for adapting UI to mobile clients in different screen sizes | |
| CN105260081A (en) | Icon processing method and apparatus | |
| JP5989942B2 (en) | BACKGROUND DISPLAY METHOD, DEVICE, ELECTRONIC DEVICE, PROGRAM, AND RECORDING MEDIUM | |
| CN117668352A (en) | Method, apparatus, device, storage medium and program product for generating landing page | |
| CN105334956A (en) | Information processing method and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | 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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |