A string is read as a number, not reading it by number when the conversation is turned on in android

I have the line "9039662543", and when it comes to the conversation, this line reads like "nine million ..." in 4.3 Android devices, above 4.3 devices running on it, reading "nine zero three ...". What should I do to fix this?

+5
source share
4 answers

I guess this is a phone number? I can not say because there is no formatting. What is the essence of the problem. There are several fixes for this.

A: . TalkBack , , , , .. , . !

B: . (903) -966-2542 9039662543, - , . - " ........", , , . , 4.3, , .

C: . :

: 9039662543 : 9 0 3 9 6 6 2 5 4 3

. . , , , TalkBack . TalkBack, . , , . . , , , . . .

+6

"\ ufeff", . . . Android Talkback

0
//add extra space to text and set that text as contentDescription
textView.setText(readbleText);
StringBuilder builder = new StringBuilder();
for (int i = 0; i < readbleText.length(); i++) {
builder.append(readbleText.charAt(i));
builder.append("\u00A0");
}
textView.setContentDescription(builder);
-1

Source: https://habr.com/ru/post/1628255/


All Articles