# Android XML

> Localization format for web and mobile apps, Android Studio, Google Play services

URL: https://store.crowdin.com/android-xml
Identifier: android-xml
Category: File Formats
Type: System
Author: Crowdin

Android XML is a natively supported file format, you can use it without an additional installation. Just upload it to your projects and start the localization.

## File Format Details

| Attribute | Value |
| --------- | ----- |
| File Extension | .xml |
| [API Type](https://developer.crowdin.com/api/v2/#operation/api.projects.files.post) | android |
| Source can be edited in Crowdin | Yes |
| Generating translated files via [Bundles](https://support.crowdin.com/bundles/) | [Search Crowdin Store](https://store.crowdin.com/tags/string-exporter) |
| Supports pluralization | Yes |
| WYSIWYG Preview in the editor | No |
| Supported types of contextual information | Text comments, Screenshots, Live preview via SDK |
| Custom attributes | Yes |
| Existing translations import possibility | Key-value mapping |

## Sample File

```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="identifier_1">String for translation 1</string>
  <string name="identifier_2" comment="Type string's context here">String for translation 2</string>
  <string name="identifier_3">String for translation 3</string>
  <string name="identifier_4" translatable="false">String for translation 4</string>
  <string name="identifier_5" maxLength="15"> String for translation 5</string>

  <plurals name="apples_count">
    <item quantity="one">%s apple</item>
    <item quantity="other">%s apples</item>
  </plurals>

  <string-array name="planets_array">
    <item>Mercury</item>
    <item>Venus</item>
    <item>Earth</item>
    <item>Mars</item>
  </string-array>
</resources>
```

## Translating Android XML


**Attributes**



Import as a hidden string:



```xml

<resources>

  <string name="identifier_3" translatable="false">String for translation</string>

</resources>

```



**Custom Attributes**



Max. Length for the translated string:



```xml

<string name="identifier_5" maxLength="15"> String for translation 5</string>

```



Comments:



```xml

<resources>

  <string name="identifier" comment="Type string's context here">String for translation</string>

</resources>

```



**Plurals**



```xml

<resources>

  <plurals name="apples_count">

    <item quantity="one">%s apple</item>

    <item quantity="other">%s apples</item>

  </plurals>

</resources>

```

**String array**


```xml

<resources>
  
    <string-array name="planets_array">
      
        <item>Mercury</item>
      
        <item>Venus</item>
      
        <item>Earth</item>
      
        <item>Mars</item>
      
    </string-array>
  
</resources>

```
