我有一个文本视图,我在其中设置了波斯语/阿拉伯语文本并将重力设置为右侧,但它在平板电脑中显示左侧的文本。如果设置左侧的重力则显示右侧。我该怎么做,直到它正常工作?
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/manage_account_id_textview"
android:text="فارسي"
android:gravity="right"
/>
</LinearLayout>
这样做
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/manage_account_id_textview"
android:text="فارسي"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
</LinearLayout>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)