Top "Android-resources" questions

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

How to use Android quantity strings (plurals)?

I am trying to use getQuantityString method in Resources to retrieve Quantity Strings (Plurals) based on android developer guidelines Quantity …

android string android-resources plural
Android: How to get string in specific locale WITHOUT changing the current locale

Use Case: Logging error messages as displayed to the user. However you don't want to have messages in your log …

android localization locale android-resources
Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" …

android rendering android-resources android-appcompat android-actionmode
Set Notification Sound from Assets folder

I am attaching the sound files in the assets folder for play sound in the notification but I am not …

android notifications media-player android-resources android-assets
Removing unused resources requires unused code shrinking to be turned on

I am preparing to release an App to production. So, I generated signed apk. After generating signed apk, I was …

android android-resources shrinkresources
Disable Android resource / image / PNG optimization

How do I prevent the Android "build process" from optimizing .png images? I have an Android project with the following …

android android-image android-resources android-build
Setting TextView color to a <selector> programmatically

I have the following selector defined in an XML file under res/color/redeemlist_item_color.xml: <?xml version="1.0" …

android android-resources
Android resource selection layout- and values- inconsistencies

The issue I am experiencing indicates that the resource bucket being selected for a given activity's layout XML is inconsistent …

android android-layout android-resources android-screen-support
Error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?

I have an Android app, which throws on BUILD process following error: /home/Ralf/Projekte/University/android-sampleapp/sampleapp/build/intermediates/…

android android-resources
Is there an Enum string resource lookup pattern for Android?

I have an enumeration where I need to display the values as localized strings. My current approach has been this: …

android enums android-resources