EditText's Hint doesn't work with arabic language in Android 4.0.42019 Community Moderator ElectionEditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICSChange app language programmatically in AndroidPassword hint font in AndroidEditText hint doesn't showAndroid SDK installation doesn't find JDKAndroid Arabic Languagehint didn't work in edittext in androidEditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICSHint not working in EditText on AndroidSet multi-line for EditText's HINTcursor in EditText hint does not start from right for Arabic

Why would a flight no longer considered airworthy be redirected like this?

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Can anyone tell me why this program fails?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

Force user to remove USB token

How to deal with taxi scam when on vacation?

How is the Swiss post e-voting system supposed to work, and how was it wrong?

Informing my boss about remarks from a nasty colleague

How could a scammer know the apps on my phone / iTunes account?

The use of "touch" and "touch on" in context

How to generate globally unique ids for different tables of the same database?

Did CPM support custom hardware using device drivers?

Converting Functions to Arrow functions

Why do passenger jet manufacturers design their planes with stall prevention systems?

Welcoming 2019 Pi day: How to draw the letter π?

Employee lack of ownership

What are the possible solutions of the given equation?

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

At what level can a dragon innately cast its spells?

Rules about breaking the rules. How do I do it well?

Is a lawful good "antagonist" effective?

How to deal with a cynical class?

Be in awe of my brilliance!

Why do Australian milk farmers need to protest supermarkets' milk price?



EditText's Hint doesn't work with arabic language in Android 4.0.4



2019 Community Moderator ElectionEditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICSChange app language programmatically in AndroidPassword hint font in AndroidEditText hint doesn't showAndroid SDK installation doesn't find JDKAndroid Arabic Languagehint didn't work in edittext in androidEditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICSHint not working in EditText on AndroidSet multi-line for EditText's HINTcursor in EditText hint does not start from right for Arabic










0















when i launch my app in android device (4.0.4)

i don't see Arabic hint in EditText



activity_main.xml



<EditText
android:id="@+id/gradeInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="208dp"
android:layout_marginEnd="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="478dp"
android:autofillHints=""
android:ems="10"
android:hint="@string/inputHint"
android:inputType="numberDecimal"
android:maxLength="5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="o" />


strings.xml



<string name="inputHint">تلميح</string>


i have read these answers in this question, but nothing has helped me :(



please help me...










share|improve this question
























  • have you change the phone default language?

    – 007
    Mar 7 at 12:36












  • It is showing the hint but it's end of the Edittext

    – Parth Lotia
    Mar 7 at 12:37











  • @007 no, the device language is arabic

    – uzx 619
    Mar 7 at 12:38











  • @ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

    – uzx 619
    Mar 7 at 12:40











  • @uzx619 please update your full xml file...

    – Parth Lotia
    Mar 7 at 12:41















0















when i launch my app in android device (4.0.4)

i don't see Arabic hint in EditText



activity_main.xml



<EditText
android:id="@+id/gradeInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="208dp"
android:layout_marginEnd="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="478dp"
android:autofillHints=""
android:ems="10"
android:hint="@string/inputHint"
android:inputType="numberDecimal"
android:maxLength="5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="o" />


strings.xml



<string name="inputHint">تلميح</string>


i have read these answers in this question, but nothing has helped me :(



please help me...










share|improve this question
























  • have you change the phone default language?

    – 007
    Mar 7 at 12:36












  • It is showing the hint but it's end of the Edittext

    – Parth Lotia
    Mar 7 at 12:37











  • @007 no, the device language is arabic

    – uzx 619
    Mar 7 at 12:38











  • @ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

    – uzx 619
    Mar 7 at 12:40











  • @uzx619 please update your full xml file...

    – Parth Lotia
    Mar 7 at 12:41













0












0








0


0






when i launch my app in android device (4.0.4)

i don't see Arabic hint in EditText



activity_main.xml



<EditText
android:id="@+id/gradeInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="208dp"
android:layout_marginEnd="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="478dp"
android:autofillHints=""
android:ems="10"
android:hint="@string/inputHint"
android:inputType="numberDecimal"
android:maxLength="5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="o" />


strings.xml



<string name="inputHint">تلميح</string>


i have read these answers in this question, but nothing has helped me :(



please help me...










share|improve this question
















when i launch my app in android device (4.0.4)

i don't see Arabic hint in EditText



activity_main.xml



<EditText
android:id="@+id/gradeInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="208dp"
android:layout_marginEnd="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="478dp"
android:autofillHints=""
android:ems="10"
android:hint="@string/inputHint"
android:inputType="numberDecimal"
android:maxLength="5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="o" />


strings.xml



<string name="inputHint">تلميح</string>


i have read these answers in this question, but nothing has helped me :(



please help me...







android android-edittext arabic hint






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 11 at 10:05









Android

805320




805320










asked Mar 7 at 12:34









uzx 619uzx 619

15




15












  • have you change the phone default language?

    – 007
    Mar 7 at 12:36












  • It is showing the hint but it's end of the Edittext

    – Parth Lotia
    Mar 7 at 12:37











  • @007 no, the device language is arabic

    – uzx 619
    Mar 7 at 12:38











  • @ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

    – uzx 619
    Mar 7 at 12:40











  • @uzx619 please update your full xml file...

    – Parth Lotia
    Mar 7 at 12:41

















  • have you change the phone default language?

    – 007
    Mar 7 at 12:36












  • It is showing the hint but it's end of the Edittext

    – Parth Lotia
    Mar 7 at 12:37











  • @007 no, the device language is arabic

    – uzx 619
    Mar 7 at 12:38











  • @ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

    – uzx 619
    Mar 7 at 12:40











  • @uzx619 please update your full xml file...

    – Parth Lotia
    Mar 7 at 12:41
















have you change the phone default language?

– 007
Mar 7 at 12:36






have you change the phone default language?

– 007
Mar 7 at 12:36














It is showing the hint but it's end of the Edittext

– Parth Lotia
Mar 7 at 12:37





It is showing the hint but it's end of the Edittext

– Parth Lotia
Mar 7 at 12:37













@007 no, the device language is arabic

– uzx 619
Mar 7 at 12:38





@007 no, the device language is arabic

– uzx 619
Mar 7 at 12:38













@ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

– uzx 619
Mar 7 at 12:40





@ParthLotia i have this attribute in my .xml android:inputType="numberDecimal" is this affect ?

– uzx 619
Mar 7 at 12:40













@uzx619 please update your full xml file...

– Parth Lotia
Mar 7 at 12:41





@uzx619 please update your full xml file...

– Parth Lotia
Mar 7 at 12:41












2 Answers
2






active

oldest

votes


















0














enter image description here



I don't know about your code but. You have to create a Arabic String file in android there you can use the hint in Arabic and there is one default String which is in English.
So while running your application change your phone language to Arabic. and your string will automatically work



add this line in manifest



 <application
...
android:supportsRtl="true"
... >
</application>





share|improve this answer

























  • thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

    – uzx 619
    Mar 7 at 12:41












  • is your keyboard arabic or english??

    – 007
    Mar 7 at 12:42












  • english, but the EditText can be have only Decimal number not characters..

    – uzx 619
    Mar 7 at 12:46











  • use Arabic keyboard it will work

    – 007
    Mar 7 at 12:47











  • ya input type if it is in english then it will come from left to right

    – 007
    Mar 7 at 12:50


















0














I found the solution!



to solve this problem, you need to delete inputType attribute and it's will work fine.



or you can do this :



<EditText
...
android:inputType="none" />


But you cannot change the inputType attribute.



because if you changed it, the hint will be empty if the hint was arabic






share|improve this answer






















    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%2f55043940%2fedittexts-hint-doesnt-work-with-arabic-language-in-android-4-0-4%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









    0














    enter image description here



    I don't know about your code but. You have to create a Arabic String file in android there you can use the hint in Arabic and there is one default String which is in English.
    So while running your application change your phone language to Arabic. and your string will automatically work



    add this line in manifest



     <application
    ...
    android:supportsRtl="true"
    ... >
    </application>





    share|improve this answer

























    • thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

      – uzx 619
      Mar 7 at 12:41












    • is your keyboard arabic or english??

      – 007
      Mar 7 at 12:42












    • english, but the EditText can be have only Decimal number not characters..

      – uzx 619
      Mar 7 at 12:46











    • use Arabic keyboard it will work

      – 007
      Mar 7 at 12:47











    • ya input type if it is in english then it will come from left to right

      – 007
      Mar 7 at 12:50















    0














    enter image description here



    I don't know about your code but. You have to create a Arabic String file in android there you can use the hint in Arabic and there is one default String which is in English.
    So while running your application change your phone language to Arabic. and your string will automatically work



    add this line in manifest



     <application
    ...
    android:supportsRtl="true"
    ... >
    </application>





    share|improve this answer

























    • thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

      – uzx 619
      Mar 7 at 12:41












    • is your keyboard arabic or english??

      – 007
      Mar 7 at 12:42












    • english, but the EditText can be have only Decimal number not characters..

      – uzx 619
      Mar 7 at 12:46











    • use Arabic keyboard it will work

      – 007
      Mar 7 at 12:47











    • ya input type if it is in english then it will come from left to right

      – 007
      Mar 7 at 12:50













    0












    0








    0







    enter image description here



    I don't know about your code but. You have to create a Arabic String file in android there you can use the hint in Arabic and there is one default String which is in English.
    So while running your application change your phone language to Arabic. and your string will automatically work



    add this line in manifest



     <application
    ...
    android:supportsRtl="true"
    ... >
    </application>





    share|improve this answer















    enter image description here



    I don't know about your code but. You have to create a Arabic String file in android there you can use the hint in Arabic and there is one default String which is in English.
    So while running your application change your phone language to Arabic. and your string will automatically work



    add this line in manifest



     <application
    ...
    android:supportsRtl="true"
    ... >
    </application>






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 7 at 12:56

























    answered Mar 7 at 12:39









    007007

    423413




    423413












    • thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

      – uzx 619
      Mar 7 at 12:41












    • is your keyboard arabic or english??

      – 007
      Mar 7 at 12:42












    • english, but the EditText can be have only Decimal number not characters..

      – uzx 619
      Mar 7 at 12:46











    • use Arabic keyboard it will work

      – 007
      Mar 7 at 12:47











    • ya input type if it is in english then it will come from left to right

      – 007
      Mar 7 at 12:50

















    • thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

      – uzx 619
      Mar 7 at 12:41












    • is your keyboard arabic or english??

      – 007
      Mar 7 at 12:42












    • english, but the EditText can be have only Decimal number not characters..

      – uzx 619
      Mar 7 at 12:46











    • use Arabic keyboard it will work

      – 007
      Mar 7 at 12:47











    • ya input type if it is in english then it will come from left to right

      – 007
      Mar 7 at 12:50
















    thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

    – uzx 619
    Mar 7 at 12:41






    thanks for your answer, but.. the phone language is Arabic, and i have two strings.xml for arabic and english.

    – uzx 619
    Mar 7 at 12:41














    is your keyboard arabic or english??

    – 007
    Mar 7 at 12:42






    is your keyboard arabic or english??

    – 007
    Mar 7 at 12:42














    english, but the EditText can be have only Decimal number not characters..

    – uzx 619
    Mar 7 at 12:46





    english, but the EditText can be have only Decimal number not characters..

    – uzx 619
    Mar 7 at 12:46













    use Arabic keyboard it will work

    – 007
    Mar 7 at 12:47





    use Arabic keyboard it will work

    – 007
    Mar 7 at 12:47













    ya input type if it is in english then it will come from left to right

    – 007
    Mar 7 at 12:50





    ya input type if it is in english then it will come from left to right

    – 007
    Mar 7 at 12:50













    0














    I found the solution!



    to solve this problem, you need to delete inputType attribute and it's will work fine.



    or you can do this :



    <EditText
    ...
    android:inputType="none" />


    But you cannot change the inputType attribute.



    because if you changed it, the hint will be empty if the hint was arabic






    share|improve this answer



























      0














      I found the solution!



      to solve this problem, you need to delete inputType attribute and it's will work fine.



      or you can do this :



      <EditText
      ...
      android:inputType="none" />


      But you cannot change the inputType attribute.



      because if you changed it, the hint will be empty if the hint was arabic






      share|improve this answer

























        0












        0








        0







        I found the solution!



        to solve this problem, you need to delete inputType attribute and it's will work fine.



        or you can do this :



        <EditText
        ...
        android:inputType="none" />


        But you cannot change the inputType attribute.



        because if you changed it, the hint will be empty if the hint was arabic






        share|improve this answer













        I found the solution!



        to solve this problem, you need to delete inputType attribute and it's will work fine.



        or you can do this :



        <EditText
        ...
        android:inputType="none" />


        But you cannot change the inputType attribute.



        because if you changed it, the hint will be empty if the hint was arabic







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 7 at 15:09









        uzx 619uzx 619

        15




        15



























            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%2f55043940%2fedittexts-hint-doesnt-work-with-arabic-language-in-android-4-0-4%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

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived