当我使用 Android Studio 布局设计器手动设计布局时,边距编号以波斯格式创建,并且设计器无法正常工作。
自从我更新 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我的操作系统是 Windows,有两种语言:波斯语和英语
最后我找到了解决方案。这是由于谷歌对新版Android Studio的制裁。
Windows 10 中的解决方案:设置 -> 时间和语言 -> 地区 -> 在国家或地区下拉列表中选择美国
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)