Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid setting with TextView for Hebrew text?
    primarykey
    data
    text
    <p>I am setting text in TextView from string resource. Normally, Hebrew works in Right-To-Left format. When I set a text, it sets the text Right-To-Left format in LG, Samsung, Sony Phone but in HTC it does not work. It works in Left-To-Right format in HTC. Even I set Gravity to the TextView in Java file. </p> <p>Text in TextView should be span according to the screen size. For example if it is 320 x 480 then it display in 4 lines but if it is Galaxy Tab then there may be 2 lines.</p> <p>Here is my Code snippet:</p> <p>In Java:</p> <pre><code>private TextView mVersionInfo, mVersionDescriptionOne, mVersionDescriptionTwo, mVersionDescriptionThree; mVersionInfo = (TextView)findViewById(R.id.VersionInfo); mVersionDescriptionOne = (TextView)findViewById(R.id.VersionDesc1); mVersionDescriptionTwo = (TextView)findViewById(R.id.VersionDesc2); mVersionDescriptionThree = (TextView)findViewById(R.id.VersionDesc3); mVersionDescriptionOne.setGravity(Gravity.RIGHT); mVersionDescriptionTwo.setGravity(Gravity.RIGHT); mVersionDescriptionThree.setGravity(Gravity.RIGHT); </code></pre> <p>in XML:</p> <pre><code>&lt;TextView android:id="@+id/VersionDesc1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/versiondesc1" android:textColor="#000000" android:layout_marginTop="5dip" android:gravity="right" android:layout_alignParentRight="true" android:layout_marginRight="10dip" android:layout_below="@+id/Share" android:textSize="13sp" android:layout_alignRight="@+id/Body" /&gt; &lt;TextView android:id="@+id/VersionDesc2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/versiondesc2" android:textColor="#000000" android:layout_alignParentRight="true" android:layout_marginRight="10dip" android:layout_below="@+id/VersionDesc1" android:textSize="13sp" android:layout_marginTop="5dip" android:gravity="right" android:layout_alignRight="@+id/Body" /&gt; &lt;TextView android:id="@+id/VersionDesc3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/versiondesc3" android:textColor="#000000" android:layout_alignParentRight="true" android:layout_marginRight="10dip" android:layout_below="@+id/VersionDesc2" android:textSize="13sp" android:layout_marginTop="5dip" android:gravity="right" android:layout_alignRight="@+id/Body" /&gt; </code></pre> <p>In String Resource:</p> <pre><code>&lt;string name="versiondesc1"&gt;האפליקציה מתחברת לאתר הספק הסלולרי כדי להציג את מצב החשבון. לעיתים, כשאתר הספק איננו עובד תקין לא יהיה ניתן לקבל מידע. באם אתר הספק ישתנה האפליקציה עלולה להפסיק לעבוד. במצב כזה האפליקציה תחזור לעבודה תקינה מיד לאחר שאנו נתאים את שרת התוכנה שלנו לשינויים.&lt;/string&gt; &lt;string name="versiondesc2"&gt;הערה: אנחנו לא מייצגים את חברות הסלולר ולא נמצאים איתן בקשר מסוג כלשהו!&lt;/string&gt; &lt;string name="versiondesc3"&gt;אם נתקלת בבעיה, השתמש/י בכפתור יצירת קשר על מנת שנוכל לפתור אותה. נשמח לקבל כל משוב על האפליקציה.&lt;/string&gt; </code></pre> <p>What is wrong with my code?</p> <p>Anybody who has worked with another language, Please guide me here.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload