Top "Android-resources" questions

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

Android: integer from xml resource

How do I have to modify my XML resources, or what XML file do I have to create, to access …

android android-resources
Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)

I got this strange error with gradle, please help me! /.../app/build/intermediates/res/debug/drawable-xxhdpi-v4/ic_launcher.png: error: …

android-studio gradle android-resources aapt aar
Avoid Android Lint complains about not-translated string

is it possible to specify that the strings in a file within the value-* directories are purposely not translated into …

android android-resources android-lint
Programmatically change the value of a color resource obtained from API response

Let's say, on my API call I have a parameter that's called color. Is it possible to edit or modify …

android android-resources aapt
ERROR No package identifier when getting value for resource number

Both activities are in the same package Second activity uses second layout file setContentView(R.layout.main2); Errors on this …

android android-layout android-resources
Creating integer array of resource IDs

I have some images in my res/drawable folder. Let's say img1.png, img2.png and img3.png. I am …

android arrays android-resources
Duplicate value for resource 'attr/font' with config "

I really do now know why I got this error and how can I solve it. Actually I am not …

android android-resources
When should I use the assets as opposed to raw resources in Android?

I'm in the mid of my Android studies, and I just covered the Assets and Raw resources. I'm trying to …

android android-resources android-assets
how to get string from different locales in Android?

So I want to get the value of a String in several locales regardless of the current locale setting of …

android locale android-resources
Are there conventions on how to name resources?

Are there conventions how to name resources in Android? For example, buttons, textViews, menus, etc.

android naming-conventions android-resources