Reputation: 109
when write content in arabic inside TextView first word in each line will cutting!!
this problem happen only when i set typeface to TextView!
here my xml code
<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"
/>
note: content will retrieve from SQLite Database.
Upvotes: 7
Views: 218
Reputation: 26
You could try placing this in your LinearLayout or TextView:
android:layout_marginRight="20dp"
Upvotes: 1
Reputation: 359
Set gravity to right in your textview and then set paddingRight to 20dp.
Or just put padding=30dp
in your linearlayout.
Upvotes: 0
Reputation: 4651
Try this
<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"
/>
Upvotes: 0
Reputation: 1023
It will work,add padding in linear layout and take width of textview match parent.
<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>
Upvotes: 1
Reputation: 24853
Try this ...
<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"
/>
Upvotes: 0