maoruibin / maoruibin/maoruibin.github.com
修改指定位置字符颜色
Open
Nobody has claimed this yet.
trick
- Dominant language
- HTML
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
final SpannableStringBuilder sb = new SpannableStringBuilder("●新增120套 ●更新120套 ●售出120套");
final ForegroundColorSpan fcs = new ForegroundColorSpan(Color.rgb(234, 85, 80));
sb.setSpan(fcs, 0, 1, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the provided Java SpannableStringBuilder example and identify the intended character positions and colors. The issue does not name any repository file or test, so first clarify the expected output; done should mean the specified characters display in the requested colors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100