Imitation apple notifications are displayed in the upper right corner of the icon

Source: Internet
Author: User

You may see this article when you encounter such a need, through a search. But I'm sorry, I don't have any good solutions at the moment. The question was raised by occasional mention by my colleague.

At present, I see the millet in more than 4.4 of the system to provide such a function, do not know whether other mobile phone systems have, but also do not know how the specific operation, such as is not only the system comes with the application? What is the difference between the message displayed on the notification bar and the message displayed on the icon? Wait a minute.

Of course, I also know a little principle, this is the Android phone manufacturers at the system level, the general third-party application development is not this level of permissions (Good Android system, the other application is the notification bar, you simply icon notification, good "harmony"). And as far as I can infer, it should be the level of the framework layer, so if you're like me, interested in such a question, or have found an answer, tell me, let's make progress together.

The following is my online search for relevant content, is also estimated from other sites copied and pasted, url: http://www.010lm.com/life/2014/0917/553765.html

Note that the weather in millet, when the weather changes, the Desktop app icon will automatically change, very curious how this is done.

2014.8.22, supplementing, recently learned information, this issue relates to some operating system open permissions on the app, icon changes include the upper corner and the entire icon changes, currently Android's open and its derived operating system are not open to the app icon change permissions, To some software open the upper corner of the digital Change permission, and the mini weather icon will change because it is the official self-brought software, the permissions are high.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

User reply:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

User reply:

Simple MIUI theme can be done, I originally in the System to import an icon package, and then a few icons have a dynamic effect, open the icon package, inside is a few or more than 10 different icons, there is a code file, rely on this code to let software switch icon, the clock of the second hand can actually go ha ha haha , it's so interesting.

20140331 Supplemental weather automatically change the code to run, I am very sorry, I do not understand, if anyone can understand the words to help translate

<?xml version= "1.0" encoding= "Utf-8"?>

<!--weather--

<icon version= "1" framerate= "0" width= "136" height= "136" resdensity= "from" extraresourcesdensity= "320,480" Extrascalebydensity= "480:1.412" usevariableupdater= "None" >

<VariableBinders>

<contentproviderbinder

Uri= "Content://weather/weather"

Columns= "City_name,temperature,temperature_range,description,weather_type"

Countname= "Hasweather" >

<variable name= "weather_id" type= "int" column= "Weather_type"/>

<variable name= "Weather_location" type= "string" column= "City_name"/>

<variable name= "weather_temperature" type= "int"

Imitation apple notifications are displayed in the upper right corner of the icon

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.