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
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
|
show 13 more comments
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
have you change the phone default language?
– 007
Mar 7 at 12:36
It is showing the hint but it's end of theEdittext
– 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 .xmlandroid: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
|
show 13 more comments
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
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
android android-edittext arabic hint
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 theEdittext
– 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 .xmlandroid: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
|
show 13 more comments
have you change the phone default language?
– 007
Mar 7 at 12:36
It is showing the hint but it's end of theEdittext
– 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 .xmlandroid: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
|
show 13 more comments
2 Answers
2
active
oldest
votes
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>
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 theEditText
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
|
show 2 more comments
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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>
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 theEditText
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
|
show 2 more comments
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>
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 theEditText
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
|
show 2 more comments
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>
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>
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 theEditText
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
|
show 2 more comments
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 theEditText
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
|
show 2 more comments
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
add a comment |
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
add a comment |
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
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
answered Mar 7 at 15:09
uzx 619uzx 619
15
15
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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