2013-08-23 21 views
7

podczas pisania treści w języku arabskim wewnątrz pierwszego słowa TextView w każdej linii będzie cięcie !!cięcie zawartości w TextView

Ten problem występuje tylko wtedy, gdy ustawiam krój czcionki na TextView!

cuttig

tutaj mojego kodu xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" > 
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:scrollbars="vertical" 
    android:id="@+id/articleTEXT" 

    /> 

uwaga: zawartość będzie pobierać od SQLite Database.

+0

spróbuj dodać wyściółka może pomóc – KOTIOS

+1

Czy nie arabski „wstecz” w porównaniu z angielskim? Potrzebujesz kierunku tekstu, prawda? – ChiefTwoPencils

+1

^Dobra przynęta @BobbyDigital –

Odpowiedz

0

Spróbuj tego ...

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" 
    android:padding="10dp" 
> 
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:scrollbars="vertical" 
    android:id="@+id/articleTEXT" 

    /> 
1

Będzie działać, dodać dopełnienie w układzie liniowym i podjąć szerokość TextView meczu rodzica.

<LinearLayout 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" 
      android:orientation="vertical" 
      android:padding="4dp"> 

      <TextView 
       android:id="@+id/articleTEXT" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:scrollbars="vertical" 
      /> 

     </LinearLayout> 
0

Ustaw grawitację w prawo w swoim widoku tekstowym, a następnie ustaw paddingRight na 20dp.

Lub po prostu umieść padding=30dp w liniowej tabeli.

0

Spróbuj

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" 
android:layout_margin="5dp"> 
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:scrollbars="vertical" 
    android:id="@+id/articleTEXT" 
    android:padding="5dp" 
/> 
1

Można spróbować umieścić to w swoim LinearLayout lub TextView:

android:layout_marginRight="20dp"