I have a textview:
<TextView
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="עבריתעברית"
android:textSize="5sp"/>
I have 2 questions:
-
In my emulator, the hebrew doesn’t shown. Instead, I see rectangles. How do I choose an
hebrew font or changing the encoding in order to see the Hebrew? -
How can I set right to left alignment?
Android got hebrew fonts only from 2.2 and on. If your emulator runs a version under 2.2 so you need to install hebrew fonts on your emulator. There’s a tutorial somewhere in this website:
http://iandroid.co.il/forum/
You can make a quick search and find it.
As for your second question, I’m not sure you can do it. I don’t really like to and recommend to test apps that contains hebrew on an emulator because Android doesn’t support RTL (You need to make some modifications in order to use RTL).
Good luck!