Search code examples
androidandroid-studioandroid-layoutintellij-ideaandroid-layout-editor

Android Studio layout designer creates numbers in Persian


When I manually design layouts using the Android Studio layout designer, the margin numbers are created in Persian format and the designer does not work properly. This has been happening since I updated Android Studio.

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/tryAgain"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:layout_editor_absoluteX="۳۲dp"
        tools:layout_editor_absoluteY="۳۴dp" />

</androidx.constraintlayout.widget.ConstraintLayout>

Note My operating system is Windows and has two languages, Persian and English


Solution

  • Android Studio has banned Iran in new versions. There are several ways you can hide your identity. For example, change the clock of your operating system