android-icons

Android Tab icon color is not clear

那年仲夏 提交于 2019-12-24 16:14:39
问题 I am trying to do color selector, when tab selected his color will be white, and when unselected - other color. For this goal I use setColorFilter . But tab icon color is not clear white when selected. Images were added with Image Asset and choosen custom color - white. I have to do it clear white. Any help, any idea appreciate. This is my code private int[] tabIcons = { R.drawable.ic_no, R.drawable.busket, R.drawable.ic_tab_aksia, R.drawable.ic_tab_menu }; @Override protected void onCreate

Which Google document should be followed for Android icon sizes?

我的未来我决定 提交于 2019-12-24 10:21:16
问题 Google's Android document on Iconography says that action bar icons should be 32x32 while its document on Action Bar Icons says that they should be 24x24 for the baseline that is presumably mdpi. I thought that Android document on Iconography was obsolete, but Google usually is good at marking obsolete/deprecate features. Could anyone shed some light on this? 回答1: This is the first time I am hearing about the site you are referring to. I believe it was the older version of "developer.android

ActionBar/Menu default icons

落爺英雄遲暮 提交于 2019-12-22 18:19:41
问题 I have a menu, which contain an item with an icon that comes with sdk (from skd/platform/...). In ICS it's displayed fine (dark action bar, light color icon), but in android 2.2, you can't see the icon because the default theme is white and so is the icon. Is there a way to access android default icons, like when using the search bar, the icon is displayed correctly on all android versions? Is there a way to access android default icons? 回答1: If you are defining your menu in an XML, then

App icon not being set, it is always showing default green android icon

扶醉桌前 提交于 2019-12-22 04:07:28
问题 I have followed the following steps as suggested by tutorials and other stack overflow questions: android:icon="@mipmap/ic_launcher" in the manifest where the app icon is named ic_launcher and all the mipmaps have been appropriately replaced on basis of resolution replaced all mipmap images with the the images generated from Android Asset Studio I have selected the appropriate files in the image asset by right clicking on res. I have uninstalled the old app. Rebuilt the app the ans then run I

How Can Change an Application icon programmatically in android without creating shortcut?

。_饼干妹妹 提交于 2019-12-22 00:30:00
问题 I want to change an application icon directly from the program and don't want to create shortcut and update it. Some calender app changes icon everyday without creating shortcut. I read that can create activity-alias element for each of my icons in manifest. It's work for me but if I want to have 30 icons like a calender then I should have 30 activity-alias element in manifest and I do't think it's a correct way. I also read that this way works differently across devices. Can anyone help me?

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

心不动则不痛 提交于 2019-12-18 10:43:26
问题 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? 回答1: 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

What's the correct size icon for drawable-xxhdpi?

孤街浪徒 提交于 2019-12-17 10:09:53
问题 As we know, the correct sized icon: * drawable-ldpi (120 dpi, Low density screen) - 36px x 36px * drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px * drawable-hdpi (240 dpi, High density screen) - 72px x 72px * drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px On Jelly Bean, drawable-xxhdpi can be supported. So what's the correct size icon? 回答1: MDPI: 48x48 HDPI: 72x72 XHDPI: 96x96 XXHDPI: 144x144 XXXHDPI: 192x192 to create an icon for different densities, you

Android options menu icon won't display

眉间皱痕 提交于 2019-12-17 06:48:08
问题 I'm following a book on Android Development to get myself started writing my first real app. I got up to the point where I'm making an options menu for one of my activities. The menu shows up, but the corresponding icon of the menu item refuses to display. Here is the code for the menu: ReminderListActivity @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater mi = getMenuInflater(); mi.inflate(R.menu.list_menu, menu); return true; } res/menu

Why are all the template images for icon in the Android developer site have resolution 72 pixels per inch under Ai and Photoshop?

雨燕双飞 提交于 2019-12-13 05:10:49
问题 The Android developer guide for icon launchers link gives the listed pixel and dpi specification for the different densities required. I downloaded the same templates for these images and in Photoshop the number of pixels for the ldpi, mdpi etc match up templates pack link. But the resolution when I check in Image -> Image Size -> gives me 72pixels/inch. I would expect that number of pixels per inch to match the dpi. How do I check the dpi or recongifure it to match the specifications of the

Change icon launcher and app name programmatically

旧时模样 提交于 2019-12-12 11:19:34
问题 I saw many posts like this How to change the icon and label of an app once it is installed? but any of those posts could give me the exact answer so as to solve my problem. I used this but it only changes the action bar icon : Button appicon1; appicon1.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { getActionBar().setIcon(R.drawable.ic_launcher); } }); Giving any examples will be highly appreciated. Thanks in advance :) 回答1: See this answer : https:/