300 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
39
views
Empty AlignmentSpan.Standard span affect previous line in EditText
Some background:
I have EditText where user could choose AlignmentSpan.Standard span for each line independently. By default line has Layout.Alignment.ALIGN_NORMAL alignment.
The problem:
When type ...
0
votes
4
answers
517
views
Android: Fix Search Text Highlighting with RecyclerView and ListAdapter
I have a SearchView in a Toolbar, that sits above a RecyclerView list of CardViews. The SearchView works correctly to filter the list based on text inputs. However, the code in the ListAdapter in &...
1
vote
1
answer
38
views
Android SDK: Set dashed underline for a word
I've already implemented some spanning using existing ForegroundColorSpan and BackgroundColorSpan. Now, I need to select a word via dashed underline. I googled it up and found an example: How do I ...
0
votes
0
answers
72
views
Android URLSpan clickable outside of bounds
I've just discovered that my URLSpan at the end of Spannable is clickable outside text bounds (at full remain width of the element) if it placed right at the end of Spannable.
It can be easily fixed ...
0
votes
1
answer
3k
views
How to create TextField with spannable text in Jetpack compose
How to create TextField with spannable text where every word is wrapped in separate spannable.
Do I need to use VisualTransformation?
Must be something like that:
0
votes
1
answer
69
views
Build text wth image inside in Xamarin.Forms
I am trying to build a text, that contains a .png inside.
To be more clear I want something like this:
"text text text image text text text"
I tried using StackLayout or Grid, but it does't ...
0
votes
0
answers
60
views
How to set the first character background color with match_parent height in TextView?
Here is the TextView that I am working with:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://...
1
vote
2
answers
164
views
How to remove a part of Spannable
In my android app user can change text foreground and background colors by selecting text, everything works fine, but if user created red foreground for text Hello World, and wants to remove red ...
2
votes
3
answers
211
views
formatted html text (Spannable) dosen't fully appear inside textview and scrollview
I am trying to add privacy policy page in my app, the whole page is html content, and I used this method to make text scrollable but the problem is the full text dosen't appear inside textview and I ...
1
vote
0
answers
129
views
How to add quotations to the end of the end of the text using drawLeadingMargin
I'm trying to fix a bug in our app, there is an option to quote a message, when you quote a message we need to add a quotation " with special styling (color and different font styling). The first ...
0
votes
1
answer
104
views
Adding a MetricAffectingSpan to an EditText causes it to scroll to the cursor location
I contribute to a text editor app and have observed the following behavior: When I add or remove a MetricAffectingSpan (have tested with LineHeightSpan and TextAppearanceSpan), the edit text jumps to ...
0
votes
2
answers
135
views
How do I use EditableFactory in Xamarin Forms?
My EditorFactory is crashing under Google Play testing. The class is embedded in a Renderer I have wrote to extend the Xamarin Forms Editor control.
Error:
FATAL EXCEPTION: Thread-3
Process: com....
1
vote
1
answer
105
views
How to Save ImageSpan with text into SQL Lite Database?
I have implemented image in EditEtxt. Its working fine. I want to save the whole editText entities(Text & image) in sql lite database. When i save it to sql only text are showing not images. I ...
1
vote
0
answers
133
views
How to set Xamarin Android ForegroundColorSpan.ForegroundColor Property at runtime?
The Xamarin Android ForegroundColorSpan.ForegroundColor Property is readonly.
How can we then set this at runtime if we want to dynamically change the color of a span?
UPDATED
To provide more ...
1
vote
1
answer
456
views
Android Spanned getSpanEnd() returns wrong value
I am using Html.fromHtml to parse some html string, and then going through the spans, I am looking to find the start and end of each span. I noticed that for <a> tags the getSpanEnd returns the ...