android-icons

How to show notification count on app icon like Facebook?

旧时模样 提交于 2019-12-03 01:48:50
I want to show unread notification count on my app icon when app is not opened. this post seems to be close but it is 3 years old . Has there been any change on this or I should go with solutions provided in the accepted answer? BooDoo Unfortunately you cant achieve this for all android devices. Certain manufacturers (e.g. Samsung or Sony) have included this functionality into their customised Android launchers. Also some 3rd-party launchers (e.g. Nova Launcher) have included an API to accomplish this. Some related posts for more information: How does Facebook add badge numbers on app icon in

Legacy icon does not show when using adaptive icon

故事扮演 提交于 2019-12-02 20:28:46
I just converted my app icon to be compatible with android o's adaptive icons using the Image Asset Studio in android studio when I run my project now on my device running API 25 I get the default green android icon and not my icon. this is my manifest <application android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" android:allowBackup="false" android:roundIcon="@mipmap/ic_launcher_round" tools:replace="allowBackup" tools:ignore="GoogleAppIndexingWarning"> and these are the files the image asset studio created Is this just an Android Studio bug

Material Design icon colors

a 夏天 提交于 2019-12-02 18:49:40
Which color should be the "dark" material icon ? On the official documentation ( https://www.google.com/design/spec/style/icons.html#icons-system-icons at the bottom) it is 54 % black (grey) , but all downloads of the material icons are either white or 100 % black . Also on the new official site https://www.google.com/design/icons/ you can download either white or black, but not "grey"! So I have to set 54 % to all downloaded icons for myself? Or did I miss something? I am too late to reply but nevertheless I will answer the question since it may save lot of time for some developers. I myself

“Android Asset Studio” adds extra space when I upload my .png icons, but doesn't when it uses its internal cliparts. Why?

半世苍凉 提交于 2019-12-02 15:50:38
I'm trying to create some nice icons for some Android APP I'm dealing with, and someone directed me to the "Android Asset Studio", that nice online tool which creates full packs of icons ready to be deployed onto my (horridly) fragmented Android project res folder. I just went to its URL to create my icons: EDIT: [broken URL as of Oct 2016. Apparently everything has moved into Android Studio] http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-actionbar.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_action_stickers&theme=custom&color=000%2C80 Then I noticed

Is it possible to have animated launcher icons for android apps? [closed]

不问归期 提交于 2019-12-01 16:12:24
I am just curios if Android supports animated launcher icons like the iOS has the Calendar app which always shows the current day or the Clock which has a moving hand on the icon. Not in general. Android has app widgets for that. Some home screen implementations might offer developers an API to have animated launcher icons, but that would be up to those specific home screen implementations. There is nothing standard in Android for this. 来源: https://stackoverflow.com/questions/27463068/is-it-possible-to-have-animated-launcher-icons-for-android-apps

What is the recommended ActionBar icon size in Material Design (Android API 21+)?

妖精的绣舞 提交于 2019-11-30 07:01:10
问题 First of all, this question is related: How big should Action Bar(Toolbar) icons be in the new Android Material design? In the related question it is clear that the touch target size of the action bar icons should be 48dp. I would like to get a couple of things clarified regarding these icon sizes in Material Design: On this page: Material Design Keylines - Touch Target Size there is two icons, the search icon is tiny (24dp) and the profile icon is much bigger (40dp). Is there any

Android icon generator for actionbar and notification not working (grey shape)

三世轮回 提交于 2019-11-29 23:07:14
I found this Asset Studio to generate icons. It works fine for the launcher icon but for action bar or notification icons it is not working. I put in my png file and want to generate the icons, but Asset Studio is only generating gray circles. Is there another tool to generate action bar and notification icons? You can use a tool for creating generic icons in Asset Studio: https://romannurik.github.io/AndroidAssetStudio/icons-generic.html . To get it look like ActionBar Icon, you should make next actions: Choose image The size of image should stay at 24dip Change padding to 4dip Move

How to provide different launcher icon per product flavour

前提是你 提交于 2019-11-28 22:51:43
I have a project defined by build.gradle file buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.6' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jar') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['resources'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } instrumentTest.setRoot('tests') } defaultConfig { ... } signingConfigs

Toolbar icon tinting on Android

北战南征 提交于 2019-11-28 21:06:32
I've noticed that using AppCompat themes, default toolbar icons get tinted by the attribute colorControlNormal in my style. <style name="MyTheme" parent="Theme.AppCompat"> <item name="colorControlNormal">@color/yellow</item> </style> As you can see above, however, it does not happen with all icons. I provided the "plus" sign, which I got from the official icons, and it does not get tinted (I used the "white" version of the png). From what I have understood from this question , system tints only icons with just an alpha channel. Is this true? If so : Is there a place where I can find alpha

Android xxx-hdpi real devices

给你一囗甜甜゛ 提交于 2019-11-28 06:50:11
I'm gonna release my app, it's a 1.2Mb apk that includes about 120 icons in 4 different formats (ldpi, mdpi, hdpi, x-hdpi). If I add xx-dpi and xxx-hdpi icons the apk grows bigger and loading time increases. There are many entry-level devices out there with really loooow memory and I'd like my app to run everywhere. Do I really need to add xx-hdpi? And is there a real device that requires xxx-hdpi? You shouldn't really need xxxhdpi . It was only introduced because of the way that launcher icons are scaled on the nexus 5's launcher Edit Back when I answered in Jan 2014, the Nexus 5 was the only