Android Studio 布局设计器用波斯语创建数字 [英] Android Studio layout designer creates numbers in Persian

查看:40
本文介绍了Android Studio 布局设计器用波斯语创建数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Android Studio 布局设计器手动设计布局时,边距数字以波斯语格式创建,并且设计器无法正常工作.自从我更新 Android Studio 以来,这种情况一直在发生.

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>

注意我的操作系统是 Windows,有两种语言,波斯语和英语

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

推荐答案

我终于找到了解决方案.这是因为 Google 对新版 Android Studio 实施了制裁.

Finally I found the solution. This is due to Google sanctions on the new version of Android Studio.

Windows 10 中的解决方案:设置 ->时间 &语言 ->区域 ->在国家或地区下拉列表中选择美国

Solution in Windows 10: setting -> time & language -> region -> select united states in country or region drop down

这篇关于Android Studio 布局设计器用波斯语创建数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆