maoruibin / maoruibin/maoruibin.github.com

修改指定位置字符颜色

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.