Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the icons native android?

Tags:

android

can anyone tell me where I get the icons native android?

like image 702
BlaBRA Avatar asked Jul 03 '26 14:07

BlaBRA


2 Answers

I think what you are asking for is the icons that are used by the Android OS. If that's the case you can view them in the android.jar file that is installed with the SDK.

<sdk-install-path>/platforms/<any-platform>/android.jar

If you extract that jar and have a look at the res/drawable* folders you will see the icons used throughout the OS. You can also access them from within your code using:

@android:drawable/<name of drawable>

like image 68
keno Avatar answered Jul 05 '26 02:07

keno


It's not clear if you want to access the icons as files or through your application. If you want the actual icons you can grab them from the source code.

The source code for Android is available here at android.googlesource.com:

https://android.googlesource.com/platform/frameworks/base.git/

Specifically:

https://android.googlesource.com/platform/frameworks/base.git/+/master/core/res/res/drawable-hdpi/

Many of the Android icons / resources are available by resource ID. The resource IDs for those are in the android.R class.

http://developer.android.com/reference/android/R.drawable.html

like image 37
mbafford Avatar answered Jul 05 '26 03:07

mbafford



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!