Download for Holo Dark nav drawer icon - android

I went to the navigation drawer tutorial site where it gave me a link to download the holo icons for the action bar.
There were two directories, one for Holo Light and one for Holo Dark. Both icons, however, looked exactly the same to me. It appears as both are the Holo Light icon.
How can I get the Holo Dark icon?

Look here:
http://developer.android.com/training/implementing-navigation/nav-drawer.html
It should be also in other places soon.

Looking at the icon downloads that you are referring to (as linked in the other answer, and tagged with the date 20130516) it appears to me that they are similar but not the same.
I'm not saying they are well suited to their themes (and I certainly wouldn't put it past Google to make the sort of mistake that you suspect) but in fact I believe they are correct.

Related

?attr/colorPrimary support version?

I am in a fairly serious predicament. I have built my entire app using ?attr/colorPrimary to pick the color for background shapes, as I have devised a way to dynamically change the theme and color. This works perfectly on 5.0, but on all 4.x devices, ?attr/colorPrimary crashes the app. Why does Android studio not alert developers to this incompatibility?
Is there a support version of ?attr/colorPrimary?
colorPrimary is already part of AppCompat as of version 21 and works back to API 7. Your problem is instead with your theming code.
I believe it was added after Android Lollipop - API 21.
At least this link shows that it was added between API 20 and 21:
https://developer.android.com/sdk/api_diff/21/changes/android.R.attr.html
attr/colorPrimary just point to colorPrimary defined in current theme.
I'm not sure how you implemented your theme.. But you can create your own attr... This option is good only if you support several themes.
If you have a single theme, I believe you can replace it by a color.
API 21:
Material design style
Notifications are drawn with dark text atop white (or very light)
backgrounds to match the new material design widgets. Make sure that
all your notifications look right with the new color scheme. If your
notifications look wrong, fix them:
Use setColor() to set an accent color in a circle behind your icon
image. Update or remove assets that involve color. The system ignores
all non-alpha channels in action icons and in the main notification
icon. You should assume that these icons will be alpha-only. The
system draws notification icons in white and action icons in dark
gray.
The problem is a glitch in Android code. See this, it is not the exact same but the reason is.
In case anyone out there has this problem, I want to explain my workaround.
Remove all instances of "?attr/color(Primary, Dark, or Accent)" and attempt to mimic the effect in each individual element in each individual activity. This is not a full work around, but for me it works. Google really needs to resolve this issue. If you know a better work around, please let me know and I will accept it as the better answer as long as it works.

Material design refresh icon change?

I'm updating an app to have a more material design look and feel. I have a refresh icon in my toolbar, and I'm wondering if this icon should change. Looking at google's new icons here https://github.com/google/material-design-icons/blob/master/navigation/drawable-hdpi/ic_refresh_grey600_36dp.png , it looks like it has changed.
But on their downloads page it has a different icon https://developer.android.com/design/downloads/index.html. This is the one I have been using and it has two arrows. The new one just has one arrow.
Does anyone know if the one with one arrow is indeed the one google is switching to with material design?
you are downloading the wrong resources, you are still downloading the HOLO resources. You want the material resources found here
http://www.google.com/design/spec/resources/sticker-sheets-icons.html
I was wondering about the exact same thing some few days back. I couldn't find a definite answer anywhere, but from what I could gather, the one that is posted here, this is the latest one. If you see the latest Gmail android app, the refresh icon that comes up when you pull down, is the one with a single arrow. (and not 2 arrows)

Is there a PSD or PDF available of the homeAsUpIndicator icon drawable?

I've currently implemented a style via the http://jgilfelt.github.io/android-actionbarstylegenerator/ website. I used the light version of the style here and I need to change the homeAsUpIndicator icon to white. I've been looking for a while now and haven't been able to find a psd or something of the sort to be able to change the icon to the desired colour (which is white). I've already found the Holo.Dark icon, but that one is transparent and too big when I put it in the ActionBar. Overlaying a colour, is not as good looking as having the original and being able to modify it.
Does anyone know if there is a PSD/PDF with this image? Or an alternative?
There is "up caret" icon and much more in design files available (for free ;) ) there

Android Up Indicator Icon

This may be silly but I've been looking over an hour for the Up Indicator icon so I can customize it in my image editor tool. Where can I find that icon? It is not in the Android Design Icon Pack, as I just searched in it.
If you have SDK installed on your device, you can find the icon in %SDK-FOLDER%/platforms/android-*/data/res/drawable-*/ic_ab_back_holo_light_am . You can take from there and edit it.
Try this one: http://romannurik.github.io/AndroidAssetStudio/index.html
It has many other icons not only the up button. You can also change the icon color if you want.
My original answer called out that the icon exists in Android by default and that it does not to be manually added.
But this did not address the question as asked.
You should be able to get the icon from the Android libraries themselves, or from Google material design icon back available here (https://material.io/tools/icons/?icon=arrow_back&style=baseline)

Problems with ActionOverflow and HoloEverywhere/ActionBarSherlock

**I'm probably going to get flamed for this, but I have my reasons.
I'm making app has an option to switch between 3 themes (Holo Dark, Holo Light, and Holo Light with Dark ActionBar). Because of certain reasons, I used >>this<< hack to make ActionOverflow work with devices with hard menu keys using ActionBarSherlock 4.2. The problem is that whenever I have the theme set to Holo Dark or Holo Light, the height of the menu items is a rather large (about 48dp), but whenever I have it set to Holo Light with Dark Actionbar, the height of the menu items is normal (whatever normal is).
Anyone have any ideas what's making the menuitems act strange?
I've tried checking in Styles, but I'm not sure where the problem is originating from.
If you need more info, just ask :D
Got it!
I gave up soon after I posted this question, but I came back to it, played around with the ABS library, and found out the answer!
What I did was add:
<item name="dropdownListPreferredItemHeight">48dp</item>
to my styles.xml within:
<style name="ThemeDark" parent="Holo.Theme"></style>
I did this to both Dark and Light themes and it's working just fine! :D

Categories

Resources