Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Textview把阿拉伯语字母弄乱了_Java_Android_Xml_Textview_Arabic - Fatal编程技术网

Java Textview把阿拉伯语字母弄乱了

Java Textview把阿拉伯语字母弄乱了,java,android,xml,textview,arabic,Java,Android,Xml,Textview,Arabic,我正在开发一个android应用程序,允许用户在编辑文本(阿拉伯语字母)中插入一些信息,如用户名,并使用textView在另一个活动中显示插入的信息 但是,当我运行我的应用程序并用阿拉伯语字母插入名称并在第二个活动中显示时,它错过了 我不知道如何让文本视图按阿拉伯字母顺序排列 任何帮助都会非常感激 这是我的XML代码: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://sche

我正在开发一个android应用程序,允许用户在编辑文本(阿拉伯语字母)中插入一些信息,如用户名,并使用textView在另一个活动中显示插入的信息

但是,当我运行我的应用程序并用阿拉伯语字母插入名称并在第二个活动中显示时,它错过了

我不知道如何让文本视图按阿拉伯字母顺序排列

任何帮助都会非常感激

这是我的XML代码:

 <?xml version="1.0" encoding="utf-8"?>
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frameLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:padding="5dp" >

<AbsoluteLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"

    android:orientation="vertical" >

    <Button
        android:id="@+id/cancel3"
        android:layout_width="94dp"
        android:layout_height="34dp"
        android:layout_x="188dp"
        android:layout_y="437dp"

        android:text="إلغاء"
        android:textColor="@color/White" />

    <Button
        android:id="@+id/send3"
        android:layout_width="98dp"
        android:layout_height="34dp"
        android:layout_x="26dp"
        android:layout_y="436dp"

        android:text="إرسال"
         />

    <Button
        android:id="@+id/stoppingalram"
        android:layout_width="wrap_content"
        android:layout_height="23dp"
        android:layout_x="114dp"
        android:layout_y="438dp"
        android:text="إلغاء" 
        android:visibility="gone"
        />

    <ImageView
        android:id="@+id/imageView3"
        android:layout_width="548dp"
        android:layout_height="32dp"
        android:layout_x="-120dp"
        android:layout_y="8dp"
        />

    <ImageView
        android:id="@+id/imageView2"
        android:layout_width="68dp"
        android:layout_height="69dp"
        android:layout_x="120dp"
        android:layout_y="77dp"
         />

    <TextView
        android:id="@+id/tvmoreinfoReport"
        android:layout_width="54dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="18dp"
        android:layout_x="156dp"
        android:layout_y="372dp"
        android:text="لا شئ"
         />

    <TextView
        android:id="@+id/tvclothesReport"
        android:layout_width="82dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="18dp"
        android:layout_x="138dp"
        android:layout_y="321dp"
        android:text="فستان أحمر"
         />

    <TextView
        android:id="@+id/tvtimeReport"
        android:layout_width="47dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="14dp"
        android:layout_x="159dp"
        android:layout_y="282dp"
        android:text="ساعة ١"
        />

    <TextView
        android:id="@+id/tvgenderReport"
        android:layout_width="46dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="17dp"
        android:layout_x="177dp"
        android:layout_y="207dp"
        android:text="أنثى"
         />

    <TextView
        android:id="@+id/tvageReport"
        android:layout_width="68dp"
        android:layout_height="wrap_content"
        android:layout_x="174dp"
        android:layout_y="236dp"
        android:text="سنة ٩"
         />

    <TextView
        android:id="@+id/tvcasenameReport"
        android:layout_width="88dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="14dp"
        android:layout_x="145dp"
        android:layout_y="174dp"
        android:text="محمد عبدالله"
        />

</AbsoluteLayout>


我单击右键单击按钮并更改为4.0.3,然后按“确定”,然后完成:)
2.1它不支持阿拉伯语,2.3不完全支持阿拉伯语,3.x支持完全阿拉伯语

是否尝试将此文本置于\u符号中?并尝试在某些文本编辑器中检查文件编码,它一定是utf-8@xitx是的,我把它放在utf 8中,但是我可以把\u放在哪里?这也可能是字体的问题。如果有帮助,请在评论中查看此答案you@xitx那么,我如何将我的整个应用程序转换为3.x!!我几乎完成了我的应用程序!!!我应该重新构建我的应用程序吗?如果否,如何转换为3.x?