hehonghui / hehonghui/Colorful

include里面的id怎么得到

Open
#7 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.4k
Forks
265
PR merge metrics
No merged PRs in 30d

Description

mColorful = new Colorful.Builder(mContext)
.backgroundColor(R.id.rl_bottom_root, R.attr.root_view_bg)

比如rl_bottom_root是include里面的根布局ID,怎么写?
你 .backgroundColor(R.id.rl_bottom_root, R.attr.root_view_bg),这边的ID只能是非include的ID把?

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 at the backgroundColor entry point and trace how the supplied view ID is resolved for an Android layout that uses include. Confirm whether rl_bottom_root can be referenced through the current API, and define done as documented or supported handling for this include-root ID case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.