Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.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
Android 4.0中的文本视图对齐_Android_Fonts_Textview_Alignment_Arabic - Fatal编程技术网

Android 4.0中的文本视图对齐

Android 4.0中的文本视图对齐,android,fonts,textview,alignment,arabic,Android,Fonts,Textview,Alignment,Arabic,我发现很难在阿拉伯语字体的textview中对齐文本。当我给出正确的重力时,文本被隐藏了。我尝试将填充和边距设置为textview。但似乎一切都不起作用。它主要发生在安卓4.0中 请参见Android 4.0和Android 2.2中的布局截图。 是安卓版本的问题还是字体或其他问题?感谢您的帮助或建议 xml代码如下所示: ===== 注意:正在考虑的文本视图的id为“line_versearab”。listviewrow中的阿拉伯语文本下方还有另一个文本视图。但我剪掉了它,因为它是不必要

我发现很难在阿拉伯语字体的textview中对齐文本。当我给出正确的重力时,文本被隐藏了。我尝试将填充和边距设置为textview。但似乎一切都不起作用。它主要发生在安卓4.0中

请参见Android 4.0和Android 2.2中的布局截图。

是安卓版本的问题还是字体或其他问题?感谢您的帮助或建议

xml代码如下所示:

=====


注意:正在考虑的文本视图的id为“line_versearab”。listviewrow中的阿拉伯语文本下方还有另一个文本视图。但我剪掉了它,因为它是不必要的

我已经编辑了这个问题。请检查。请在这方面提供帮助。如何使用param
省略:start
?我已经尝试过了,但没有效果。这是字体的问题吗?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@android:color/black"
    android:orientation="horizontal" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="3dp"
        android:layout_marginTop="2dp"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/line_num"
            android:layout_width="22dp"
            android:layout_height="match_parent"
            android:paddingLeft="2dp"
            android:textColor="@android:color/white"
            android:textSize="15dip" >
        </TextView>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/line_versearab"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:gravity="right"
                android:layout_weight="1"
                android:lineSpacingExtra="16dp"
                android:singleLine="false"
                android:text="arab"
                android:textColor="#F5F1F1"
                android:textSize="24dip" >
            </TextView>

            <TextView
                android:id="@+id/line_versemalayalam"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:layout_weight="1"
                android:text="Malayalam"
                 android:gravity="left"
                android:lineSpacingExtra="3dp"
                android:singleLine="false"
                android:textColor="#F5F1F1"
                android:textSize="18dip" >
            </TextView>
        </LinearLayout>
    </LinearLayout>

</LinearLayout>