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

            Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

            Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

            How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page