An Android Spannable is an interface for text to which markup objects can be applied.
Questions tagged [spannable]
302 questions
1
vote
1 answer
How to change some particular characters on TextView?
I need to change color of each vowel letter in TextView.
For example i have ("a", "e", "i", "o", "u") and i need them to be something like this -
GREEN COLOR
I was…

AndrewS
- 7,418
- 8
- 35
- 50
1
vote
1 answer
Android Arabic Text Concatenation
in Android I would like to concatenate number with Arabic text. but if i concatenate the number then the arabic text direction changes.
Example: My Application reads each line of arabic text from file and adds the line number to each line and…

user1517878
- 41
- 4
1
vote
0 answers
mapping Unicode to emoji encoding table
I have response from server like this json
"content": "\\u062a\\u0637\\u0628\\u064a\\u0642 \\u0645\\u0645\\u064a\\u0632 \\u0627\\u0644\\u0634\\u0643\\u0631 \\u0644\\u0645\\u0646 \\u0633\\u0627\\u0647\\u0645 \\u0641\\u064a\\u0647"
it…

Sarah Sami
- 577
- 1
- 6
- 20
1
vote
0 answers
Android 5.0: Issue with setSpan in TextView
I'm trying to implement WordCap in a TextView on Android, here is my code:
SpannableStringBuilder span = new SpannableStringBuilder();
span.append(" ");
span.append(str);
Drawable localDrawable =…

TuanNH
- 11
- 1
1
vote
2 answers
Android TextView with multiple click events
In my android app i have to show tags on Textview.
There can be multiple tag in same textView and i want to add click event to each tag.
There may be some other text in same textview.How can i formate text in such a way all tags are clickable with…

Ravi Bhandari
- 4,682
- 8
- 40
- 68
1
vote
0 answers
Android - Custom textview which support text selection and underline
I want to make custom view or textview, which supports text selection and can also underline part of text string on long press and move-after-long-press events(drag to next line to underline) with different colors of underline. Undelined text can be…

Roshni
- 256
- 1
- 4
- 16
1
vote
2 answers
How to add a image inside a edit text android
I want to add image inside edittext view . For example i have image that size is 250*250 i want to show text left to image for height of 250 after that have to show text in normal left position.
Some text some text some text
Some…

Rakki s
- 1,426
- 1
- 18
- 42
1
vote
1 answer
incorrect words with Spannable
I would like to have a custom Spannable like below picture :
I would like to create a Zigzag line under a incorrect words.
How can I do?

S.M_Emamian
- 17,005
- 37
- 135
- 254
1
vote
1 answer
Adding ImageSpan after Html.fromHtml();
I have an JSON String which contains HTML Tags and image like this one:
denn.. :)
ich habe immer…

not sure
- 13
- 1
- 4
1
vote
1 answer
Android Spannable text encoding after Html.tohtml()
I am developing an application that uses Spannable text from EditText. After using Html.toHtml() method for Spannable text it gives me this kind of String on the exit.
Подарок ко…

Arshak92
- 634
- 3
- 10
- 24
1
vote
0 answers
Concat two identical SpannableString
I'm trying to make SpannableString using sort of alphabet, it looks like this:
public ArrayList alphabet;
...
temp = new SpannableString("S0");
temp.setSpan(new SubscriptSpan(), 1, 2,…

loredan13
- 114
- 1
- 9
1
vote
0 answers
how can i make image span clickable in Android?
I have an ExpandableListView and in the ViewGroup method i have an image span set to some textview like this:
String statusText = postsList.get(groupPosition).get(TAG_userStatus).substring(urlStr.length(),…

Dianna
- 65
- 5
1
vote
1 answer
How can I store a spanned string in sqlite?
In Android, I have an application that handles multiple rich format text fields. I get the description of the text from an xml and create it as an spannable string builder, adding each run and styling it.
Is there a way to store this on sqlite that…

Arcantos
- 1,052
- 1
- 13
- 28
1
vote
1 answer
Separate chars in a spannable
I have a spannable, say [12]. I would like to read the numbers from between the [ and the ]. How can I do that for spannables?

BurninatorDor
- 1,009
- 5
- 19
- 42
1
vote
2 answers
A part of textview in android to be clickable
I have to display some text in textview.
I just want the a part of the text to be clickable and the rest of the text to be normal.
Here is my code:
TextView mTextView = (TextView) findViewById(R.id.txt);
String mText = "some text.Link to click.Some…

O__O
- 950
- 1
- 9
- 17