Android: How to get arrow button?
Asked Answered
C

3

14

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:

enter image description here

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

Thanks in advance!

Cacie answered 30/11, 2012 at 15:48 Comment(2)
Try <HTML><BODY>&#8594; (just a WAG that Android components will render HTML).Sarilda
use ImageButton instead of Button. here is the pack of standard Icon: developer.android.com/design/downloads/…Heterosporous
S
17

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

Streetcar answered 30/11, 2012 at 16:2 Comment(1)
link broken (to the material design icons)Martinsen
S
6

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

Susann answered 30/11, 2012 at 15:55 Comment(3)
It was there, but unfortunately in not so good quality. However thanks for the answer and +1Cacie
What kind of quality are you looking for? The icons in there are the exact ones Android uses. If the icon is going to be used in your Android app then there is no difference between the ones in that folder and the ones you see on the translate app.Susann
Good point, but in my app, the arrow must be bigger than usual, so I'm looking for a bit more pixels than usual.Cacie
S
2

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\

Shumaker answered 16/3, 2015 at 10:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.