android - force left to right on TextView's declaration in the xml -


i have textview might contains both latin letters , rtl language letters. when showing both on same text, doesn't good.

how can force textview ltr if have rtl letters ? in xml, , not in code behind.

setting text :

((textview) findviewbyid(r.id.card_view_title_label_picker_empty_tv)).settext("גל friend"); 

here's layout :

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent">      <textview         android:id="@+id/card_view_title_label_picker_empty_tv"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:background="@drawable/label_picker_bg"         android:paddingbottom="3dp"         android:paddingleft="15dp"         android:paddingright="15dp"         android:paddingtop="3dp"         android:textcolor="@color/white"         android:textdirection="ltr"         android:textsize="13sp" />  </relativelayout> 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -