# Android Customization

## Customize Language

It is possible to configure the experience of the informational messages in the capture frames by changing their language. Use the enumerated type `LocaleTypes`, which contains the following values:

* `LocaleTypes.PT_BR`: for Portuguese(Brazil);
* `LocaleTypes.ES_MX`: for Spanish(Mexico);
* `LocaleTypes.ES_ES`: for Spanish(Spain);
* `LocaleTypes.EN_US`: for English(USA).

See how to implement it in the example below:

{% tabs %}
{% tab title="Java" %}

```java
unicoCheck.setLocale(LocaleTypes.EN_US);
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
unicoCheck.setLocale(LocaleTypes.EN_US);
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}

* A remote activation may be required to use it. If you wish to use it, please inform your project manager or Unico support.
* If not configured, the SDK will use Portuguese as the default language.
  {% endhint %}

## Customize Capture Process Experience

### Customize Selfie Capture Experience

This is an optional step, but highly recommended so that the capture process reflects your company's visual identity.

It is possible to customize some objects of the frame according to the camera mode used, through the **`setTheme()`** method.

{% hint style="warning" %}
The supported types for color representation are **Color Resource** or **String** containing the hexadecimal color code. Example: **R.color.red** or **#FF0000**.
{% endhint %}

All methods are available below:

{% tabs %}
{% tab title="Java" %}

```java
IAcessoBioTheme unicoTheme = new IAcessoBioTheme() {
    @Override
    public Object getColorBackground() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorBoxMessage() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorTextMessage() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorSilhouetteSuccess() { 
        return R.color.your_color;
    }
};
    
acessoBioBuilder.setTheme(unicoTheme); 
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
val unicoTheme = object: IAcessoBioTheme {

    override fun getColorBackground() = R.color.your_color
    override fun getColorBoxMessage() = R.color.your_color
    override fun getColorTextMessage() = R.color.your_color
    override fun getColorSilhouetteSuccess() = R.color.your_color
}

acessoBioBuilder.setTheme(unicoTheme)
```

{% endtab %}
{% endtabs %}

It is also possible to make static customizations. In your **colors.xml** file, add the following code:

```html
<color name="unico_color_background"> #YourColor </color> 
<color name="unico_color_silhouette_success"> #YourColor </color> 
<color name="unico_color_box_message"> #YourColor </color> 
<color name="unico_color_text_message"> #YourColor </color> 
<color name="unico_color_button_cancel"> #YourColor </color> 
```

### Customize Document Capture Experience

This is an optional step, but highly recommended so that the capture process reflects your company's visual identity.

It is possible to customize some objects of the frame according to the camera mode used, through the **`setTheme()`** method.

{% hint style="warning" %}
The supported types for color representation are **Color Resource** or **String** containing the hexadecimal color code. For example: **R.color.red** or **#FF0000**.
{% endhint %}

All methods are available below:

{% tabs %}
{% tab title="Java" %}

```java
IAcessoBioTheme unicoTheme = new IAcessoBioTheme() {
    @Override
    public Object getColorBackgroundTakePictureButton() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorBackgroundBottomDocument() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorBackground() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorIconTakePictureButton() { 
        return R.color.your_color;
    }
    @Override
    public Object getColorTextBottomDocument() { 
        return R.color.your_color;
    }
};
    
acessoBioBuilder.setTheme(unicoTheme); 
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
val unicoTheme = object: IAcessoBioTheme {
    override fun getColorBackgroundTakePictureButton() = R.color.your_color
    override fun getColorBackgroundBottomDocument() = R.color.your_color
    override fun getColorBackground() = R.color.your_color
    override fun getColorIconTakePictureButton() = R.color.your_color
    override fun getColorTextBottomDocument() = R.color.your_color
}
acessoBioBuilder.setTheme(unicoTheme)
```

{% endtab %}
{% endtabs %}

It is also possible to make static customizations. In your **colors.xml** file, add the following code:

```html
<color name="unico_color_background_take_picture_button"> #YourColor </color> 
<color name="unico_color_background_bottom_document"> #YourColor </color> 
<color name="unico_color_background"> #YourColor </color> 
<color name="unico_color_icon_take_picture_button"> #YourColor </color> 
<color name="unico_color_text_bottom_document"> #YourColor </color>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devcenter.unico.io/unico-idcloud/by-client-integration/sdk/available-sdks/android-sdk/android-customization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
