Change default icon creating a new Android Eclipse project - android

Does anyone knows how to change the default icon that is embbeded here? In order that all new applications that you create has that icon instead the android default one.
I tried to look for it into /android-sdk-linux/platforms/android-[VERSION]/data without success. :( Is it named ic_launcher.png?
Thanks in advance!
EDIT: Please read before vote or answer. Is not how to change the icon app, this Q is about how to make it default for ALL new projects.
:)

For the interest of everyone:
The default icons are in this path:
/eclipse/plugins/com.android.ide.eclipse.adt_xxxxx.jar/templates/
Here you can define also a new default package and a header for ALL your activities.

If you intend to change your launcher icon just modifying your manifest.xml; Please refer to http://developer.android.com/
This way you can have a different icon for each project. If you just want to change the default one I dont see what is the purpose of it but maybe it is defined in your adtbundle here: \YOUR ADT BUNDLE\sdk\tools\apps\SdkController\res

Related

AndroidStudio Adding an image to draw with srcCompat

I am trying to do a drawer activity with Android Studio and I'm wanting to personalize the icons used. I've downloaded the icons I want to use and for the most part, it's okay.
In fact, I can modify all the android:icon icons but I have no idea how to modify the app:srcCompat icons. I don't know how to detect the image I want to use in this case...
Do you know how I can do it? Could you explain this to me?
Thanks a lot!
Edit: The file I'm working on as a base is the generated project with Drawer activity as the main activity. For example, if I wanted to modify the icon in the nav_header_main.xml file, how could I do to have my image (.png) transformed in a way detected by Android Studio as compatible with srcCompat
Ensure your image file is in res/drawable folder(or drawable-xhdpi/xxhdpi, determined by your design)
Refer it by app:srcCompact="#drawable/$IMAGE_FILE_NAME" in your xml.
Then you should see what you want.
Please check the doc to further understand the official usage.
Well... I was blind! I was wondering how I could add my icons but they were, I was just mistaking on the address... #android:drawable/... is obviously not #drawable/... but I didn't notice. So be aware that there is a difference and it'll be okay I think!

Android: Button Drawable Default

I am trying to use the default Theme.holo button drawable for Android but I cannot find the standard one that's used whenever you create a button. I have tried checking everywhere in the sdk\platforms\android-19\data\res\ but to no avail. Any help searching for it would be appreciated. Thanks in advance!
It looks like the one on the left here, but is mildy transparent.:
The drawables for your theme are located in:
platforms/android-*/data/res/drawable-*
See this link
As it says you can find the drawables in
yourandroidsdkrootfolderpath\platforms\android-11\data\res\drawable
(ex:D:\android\platforms\android-11\data\res\drawable)
EDIT
Correct path
yourandroidsdkrootfolderpath\platforms\android-8\data\res\drawable-mdpi

Set to global icons

so I have been searching for a good while, but can't seem to find anything about this!
I want to use the default icons that android provide so I don't have to make my own for everything. But every tutorial I can find says:
android:icon = "#android:drawable/star_big_on"
However, I'm looking for how I can do this for a marker that I have to set when created.
So I need something like this but for the default icons that android provide:
myMarker.icon(BitmapDescriptorFactory.fromResource(R.drawable.star_big_on));
You can try using:
myMarker.icon(BitmapDescriptorFactory.fromResource(android.R.drawable.star_big_on));
To use the android resources.

Dynamically Updating Launcher Icon in Android

I am trying to put a dynamic value in the launcher icon of android, as number of messages will be displayed in the message icon. As the icon is static and initialised before the application starts, Is there any way to achieve this??
For Android Launcher Icon you can't. It is impossible. (Or by Making your own launcher) The only one thing is you have to make a Android-Widget for this purpose. Which looks like a application icon. But it will act as a widget.
Also Make a dynamic launcher icon
simple answer is you can't do it also this question says the same. But there may be advance tricky methods/ways that I'm not aware of.
But you may try and develop widgets that changes dynamically.
You have to design your icon as a selector instead of drawable. Have a look at this.
You cant update because its related to manifest.xml stuff only possible with software upgrade.

Android: Use different drawables after choosing a different theme, keeping the same references

Is possible to make the app use different drawables after choosing a theme in Android?
An explanatory example:
i have a layout which background uses a reference to: "#drawable/backgroundsolid", that is image backgroundsolid.png in res/drawable-mdpi.
I want that, if the user choose "Glass" theme, the reference stays to "#drawable/backgroundsolid" but the resources folder is changed to res/drawable-glass, which contains a different backgroundsolid.png image.
Is it possible to set this programmatically? Thanks a lot!
You can set it programmatically by using view.setBackgroundResourceId(). I am not sure if you do it the other way which is let android pick the right theme for you. Maybe someone else has a better answer

Categories

Resources