WO2018145536A1 - Procédé et dispositif d'adaptation de couleur de notification d'application dans un système android et équipement informatique - Google Patents
Procédé et dispositif d'adaptation de couleur de notification d'application dans un système android et équipement informatique Download PDFInfo
- Publication number
- WO2018145536A1 WO2018145536A1 PCT/CN2017/120192 CN2017120192W WO2018145536A1 WO 2018145536 A1 WO2018145536 A1 WO 2018145536A1 CN 2017120192 W CN2017120192 W CN 2017120192W WO 2018145536 A1 WO2018145536 A1 WO 2018145536A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- color
- font
- notification
- style
- default
- 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.)
- Ceased
Links
Images
Classifications
-
- 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
Definitions
- notifications from devices with Android (Andriod) systems mainly include system default notifications and application notifications.
- the default notification of the system is customized by the manufacturer.
- the layout, color background, and font color of the notification are well defined by the system, so the Android device can display the system default notification normally.
- the application notification is a custom notification issued by an application (APP) installed in the system, and the background color and font color of the notification are set by the application.
- APP application
- the manufacturer may prohibit the application installed on the Android system from modifying the notification color when popping up the notification, for example, the background color is prohibited from being modified. Therefore, if the font color of the application notification is close to the background color of the system default notification, the user may not be able to view it. Clear the content of the application notification, affecting the user experience.
- the default notification color of the Android phone A system is black on white, and restricts other APP pop-up application notifications to modify its background color. If the color of the notification sent by the application B installed on the Android phone A is white on a black background, since the system prohibits the application from notifying the custom background color, the application notification displayed to the user is white on a white background, and the user cannot see the notification of the application. content.
- the main objective of the present invention is to provide a method, an apparatus, and a computing device for an application notification adaptation color in an Android system, which can obtain a system default font or a background color by constructing a system default notification, thereby notifying the configuration phase of the application. Adapt to the color scheme so that the content of the app notification can be recognized by the user.
- the system default notification to obtain the default font or background color of the system, it is possible to configure an appropriate color matching style for the application notification to avoid the problem of notification background and font mismatch caused by the system prohibiting the application from modifying the notification color.
- the method further comprises the steps of:
- the color matching style that matches the color of the font is selected as the default color matching style for the application notification.
- obtaining the default font color of the system may include: obtaining a default title text color of the system as a system default font color.
- obtaining a default title text color of the system as a system default font color.
- the specific system is selected to notify the color matching style as the default color matching style of the application notification.
- the most suitable color matching can be selected as the default color matching style of the application notification when the system has multiple color matching styles.
- the similarity described above can be determined by the distance within the color space.
- selecting a color matching style that matches the font or background color comprises:
- a color matching style that is the same as or similar to the color matching sample is selected; otherwise, a color matching style different from the color matching sample is selected.
- the color matching style selected to match the font or background color includes:
- diff is the color difference between the font or background color and pure black
- diff_max is the color difference between pure black and pure white
- the font color is determined to be similar to pure black when s is greater than 0.5.
- an apparatus for adapting an application notification color under an Android system includes: a system color acquisition unit configured to construct a system default notification to obtain a system default font or background color; and an application color selection The unit is used to select the color matching style that matches the font or background color as the default color matching style for the app notification.
- the application color matching unit is used to:
- the color matching style that matches the color of the font is selected as the default color matching style for the application notification.
- the system color acquisition unit obtains the default title text color of the system as the default font color of the system.
- the application color selection unit is used for:
- the specific system is selected to notify the color matching style as the default color matching style of the application notification.
- the same or similar is determined by the font or background color being notified by a particular system of the font of the color matching style or the distance of the background color within the color space.
- the application color matching unit is used to:
- a color matching style that is the same as or similar to the color matching sample is selected; otherwise, a color matching style different from the color matching sample is selected.
- the application color matching unit is used to:
- diff is the color difference between the font or background color and pure black
- diff_max is the color difference between pure black and pure white
- a computing device comprising: a memory for storing information; a processor coupled to the memory for constructing a system default notification to obtain a system default font or background color from the memory; Select the color style that matches the font or background color from the memory as the default color style for the app notification.
- the processor is further configured to:
- the color matching style that matches the color of the font is selected as the default color matching style for the application notification.
- the processor is further configured to:
- the processor is further configured to:
- the specific system is selected to notify the color matching style as the default color matching style of the application notification.
- the processor is further configured to determine the same or similar by the font or background color and the distance of the font or background color of the color matching style in the color space by the particular system.
- the processor is further configured to:
- a color matching style that is the same as or similar to the color matching sample is selected; otherwise, a color matching style different from the color matching sample is selected.
- the processor is also configured to:
- the processor is also configured to:
- diff is the color difference between the font or background color and pure black
- diff_max is the color difference between pure black and pure white
- an embodiment of the present invention further provides a computer readable storage medium carrying one or more computer instruction programs, where the computer instruction program is executed by one or more processors, the one or The plurality of processors perform the method of adapting the application notification color under the Android system described above.
- the method, device and computing device for adapting the application notification color in the Android system of the present invention can obtain the default color matching style as the default color matching style of the application by constructing a default notification to obtain the default font or background color of the system, thereby avoiding The system prohibits the notification background and font mismatch caused by modifying the notification color, ensuring the user experience and ensuring that the related services corresponding to the application notification can run normally.
- FIG. 1 shows a functional block diagram of a computing device in accordance with an embodiment of the present invention.
- FIG. 2 is a flow chart showing a method of adapting an application notification color in an Android system according to the present invention.
- FIG. 3 is a functional block diagram of an apparatus for adapting an application notification color under an Android system in accordance with the present invention.
- the manufacturer may prohibit the application installed on the Android system from modifying the notification color when popping the notification, for example, prohibiting the application from modifying the notification background color, the background color and application of the system default notification are replaced instead of the display.
- the font color of the notification is close, the user cannot see the content of the application notification, thereby affecting the user experience.
- the memory 110 is used to store information, which may include color combinations of system default notifications, such as fonts and corresponding background colors.
- the default font color of the system can be, for example, black, and the background color is white.
- a plurality of colors of any color space or color gamut can also be stored in the memory 110.
- the processor 120 can construct a system default notification to retrieve the system default font or background color from the memory 110.
- the processor may include a notification construction unit that may generate a system default notification to obtain a layout file ID of the default notification, and the processor may further include a layout generation unit that may generate a layout corresponding to the obtained layout The view container of the file ID, and then traverse the child controls of the view container to get the font color or background color of the system default notification.
- the processor 120 can also select a color matching style corresponding to the font or the background color from the memory 110 as the default color matching style of the application notification. For example, when the font color of the acquired system default notification is black, black is selected from the memory 110 as the font color of the application notification. Or when the default background color of the obtained system is white, a color such as black which is significantly different from white is selected from the memory as the font color of the application notification, so that the font color of the application notification does not conflict with the default background color of the system. For user identification.
- the font color of the application notification can be adapted to the system default background color, and the font color of the pop-up application notification is significantly different from the background color of the system default notification, so that the user can easily recognize, thereby ensuring the user's notification reading experience.
- the processor may also select other color matching styles from the memory as the default color matching style for application notification.
- the font or background color of the system default notification acquired by the processor is other colors (for example, white on black background, white on transparent background, etc.)
- a plurality of matching color matching styles may also be selected as the color matching style of the application notification.
- FIG. 2 shows a flow chart of an adaptation method in accordance with an embodiment of the present invention.
- Android app message reminders can display notification content in a pop-up box. That is, the system can display the notification content to the user by a Toast that pops up automatically after a few seconds.
- the application notification needs to be properly matched. For example, the font color of the notification needs to be adapted to the background color in order to provide the user with an easily recognizable and aesthetically pleasing notification.
- the solution of the present invention knows the default notification color of the system by constructing a system default notification without actually issuing the notification of the above configuration.
- the font color or background color of the system default notification can be obtained by traversing the child controls of the view container by knowing the layout ID of the system default notification and the corresponding view container.
- the system default notification A may be generated by a module provided by the system, such as a notification constructor, by the system default notification A's content view and calling its native API to obtain a corresponding layout ID, which is generated using, for example, a layout generator provided by the system.
- the view container B corresponding to the layout ID of the system default notification traverses all the child controls of the view container B, finds all the text control list C whose control type is TextView type, and traverses the text control list C to obtain the font color of the system default notification.
- all child controls of view container B can also be traversed in a similar manner to obtain the background color of the system default notification.
- the color matching style corresponding to the system default font or background color may be selected as the default color matching style of the application notification. For example, when the color of the system default font is black, you can select the color style with black font as the default color for application notification, and so on.
- step S210 it is also preferable to obtain the default text color of the system as the default font color of the system.
- these color matching styles may be read in advance to facilitate selection of a matching color matching style according to the font or background color acquired in step S210. Therefore, for step S220, all system notification color matching styles can be acquired, and the specific system notification color matching is selected if it is determined that the font or background color of the system notification is the same or similar to the font or background color of the specific system notification color matching style.
- Style is the default color style for app notifications.
- the color matching style in which the title color is the same as black can be selected. If there is more than one color matching style with the title color being black, the text content color and/or the background color can be further compared to select the color matching style with the largest similarity.
- the similarity of colors can be judged by introducing the concept of color null.
- the similarity may be determined by the font or background color being notified to the particular system by the font of the color-matching style or the distance of the background color within the color space.
- the color space here can be a color space actually used by systems such as RGB space and CMYK space.
- the similarity of colors can be judged by the following method.
- Color1 and Color2 which can be converted into two three-dimensional coordinates in the RGB color space, such as Color1 converted to (R1, G1, B1) and Color2 converted to (R2, G2, B2).
- the above distance may represent a color difference between the two colors.
- the system notification color matching style whose background or font is the smallest with the background or font color difference obtained in step S210 can be selected from the acquired system notification color matching style as the color matching style of the application notification.
- the system usually has two color schemes of white on black and black on white, so that it can be simply stepped in without having to obtain the color scheme of the system notification in advance.
- the color obtained by the S210 is closer to pure black or pure white and is directly selected from the white color on black and the black color on white.
- the similarity formula can be used to determine whether the font or background color of the acquired system default notification is similar to pure black.
- the color difference diff_max calculated by pure white and pure black can be used as the denominator, and Color1 and Color2 are calculated.
- the similarity value can be between 0 and 1.
- FIG. 3 is a functional block diagram of an apparatus (referred to as an adaptation apparatus) for adapting an application notification color in an Android system according to an embodiment of the present invention.
- the functional modules of the adaptation device 300 may be implemented by hardware, software or a combination of hardware and software that implements the principles of the present invention.
- the functional modules described in FIG. 3 can be combined or divided into sub-modules to implement the principles of the above invention. Accordingly, the description herein may support any possible combination, or division, or further limitation of the functional modules described herein.
- the adapting device 300 shown in FIG. 3 can be used to implement the method shown in FIG. 2, and only the functional modules that the adapting device 300 can have and the operations that can be performed by the functional modules are briefly described, for the details involved. Reference may be made to the description above in conjunction with FIG. 2, and details are not described herein again.
- the adaptation apparatus 300 can include a system color acquisition unit 310 and an application color selection unit 320, wherein the system color acquisition unit 310 can be configured to construct a system default notification to obtain a system default font or background color;
- the color matching unit 320 can be used to select a color matching style that matches the font or background color as a default color matching style for the application notification. Therefore, the sent application notification can load different color notification layouts according to the system default font or background color, and solve the compatibility problem of different manufacturers and different system versions.
- the system color acquisition unit 310 can preferably acquire the system default title text color as the system default font color.
- the application color selection unit 320 can acquire all the system notification color matching styles, and if the font or the background color is determined to be the same and similar to the font or background color of the specific system notification color matching style, the specific system notification color matching style is selected as the default of the application notification. Color style.
- the application color selection unit 320 can also directly compare the acquired color with pure black or pure white, and directly according to the similarity between the acquired color and the pure black or pure white, directly from the black and white on the white background. select.
- the terminal device includes a processor 310, a memory 320, an internal memory 330, a network interface 340, and a display screen 350 connected through a system bus.
- the processor 310 is configured to implement a computing function and a function of controlling the operation of the terminal device, and the processor 310 is configured to execute the method for adapting the application notification color under the Android system provided by the above embodiment.
- the processor 310 is configured to construct a system default notification to obtain a system default font or background color; and select a color matching style that matches the font or background color as a default color matching style for the application notification.
- the memory 320 is a non-volatile storage medium, and stores an operating system 321, a database 322, and a computer program for implementing the read-and-write separation mode-based download speed-up method provided by the above embodiments, and a candidate intermediate generated by executing the computer program. Data and result data.
- Network interface 340 is used to communicate with the server, and network interface 340 includes a radio frequency transceiver.
- the application further provides a computer readable storage medium having one or more computer program programs thereon, the one or more computer program programs being executed by one or more processors, the one or more The processor executes the method of adapting the application notification color under the Android system described above.
- the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
- the foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk.
- RAM random access memory
- ROM read-only memory
- magnetic disk or an optical disk.
- optical disk A medium that can store program code.
- the above-described integrated unit of the present application may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product.
- the technical solution of the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making
- a computer device which may be a personal computer, server, or network device, etc.
- the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.
- This scheme constructs an instance of the system default notification, which simply uses the title text color of the system default notification as the default font color of the system, and selects black text on white or black on white according to the similarity between font color and pure black.
- the system color scheme is used as an application notification color.
- the specific implementation process is as follows:
- the role is to generate a view container according to the layout file) to generate a view container B corresponding to the layout file ID of the notification A;
- the color adaptation is perfectly implemented, so that the user can clearly see the content of the notification display, thereby improving the user experience and ensuring the normal operation of the related business corresponding to the notification.
- the Android system provided by the company has a number of default shielding application modification notification color matching, especially the background color phenomenon.
- the adaptation scheme of the present invention it is possible to avoid the problem of prohibiting the application from modifying the font and the background color confusion caused by the background color, and realizing the perfect adaptation of the application notification color matching style and the system default notification.
- the solution is universal and can also solve compatibility problems between different vendors and different system versions.
- the method according to the invention can also be implemented as a computer program comprising computer program code instructions for performing the various steps defined above in the above method of the invention.
- the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer for performing the above-described functions defined in the above method of the invention program.
- the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
- each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
- the functions noted in the blocks may also occur in a different order than the ones in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
L'invention concerne un procédé et un dispositif pour adapter une couleur de notification d'application dans un système android et un équipement informatique, le procédé consistant à : construire une notification par défaut de système pour obtenir une police de caractères ou une couleur d'arrière-plan par défaut de système (S210); et sélectionner un style de correspondance de couleurs correspondant à la police de caractères ou la couleur d'arrière-plan en tant que style de correspondance de couleurs par défaut de la notification d'application (S220). Ainsi, le style de correspondance de couleurs d'une notification d'application peut s'adapter au style de correspondance de couleurs par défaut de système, de telle sorte qu'un utilisateur peut identifier le contenu de la notification d'application.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710075908.2A CN106873996A (zh) | 2017-02-13 | 2017-02-13 | 安卓系统下适配应用通知颜色的方法、装置及计算设备 |
| CN201710075908.2 | 2017-02-13 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018145536A1 true WO2018145536A1 (fr) | 2018-08-16 |
Family
ID=59165965
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/120192 Ceased WO2018145536A1 (fr) | 2017-02-13 | 2017-12-29 | Procédé et dispositif d'adaptation de couleur de notification d'application dans un système android et équipement informatique |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106873996A (fr) |
| WO (1) | WO2018145536A1 (fr) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106873996A (zh) * | 2017-02-13 | 2017-06-20 | 广州优视网络科技有限公司 | 安卓系统下适配应用通知颜色的方法、装置及计算设备 |
| CN115191015A (zh) | 2020-03-11 | 2022-10-14 | 惠普发展公司,有限责任合伙企业 | 信息元素的颜色改变 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120075330A1 (en) * | 2006-05-03 | 2012-03-29 | Gerhard Dietrich Klassen | Dynamic theme color palette generation |
| CN105094549A (zh) * | 2015-07-20 | 2015-11-25 | 小米科技有限责任公司 | 显示消息的方法及装置 |
| CN105094821A (zh) * | 2015-07-17 | 2015-11-25 | 百度在线网络技术(北京)有限公司 | 一种用于确定被调用的应用的背景信息的方法和装置 |
| CN105677266A (zh) * | 2014-11-18 | 2016-06-15 | 青岛海信移动通信技术股份有限公司 | 一种电子设备及其图标显示方法 |
| CN105700770A (zh) * | 2016-01-05 | 2016-06-22 | 努比亚技术有限公司 | 一种桌面图标角标通知的显示方法及终端设备 |
| CN106873996A (zh) * | 2017-02-13 | 2017-06-20 | 广州优视网络科技有限公司 | 安卓系统下适配应用通知颜色的方法、装置及计算设备 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102508666B (zh) * | 2011-11-11 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | 应用程序中应用提示信息的调整方法及装置 |
| CN103218115B (zh) * | 2013-03-06 | 2016-09-28 | 广东欧珀移动通信有限公司 | 一种通知栏的优化显示方法及移动终端 |
| US8929679B1 (en) * | 2013-06-12 | 2015-01-06 | Google Inc. | Systems and methods for changing contrast based on brightness of an output for presentation on a display |
| CN107544796B (zh) * | 2016-06-28 | 2021-03-09 | 阿里巴巴(中国)有限公司 | 一种通知栏消息显示方法、装置及用户终端 |
-
2017
- 2017-02-13 CN CN201710075908.2A patent/CN106873996A/zh active Pending
- 2017-12-29 WO PCT/CN2017/120192 patent/WO2018145536A1/fr not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120075330A1 (en) * | 2006-05-03 | 2012-03-29 | Gerhard Dietrich Klassen | Dynamic theme color palette generation |
| CN105677266A (zh) * | 2014-11-18 | 2016-06-15 | 青岛海信移动通信技术股份有限公司 | 一种电子设备及其图标显示方法 |
| CN105094821A (zh) * | 2015-07-17 | 2015-11-25 | 百度在线网络技术(北京)有限公司 | 一种用于确定被调用的应用的背景信息的方法和装置 |
| CN105094549A (zh) * | 2015-07-20 | 2015-11-25 | 小米科技有限责任公司 | 显示消息的方法及装置 |
| CN105700770A (zh) * | 2016-01-05 | 2016-06-22 | 努比亚技术有限公司 | 一种桌面图标角标通知的显示方法及终端设备 |
| CN106873996A (zh) * | 2017-02-13 | 2017-06-20 | 广州优视网络科技有限公司 | 安卓系统下适配应用通知颜色的方法、装置及计算设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106873996A (zh) | 2017-06-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10062362B2 (en) | Electronic device including hidden display and method for displaying information thereof | |
| US10009534B2 (en) | Device and method for detecting focus of electronic device | |
| US10387510B2 (en) | Content search method and electronic device implementing same | |
| US9888061B2 (en) | Method for organizing home screen and electronic device implementing the same | |
| AU2018216529B2 (en) | Method for switching applications, and electronic device thereof | |
| US10146412B2 (en) | Method and electronic device for providing information | |
| US10416843B2 (en) | Electronic device and method of controlling object in electronic device | |
| US10089332B2 (en) | Method and electronic device for classifying contents | |
| US10503390B2 (en) | Electronic device and photographing method | |
| US9529491B2 (en) | Screen display method and electronic device supporting same | |
| US10002255B2 (en) | Method and device for controlling security screen in electronic device | |
| US9959803B2 (en) | Electronic device and method of content display | |
| US12197700B2 (en) | Method of selecting one or more items according to user input and electronic device therefor | |
| US20170286058A1 (en) | Multimedia data processing method of electronic device and electronic device thereof | |
| US20150205567A1 (en) | Method and apparatus for controlling user interface | |
| US20180157377A1 (en) | Electronic device and method for providing graphic user interface therefor | |
| KR20240055705A (ko) | 지정 항목 추천 방법 | |
| CN113296906B (zh) | 任务配置方法及装置 | |
| US20160086138A1 (en) | Method and apparatus for providing function by using schedule information in electronic device | |
| WO2018145536A1 (fr) | Procédé et dispositif d'adaptation de couleur de notification d'application dans un système android et équipement informatique | |
| US10334173B2 (en) | Electronic device and method for editing image in electronic device | |
| US20160063678A1 (en) | Method of Processing Image and Electronic Device Thereof | |
| US20150363093A1 (en) | Method and device for displaying application execution screen in electronic device | |
| CN112988810B (zh) | 信息查找方法、装置及设备 | |
| US11176207B2 (en) | Method and electronic device for classifying content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17895866 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17895866 Country of ref document: EP Kind code of ref document: A1 |