I am developing application for android which have custom keyboard for RTL(Right to left) language. I designed keyboard. My problem is how to connect farsi or arabic characters. I tried this link
How to support Arabic text in Android?
It shows farsi text well but failded on editbox. Please tell me how can I connect words.
My xml is:
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="104dp"
android:ems="10"
android:gravity="right"
android:inputType="textMultiLine" >
<requestFocus />
</EditText>
And edit text box code is:
edittxt = (EditText) findViewById(R.id.editText1);
typeface = Farsi.GetFarsiFont(this);
edittxt.setTypeface(typeface);
Words show in editbox SEPARATELY as داس ک
Pleae tell me how to connect words in edit textbox?