Top "Android-resources" questions

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

Resource arrays

Is there a way to define an array in XML in which the elements are resource references? For example (it …

android string android-xml android-resources
Value equals to match_parent or fill_parent in dimens.xml?

Based on here on XML Attributes section I specify following in my dimens.xml: <dimen name="match_parent">…

android xml android-layout android-resources dimension
Format string XXX is not a valid format string so it should not be passed to String.format

I have android app and this string in resources: <string name="create_group_select_people">Select up to %1$…

java android string android-resources
Get the resource id for the drawable reference used in styled attribute

Having this custom view MyView I define some custom attributes: <?xml version="1.0" encoding="utf-8"?> <resources> <…

android custom-controls android-resources declare-styleable
What is the concept behind R.java?

In android R.java is used to provide access to resources defined in XML files. To access the resource we …

android architecture android-resources r.java-file
how to know which phone support which layout(hdpi , mdpi and xhpi)?

I'm a little confused about how to determine which phones support what layout types. I've done some research but haven't …

android android-layout android-resources android-resolution
How to return to default style on EditText if I apply a background?

I just encountered with a problem that I don't know how to solve. It looks silly but I cannot find …

android android-edittext android-drawable android-resources nine-patch
Cannot resolve R.java, duplicate class

I just start using Android Studio for a week and it works great for me, but when I started Android …

android android-resources android-studio r.java-file
How to delete an unused string resource for all configurations in Android Studio?

I've found an unused string resource, like: <string name="obsoletestring">my name is null!</string> However …

android android-studio android-resources
Android test raw resource

I have the following folder structure in Android Studio: ├── androidTest │   ├── java │   └── res │   └── raw │   └── test_file └── main ├── java └── res └── raw    └── app_…

android android-resources robotium