> For the complete documentation index, see [llms.txt](https://developer.frontitude.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.frontitude.com/developer-cli/file-formats/android-xml-.xml.md).

# Android XML (.xml)

{% hint style="info" %}
Format is automatically detected based on the file extension, so there’s no need to specify the format type when using it. ✨
{% endhint %}

{% hint style="info" %}
Dashes (-) are automatically converted to underscores (\_) for unique keys embedded within the `name` attribute to comply with Android syntax.
{% endhint %}

{% hint style="info" %}
This format is supported by both `frontitude pull` and `frontitude push`.
{% endhint %}

## Translations with plurals

{% code title="res/values/strings.xml" %}

```xml
<resources>
    <string name="greeting">Hello, %1$s!</string>
    <plurals name="items_in_cart">
        <item quantity="one">You have %d item in your cart</item>
        <item quantity="other">You have %d items in your cart</item>
    </plurals>
</resources>
```

{% endcode %}

{% code title="res/values-es/strings.xml" %}

```xml
<resources>
    <string name="greeting">Hola, %1$s!</string>
    <plurals name="items_in_cart">
        <item quantity="one">Tienes %d artículo en tu carrito</item>
        <item quantity="other">Tienes %d artículos en tu carrito</item>
    </plurals>
</resources>
```

{% endcode %}

{% code title="res/values-de/strings.xml" %}

```xml
<resources>
    <string name="greeting">Hallo, %1$s!</string>
    <plurals name="items_in_cart">
        <item quantity="one">Sie haben %d Artikel in Ihrem Warenkorb</item>
        <item quantity="other">Sie haben %d Artikel in Ihrem Warenkorb</item>
    </plurals>
</resources>
```

{% endcode %}

{% code title="res/values-ja/strings.xml" %}

```xml
<resources>
    <string name="greeting">こんにちは、%1$sさん！</string>
    <plurals name="items_in_cart">
        <item quantity="one">カートには%dアイテムがあります</item>
        <item quantity="other">カートには%dアイテムがあります</item>
    </plurals>
</resources>
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://developer.frontitude.com/developer-cli/file-formats/android-xml-.xml.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.
