negative number within RTL AlertDialog2019 Community Moderator ElectionHow to create a Custom Dialog box in android?How to make the text direction from right to leftHow do I call findViewById on an AlertDialog.Builder?android decimalformat for arabic, symbol is on right side of numberRTL in MarkdownHow to change theme for AlertDialogHow to get the build/version number of your Android application?Trying to lock screen rotation when displaying dialogsAuto Scale TextView Text to Fit within BoundsIdentifying RTL language in AndroidsetText on button from another activity androidHow to create dynamic layout with edittext , textview and images with given input number in previous screen android?RTL is forced in RTL devicesI have two EditText entries, one for a name and the other for an age receive errors for TextUtils on the second

Confusion about Complex Continued Fraction

School performs periodic password audits. Is my password compromised?

Why is there an extra space when I type "ls" in the Desktop directory?

Possible to detect presence of nuclear bomb?

What would be the most expensive material to an intergalactic society?

Shifting between bemols and diesis in the key signature

Specifying a starting column with colortbl package and xcolor

How do electrons receive energy when a body is heated?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?

What is the generally accepted pronunciation of “topoi”?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

MySQL importing CSV files really slow

After `ssh` without `-X` to a machine, is it possible to change `$DISPLAY` to make it work like `ssh -X`?

Are all players supposed to be able to see each others' character sheets?

How does Ehrenfest's theorem apply to the quantum harmonic oscillator?

What materials can be used to make a humanoid skin warm?

Is it a Cyclops number? "Nobody" knows!

In the late 1940’s to early 1950’s what technology was available that could melt ice?

Why is a very small peak with larger m/z not considered to be the molecular ion?

ER diagram relationship node size adjustment

Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?

Is a piano played in the same way as a harmonium?

I can't die. Who am I?



negative number within RTL AlertDialog



2019 Community Moderator ElectionHow to create a Custom Dialog box in android?How to make the text direction from right to leftHow do I call findViewById on an AlertDialog.Builder?android decimalformat for arabic, symbol is on right side of numberRTL in MarkdownHow to change theme for AlertDialogHow to get the build/version number of your Android application?Trying to lock screen rotation when displaying dialogsAuto Scale TextView Text to Fit within BoundsIdentifying RTL language in AndroidsetText on button from another activity androidHow to create dynamic layout with edittext , textview and images with given input number in previous screen android?RTL is forced in RTL devicesI have two EditText entries, one for a name and the other for an age receive errors for TextUtils on the second










1















using the following resource:



ltr: <string name="err_field_range_hint_f">Possible values: [%1$.0f .. %2$.0f]</string> 
rtl: <string name="err_field_range_hint_f">ערכים אפשריים:
[%2$.0f .. %1$.0f]</string>


in the following code:



 _AlertDialog = new AlertDialog.Builder(this).
setTitle(getString(R.string.title))
.setMessage(getString(R.string.err_field_range_hint_f, valLow, valHigh) )
.setPositiveButton(getString(R.string.ok), null)
.show();


I receive [25- .. 100] instead of [-25 .. 100]



I solved similiar problem in the layout with forcing LTR in EditText fields, using:



android:inputType="numberSigned|numberDecimal" 
android:textDirection="ltr"


but how can I force LTR on specific "words" (or numbers) inside AlertDialog.Message?



Note: I saw a solution in here but I prefer android would handle formatting numbers...










share|improve this question




























    1















    using the following resource:



    ltr: <string name="err_field_range_hint_f">Possible values: [%1$.0f .. %2$.0f]</string> 
    rtl: <string name="err_field_range_hint_f">ערכים אפשריים:
    [%2$.0f .. %1$.0f]</string>


    in the following code:



     _AlertDialog = new AlertDialog.Builder(this).
    setTitle(getString(R.string.title))
    .setMessage(getString(R.string.err_field_range_hint_f, valLow, valHigh) )
    .setPositiveButton(getString(R.string.ok), null)
    .show();


    I receive [25- .. 100] instead of [-25 .. 100]



    I solved similiar problem in the layout with forcing LTR in EditText fields, using:



    android:inputType="numberSigned|numberDecimal" 
    android:textDirection="ltr"


    but how can I force LTR on specific "words" (or numbers) inside AlertDialog.Message?



    Note: I saw a solution in here but I prefer android would handle formatting numbers...










    share|improve this question


























      1












      1








      1








      using the following resource:



      ltr: <string name="err_field_range_hint_f">Possible values: [%1$.0f .. %2$.0f]</string> 
      rtl: <string name="err_field_range_hint_f">ערכים אפשריים:
      [%2$.0f .. %1$.0f]</string>


      in the following code:



       _AlertDialog = new AlertDialog.Builder(this).
      setTitle(getString(R.string.title))
      .setMessage(getString(R.string.err_field_range_hint_f, valLow, valHigh) )
      .setPositiveButton(getString(R.string.ok), null)
      .show();


      I receive [25- .. 100] instead of [-25 .. 100]



      I solved similiar problem in the layout with forcing LTR in EditText fields, using:



      android:inputType="numberSigned|numberDecimal" 
      android:textDirection="ltr"


      but how can I force LTR on specific "words" (or numbers) inside AlertDialog.Message?



      Note: I saw a solution in here but I prefer android would handle formatting numbers...










      share|improve this question
















      using the following resource:



      ltr: <string name="err_field_range_hint_f">Possible values: [%1$.0f .. %2$.0f]</string> 
      rtl: <string name="err_field_range_hint_f">ערכים אפשריים:
      [%2$.0f .. %1$.0f]</string>


      in the following code:



       _AlertDialog = new AlertDialog.Builder(this).
      setTitle(getString(R.string.title))
      .setMessage(getString(R.string.err_field_range_hint_f, valLow, valHigh) )
      .setPositiveButton(getString(R.string.ok), null)
      .show();


      I receive [25- .. 100] instead of [-25 .. 100]



      I solved similiar problem in the layout with forcing LTR in EditText fields, using:



      android:inputType="numberSigned|numberDecimal" 
      android:textDirection="ltr"


      but how can I force LTR on specific "words" (or numbers) inside AlertDialog.Message?



      Note: I saw a solution in here but I prefer android would handle formatting numbers...







      android right-to-left






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 11:07









      Tanveer Munir

      1,316318




      1,316318










      asked Mar 6 at 14:29









      AtaraAtara

      1,92132948




      1,92132948






















          2 Answers
          2






          active

          oldest

          votes


















          2














          I am not sure you want to receive



          enter image description here



          and not



          enter image description here



          At any rate, the easiest fix is to insert the Unicode BIDI override markers, e.g. LRO:



          <string name="err_field_range_hint_f">ערכים אפשריים:
          u202D[%2$.0f .. %1$.0f]u202C;</string>





          share|improve this answer























          • what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

            – Atara
            Mar 7 at 12:45











          • If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

            – Alex Cohn
            Mar 7 at 14:27











          • As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

            – Alex Cohn
            Mar 7 at 15:11











          • thanks. It works

            – Atara
            Mar 7 at 15:45


















          1














          You can find the "message" text view inside the alert dialog, and than apply the same method you used on your edit text to correct the LTR issue.



          Consider this SO answer to find the inner text view:



          https://stackoverflow.com/a/35808187/3339597






          share|improve this answer























          • can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

            – Atara
            Mar 7 at 8:36











          • I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

            – Re'em
            Mar 7 at 8:49










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025467%2fnegative-number-within-rtl-alertdialog%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          I am not sure you want to receive



          enter image description here



          and not



          enter image description here



          At any rate, the easiest fix is to insert the Unicode BIDI override markers, e.g. LRO:



          <string name="err_field_range_hint_f">ערכים אפשריים:
          u202D[%2$.0f .. %1$.0f]u202C;</string>





          share|improve this answer























          • what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

            – Atara
            Mar 7 at 12:45











          • If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

            – Alex Cohn
            Mar 7 at 14:27











          • As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

            – Alex Cohn
            Mar 7 at 15:11











          • thanks. It works

            – Atara
            Mar 7 at 15:45















          2














          I am not sure you want to receive



          enter image description here



          and not



          enter image description here



          At any rate, the easiest fix is to insert the Unicode BIDI override markers, e.g. LRO:



          <string name="err_field_range_hint_f">ערכים אפשריים:
          u202D[%2$.0f .. %1$.0f]u202C;</string>





          share|improve this answer























          • what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

            – Atara
            Mar 7 at 12:45











          • If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

            – Alex Cohn
            Mar 7 at 14:27











          • As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

            – Alex Cohn
            Mar 7 at 15:11











          • thanks. It works

            – Atara
            Mar 7 at 15:45













          2












          2








          2







          I am not sure you want to receive



          enter image description here



          and not



          enter image description here



          At any rate, the easiest fix is to insert the Unicode BIDI override markers, e.g. LRO:



          <string name="err_field_range_hint_f">ערכים אפשריים:
          u202D[%2$.0f .. %1$.0f]u202C;</string>





          share|improve this answer













          I am not sure you want to receive



          enter image description here



          and not



          enter image description here



          At any rate, the easiest fix is to insert the Unicode BIDI override markers, e.g. LRO:



          <string name="err_field_range_hint_f">ערכים אפשריים:
          u202D[%2$.0f .. %1$.0f]u202C;</string>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 9:25









          Alex CohnAlex Cohn

          41.9k553192




          41.9k553192












          • what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

            – Atara
            Mar 7 at 12:45











          • If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

            – Alex Cohn
            Mar 7 at 14:27











          • As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

            – Alex Cohn
            Mar 7 at 15:11











          • thanks. It works

            – Atara
            Mar 7 at 15:45

















          • what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

            – Atara
            Mar 7 at 12:45











          • If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

            – Alex Cohn
            Mar 7 at 14:27











          • As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

            – Alex Cohn
            Mar 7 at 15:11











          • thanks. It works

            – Atara
            Mar 7 at 15:45
















          what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

          – Atara
          Mar 7 at 12:45





          what is the difference between u202D, u202C vs. U+200E, U+200F ? stackoverflow.com/a/30415888/262923

          – Atara
          Mar 7 at 12:45













          If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

          – Alex Cohn
          Mar 7 at 14:27





          If you ask about uXXXX vs. U+XXXX – these are simply different notations. The former is supported in Android XML. Maybe you can use other notations, too.

          – Alex Cohn
          Mar 7 at 14:27













          As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

          – Alex Cohn
          Mar 7 at 15:11





          As for the behaviour of different Unicode markers, Left-to-Right Mark (LRM) u200E is an invisible character that is equivalent to letter A. It does not change the 'paragraph order', or android:textDirection of the text field. The LRO character starts a 'span' that is almost like android:textDirection="ltr" within the text field.

          – Alex Cohn
          Mar 7 at 15:11













          thanks. It works

          – Atara
          Mar 7 at 15:45





          thanks. It works

          – Atara
          Mar 7 at 15:45













          1














          You can find the "message" text view inside the alert dialog, and than apply the same method you used on your edit text to correct the LTR issue.



          Consider this SO answer to find the inner text view:



          https://stackoverflow.com/a/35808187/3339597






          share|improve this answer























          • can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

            – Atara
            Mar 7 at 8:36











          • I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

            – Re'em
            Mar 7 at 8:49















          1














          You can find the "message" text view inside the alert dialog, and than apply the same method you used on your edit text to correct the LTR issue.



          Consider this SO answer to find the inner text view:



          https://stackoverflow.com/a/35808187/3339597






          share|improve this answer























          • can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

            – Atara
            Mar 7 at 8:36











          • I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

            – Re'em
            Mar 7 at 8:49













          1












          1








          1







          You can find the "message" text view inside the alert dialog, and than apply the same method you used on your edit text to correct the LTR issue.



          Consider this SO answer to find the inner text view:



          https://stackoverflow.com/a/35808187/3339597






          share|improve this answer













          You can find the "message" text view inside the alert dialog, and than apply the same method you used on your edit text to correct the LTR issue.



          Consider this SO answer to find the inner text view:



          https://stackoverflow.com/a/35808187/3339597







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 8:29









          Re'emRe'em

          438615




          438615












          • can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

            – Atara
            Mar 7 at 8:36











          • I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

            – Re'em
            Mar 7 at 8:49

















          • can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

            – Atara
            Mar 7 at 8:36











          • I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

            – Re'em
            Mar 7 at 8:49
















          can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

          – Atara
          Mar 7 at 8:36





          can I split the inner message into few text views? "ערכים אפשריים:" is RTL but "[%2$.0f .. %1$.0f]" is LTR ?

          – Atara
          Mar 7 at 8:36













          I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

          – Re'em
          Mar 7 at 8:49





          I'm not aware of any method to split text behaviour in a single text view. You can create your own custom dialog with multiple text views, one for each segment. To create a custom dialog visit here: stackoverflow.com/q/13341560/3339597

          – Re'em
          Mar 7 at 8:49

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025467%2fnegative-number-within-rtl-alertdialog%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович