maoruibin / maoruibin/maoruibin.github.com
用代码为 View 设置波纹背景
Open
Nobody has claimed this yet.
trick
utils
View
- Dominant language
- HTML
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
//设置波纹背景
val typedValue = TypedValue()
this.theme.resolveAttribute(android.R.attr.selectableItemBackground, typedValue, true)
val attribute = intArrayOf(android.R.attr.selectableItemBackground)
val typedArray = this.theme.obtainStyledAttributes(typedValue.resourceId, attribute)
tipView.background = typedArray.getDrawable(0)
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
The issue contains a Kotlin snippet for applying Android's selectableItemBackground and links to an external CSDN article, but names no repository file or requested blog change. Start by inspecting the blog's content structure and determine whether this material is intended as a new post or an addition; completion criteria are not specified in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- documentation, mobile
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100