# HasAndroidResources

# HasAndroidResources

```
interface HasAndroidResources
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.variant.HasAndroidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest),[TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestFixtures),[Variant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant) |-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------| | [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest)   | Properties for the android test Variant of a module. | | [TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestFixtures) | <br />                                               | | [Variant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant)           | Parent interface for all types of variants.          | |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect Subclasses [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/AndroidTest.html#),[ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant),[DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant),[LibraryVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/LibraryVariant),[TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/TestFixtures.html#),[TestVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) |-------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| | [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/AndroidTest.html#)             | <br />                                                                                                                              | | [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant)       | Properties for the main Variant of an application.                                                                                  | | [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant) | <br />                                                                                                                              | | [LibraryVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/LibraryVariant)               | [Variant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant)for Library projects   | | [TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/TestFixtures.html#)           | <br />                                                                                                                              | | [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant)                     | [Variant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant)for test-only modules. | |

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                          ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key) | [makeResValueKey](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#makeResValueKey(kotlin.String,%20kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#resValues:org.gradle.api.provider.MapProperty)'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) |

|                                                                                                                                                                                                                                                                                                                                 ### Properties                                                                                                                                                                                                                                                                                                                                 ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)\>                                                                                                                                                            | [pseudoLocalesEnabled](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#pseudoLocalesEnabled:org.gradle.api.provider.Property) Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.                                           |
| abstract[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)\<[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key),[ResValue](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue)\> | [resValues](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#resValues:org.gradle.api.provider.MapProperty) Variant's[ResValue](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue)which will be generated. |

## Public methods

### makeResValueKey

```
abstract fun makeResValueKey(
    type: String, 
    name: String
): ResValue.Key
```

Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/HasAndroidResources#resValues:org.gradle.api.provider.MapProperty)'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)

## Properties

### pseudoLocalesEnabled

```
abstract val pseudoLocalesEnabled: Property<Boolean>
```

Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.  

### resValues

```
abstract val resValues: MapProperty<ResValue.Key, ResValue>
```

Variant's[ResValue](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue)which will be generated.