以下のようなテキストビューとボタンのあるレイアウトがあります。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/info_layout">
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp" />
<Button android:id="@+id/butn1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="40dip"
android:layout_width="150dip"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/button1" />
</LinearLayout>
上記のレイアウトは多くの言語で正常に機能しますが、アラブでは申し訳ありませんがポップアップ表示されますが、textSizeを18spに変更すると正常に機能します。テキストサイズを変更する前にボタンから余白を削除しようとしましたが、それでも問題が発生します。Javaファイルでテキストビューのテキストを設定します。この問題の正確な原因がわかりません。
01-08 03:09:59.959: E/AndroidRuntime(1803): java.lang.StringIndexOutOfBoundsException: length=75; regionStart=52; regionLength=-18