I'd like to use basic images like the ones in the menu of the alarm application. Are these images integrated in the Android SDK ? I didn't find any way to access them.
If not, do you know a good free library ?
Thanks in advance,
Regards,
C.Hamel
http://www.darshancomputing.com/android/1.5-drawables.html is your answer
and than you access like this android:icon="#android:drawable/ic_menu_delete"
if you want to use image of android system then you can use that all image which are in android's system..
you just need to write android.R.drawable and you will get all image ...
android.R.drawable.btn_dialog
Look in your android-sdk folder, you will find folders for each version of android including all the system images. You can copy the images you need to your own ressource folder and use them from there.
Related
I'm trying to find a good library that download files like images, .css or even video (.avd). I found Glide for the images but if possible I would like a library that do both. Do you know a good one ? Thank in advance :)
One: https://github.com/lingochamp/FileDownloader
Two: https://github.com/AigeStudio/MultiThreadDownloader
There are loads out there. Google is the place to be instead of SO.
I am programming an android application and I'd like to use the system icons for mail, phone, calendar and contacts inside this application. The problem is, that these icons differ from system to system (different android versions and different smartphones) and I want to keep the application and the system consistent. Is there an easy way to achieve this?
In XML use default android drawables from #android:drawable/... and in code use android.R.drawable....
You can use the standard drawable using
#android:drawable/[icon_name] in your xml file
android.R.drawable.[icon_name] in your java code
You can see different icon in your file system in
[SDK PATH]/platforms/platforms/[ANDROID_VERSION]/data/res
Some images are standard...like contacts, calendar :)
You can't keep system consistent. For what? New versions of Android are usually prettier than older ones (well, it's my opinion).
The only way to keep system icons same for your app - copy them into your drawables instead of using direct reference to them (like #android:drawable/).
First of all if you intend to use the default images (icons) for mail , phonr etc.
This default can be used as android.R.drawable.name in code or #android:drawable/ in xml from http://docs.since2006.com/android/2.1-drawables.php
But as this will vary from OS versinos to Versions.
So , if you need to use an unique GUI for the app for all versions and devices.
Please do not use android provided images , simply use your own graphics or images supplied in drawables resources explicitly by you for your app.
If you're ok with icons from each system you can get it via PackageManager and getApplicationInfo method.
If you're not, you should copy the resources from the platform into your own application.
I remember seeing how to do this somewhere, but I'm totally drawing a blank right now. I'd like to use the Android "Refresh" graphic in my application, how do I reference it? Is there a chart somewhere of all graphics which are provided?
Easiest way is to look in your Android SDK location (on my machine, that is *C:\projects\android\android-sdk-windows-1.5_r1*): in the platforms folder is a separate directory for each version of Android. Pick your version of choice and then open the *data\res* folder: there will be a number of drawable folders with the platform graphics.
Go wild copying them into your own app.
I think this might be what you're looking for: http://androiddrawableexplorer.appspot.com/
Anyone have a handy link where I can download the full Android vector-based icon set?
They're not super well organized, but you may already have them in your android-sdk/ directory (assuming you've downloaded your Android docs locally through your AVD Mannager).
Either in your:
docs/shareables/
icon_templates-v1.0/
icon_templates-v2.0/
sample_images/
search_icons/
(they all seem to be in Adobe Photoshop .psd format
stored in different layers)
or in your
docs/assets/images/
For their appendix, take a look at the local copy of your docs (here is the online copy)
docs/guide/practices/ui_guidelines/icon_design.html
would this be what you are looking for
http://www.matcheck.cz/androidguipsd/
My widget reads an image from /res/drawable/.
I would like to be able to change the image and write it back out to the /res/drawable/ structure.
Is this possible?
Everything in the apk will be read only.
And it's even better: android doesn't extract the apk when you install a program, so the size consumed is kept to minimal.
You cannot write to res/drawable.
Nope. But you can change your program to use alternate forms of storage.
http://developer.android.com/guide/topics/data/data-storage.html