# HasAndroidResources

# HasAndroidResources


```
interface HasAndroidResources
```

<br />

Known direct subclasses  
[AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/AndroidTest), [TestFixtures](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/TestFixtures), [Variant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Variant)  

|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.4/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.4/com/android/build/api/variant/TestFixtures) |                                                      |
| [Variant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Variant)           | Parent interface for all types of variants.          |

Known indirect subclasses  
[ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ApplicationVariant), [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/DynamicFeatureVariant), [LibraryVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/LibraryVariant), [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/TestVariant)  

|-------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ApplicationVariant)       | Properties for the main Variant of an application.                                                                                   |
| [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/DynamicFeatureVariant) |                                                                                                                                      |
| [LibraryVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/LibraryVariant)               | [Variant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Variant) for Library projects   |
| [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/TestVariant)                     | [Variant](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Variant) for test-only modules. |

*** ** * ** ***

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Public functions                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ResValue.Key) | [makeResValueKey](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/HasAndroidResources#makeResValueKey(kotlin.String,kotlin.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.4/com/android/build/api/variant/ResValue.Key) to interact with [resValues](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/HasAndroidResources#resValues())'s [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) |

|                                                                                                                                                                                                                                                                                                            ### Public properties                                                                                                                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.4/com/android/build/api/variant/HasAndroidResources#pseudoLocalesEnabled()) Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.                                          |
| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`<`[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ResValue.Key)`, `[ResValue](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ResValue)`>` | [resValues](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/HasAndroidResources#resValues()) Variant's [ResValue](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/ResValue) which will be generated. |

## Public functions

### makeResValueKey

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

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

## Public properties

### pseudoLocalesEnabled

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

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

### resValues

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

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