-->

Android: How to get arrow button?

2020-07-06 06:39发布

问题:

I would love to have the arrow button, which is used in google translate, in my app. The one used on the right of the textview here:

In which way could I get it with the least loss of quality?

Thanks in advance!

回答1:

You can download a pack of Android ActionBar icons here, and the forward arrow is there also. Hope this helps.



回答2:

Take a look in the SDK. The SDK has pretty much all the default icons for Android. You can find it in [ANDROID_SDK_HOME]/platforms/[ANDROID_VERSION]/data/res/

Look in all drawable-xxxx folders (i.e. drawable-xhdpi, drawable-hdpi, etc...) for the icon



回答3:

As Egor pointed out, the arrows can be found in the official Android Action Bar Icon Pack. Here are the paths:

Holo Light (Black arrows):

Arrow back: Android Design - Icons 20131120\Action Bar Icons\holo_light\02_navigation_back\

Arrow forward: Android Design - Icons 20131120\Action Bar Icons\holo_light\02_navigation_forward\

Holo Dark (White arrows):

Arrow back: Android Design - Icons 20131120\Action Bar Icons\holo_dark\02_navigation_back\

Arrow forward: Android Design - Icons 20131120\Action Bar Icons\holo_dark\02_navigation_forward\