Top "Android-resources" questions

Android resources - framework for providing different layouts or strings for android projects.

Is there a way to get the source code from an APK file?

The hard drive on my laptop just crashed and I lost all the source code for an app that I …

android android-resources decompiling apk
R cannot be resolved - Android error

I just downloaded and installed the new Android SDK. I wanted to create a simple application to test drive it. …

android eclipse compiler-errors android-resources android-sdk-tools
"R cannot be resolved to a variable"?

In Eclipse, I've created a project from a source and now it shows errors - "R cannot be resolved to …

android android-resources
Android getResources().getDrawable() deprecated API 22

With new android API 22 getResources().getDrawable() is now deprecated. Now the best approach is to use only getDrawable(). What changed?

android android-drawable android-resources android-5.1.1-lollipop
How can I get color-int from color resource?

Is there any way to get a color-int from a color resource? I am trying to get the individual red, …

android colors android-resources
getColor(int id) deprecated on Android 6.0 Marshmallow (API 23)

The Resources.getColor(int id) method has been deprecated. @ColorInt @Deprecated public int getColor(@ColorRes int id) throws NotFoundException { return …

android android-resources android-6.0-marshmallow android-mnc
Is it possible dynamically to add String to String.xml in Android?

Is it possible to have placeholders in string values in string.xml that can be assigned values at run time? …

android string string-formatting android-resources
Defining custom attrs

I need to implement my own attributes like in com.android.R.attr Found nothing in official documentation so I …

android android-resources android-attributes
How to clear an ImageView in Android?

I am reusing ImageViews for my displays, but at some point I don't have values to put it. So how …

android android-imageview android-resources android-image
How to get a resource id with a known resource name?

I want to access a resource like a String or a Drawable by its name and not its int id. …

java android android-resources