android-icons

Setting a custom share icon on Actionbar ShareActionProvider without ActionBarSherlock

一世执手 提交于 2019-12-12 10:55:18
问题 I have the same problem as was described here - Setting a custom share icon on Actionbar ShareActionProvider But I'am not using ActionBarSherlock I found that the Sherlock theme uses the " actionModeShareDrawable " and I can also use it like this, if I don't use ActionBarSherlock <style name="Theme.MyApp" parent="android:Theme.Holo"> <item name="*android:actionModeShareDrawable">@drawable/icon</item> </style> This works fine on my nexus 5, but failed on many other devices So my question is,

Align an icon with the Toolbar icon - Android Material Design

自古美人都是妖i 提交于 2019-12-12 07:47:49
问题 In the new Material Design (using AppCompat), I am trying to align some action icons with the drawer icon of the new toolbar. Something like: I think I am looking in all the metrics correctly... Touch Target Size The problem is that I can't perfectly align it, because after that left padding of 16px, the icons should start, but the icon itself has also some "padding" (icon from material github), like: Maybe is silly but I do not know what I am missing. How can I take into account the padding

App logo in actionbar appears larger on tablet vs phone

感情迁移 提交于 2019-12-11 18:14:36
问题 I'm having trouble figuring out why my app logo in the actionbar appears larger on a nexus 7 vs a nexus 5. I'm using the actionbar in the support library. They're both running android 4.2.2 Nexus 5 (good) Nexus 7 (bad) Here are the logo image resources. What can I do to fix? 回答1: The problem because of different dimension of the devices.You can fix it by alter your images for two different dpi.xhdpi for nexus 7 under the resolution of 1920 x 1200 pixels rate.xxhdpi for nexus 5 under the

Change the size of hamburger icon in toolbar?

安稳与你 提交于 2019-12-10 17:26:40
问题 I have 2 questions which can be strange but anyway... I have toolbar with a title of application. How to change it to picture which is not the logo? The next question: Is it possible to set, change the size of hamburger icon in toolbar? I made classic navigation drawer with the help of next code below (I used ActionBarDrawerToggle also) but the size is too small if you will compare it with another items(icons) of my toolbar. toolbar = (Toolbar) findViewById(R.id.application_toolbar);

Launcher icon is changed but in recent apps still default icon i seen

我只是一个虾纸丫 提交于 2019-12-10 13:04:28
问题 I have changed the launcher icons in File -> New -> Image Asset and the icons are changed. When I click on recent apps icon in it displays the default icon where as correct icon is shown in the main icon list. Verified the Android manifest where application tag contain the icon tag and corresponding mipmap. What's wrong here? I am using xiaomi note 4 mobile. Please help. 回答1: The app icon in the app launcher should be updated, but the shortcuts won't be updated until the next refresh of the

How can I make a circular menu icon? Please see details

淺唱寂寞╮ 提交于 2019-12-07 23:03:17
问题 I'm developing a material design app & I want that the menu icon on toolbar should appear as a circular image instead of rectangular image . Here is the screenshot: Look at the menu icon , it is appearing as a rectangle , but I want it to be circular . How can I do this? 回答1: There is a library for android to make the photo circular .... https://github.com/hdodenhof/CircleImageView that's the link ....try it :) Edit: or you can use this library : https://github.com/Pkmmte/CircularImageView

Why do we (have) to use different launcher icons (xhdpi, hdpi, etc)

扶醉桌前 提交于 2019-12-07 10:21:02
问题 I was wondering, why are we using different launcher icons (sizes) in android. Currently you "have" to resize your icon to: LDPI - 36 x 36 MDPI - 48 x 48 HDPI - 72 x 72 XHDPI - 96 x 96 And put them in the desired folder. But does it really matter if you would only put a xhdpi icon in your android application, and if you just leave the ldpi, mdpi and hdpi folder empty. If you try the app with this configuration (only a xhdpi icon) on a mdpi device, automatically the xhdpi icon is used (I

How can I make a circular menu icon? Please see details

会有一股神秘感。 提交于 2019-12-06 12:19:58
I'm developing a material design app & I want that the menu icon on toolbar should appear as a circular image instead of rectangular image . Here is the screenshot: Look at the menu icon , it is appearing as a rectangle , but I want it to be circular . How can I do this? There is a library for android to make the photo circular .... https://github.com/hdodenhof/CircleImageView that's the link ....try it :) Edit: or you can use this library : https://github.com/Pkmmte/CircularImageView You can use this websit to return the circle icon: Android Asset Studio And then include it in the project.

ActionBar/Menu default icons

╄→尐↘猪︶ㄣ 提交于 2019-12-06 07:57:29
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? If you are defining your menu in an XML, then something like this will ensure the icons are always picked up from the corresponding SDK drawables. <item

What package to download for material design icons?

这一生的挚爱 提交于 2019-12-06 02:30:00
问题 If I go to https://design.google.com/icons/ and I select an icon to download, it gives me the option of downloading the 18dp, 24dp, 36dp, or 48dp version. I downloaded the 24dp package and it came with the hdpi, mdpi, xhdpi, xxhdpi, and xxxhdpi images. So I'm not sure what the difference is from downloading the other packages of 18dp, 36dp, or 48dp. Does anyone know the difference? What would be the best one to download to have the best compatibility across the majority of android devices?