title: Conditional resource inclusion/exclusion for Android apk build
body: <p>I keep coming back to this problem, since there doesn't seem to be a clean solution.  Does anyone have a good strategy to exclude resources from a child project in Android?</p>
  
  <p>I have two scenarios:</p>
  
  <p>1 - Base library project has localization files for en, es, etc.</p>
  
  <p>--Child project 1 uses all localizations, and everything is good</p>
  
  <p>--Child project 2 is only localized to English, but the final .apk would have a partial localization due to the parent resources (although ADT19 or so added Lint rules to warn/prevent you from doing this).</p>
  
  <p>The only solution I have to this right now is to have a separate parent library for the localization, and only include it in child project 1.  This is a big pain if you have lots of library projects.</p>
  
  <p>2 - Exclusion of build-specific resources.  I have a few images that are only needed for my Nook-specific builds of my apps, which are triggered by a flag.  Conditional code works great, but the resources are always included.</p>
  
  <p>I'd prefer not to create yet another child project for EVERY ONE of my apps.  Is there any way to set a build/compile flag to prune specific image resources out so they don't get into the final .apk?</p>
  
  <p>The second problem may be specific to me, but I'm surprised that I can't find any good discussion on the first point.  Are no other devs localizing only some apps?  Or are most folks just ignoring the issue?</p>