maoruibin / maoruibin/maoruibin.github.com

通过代码设置 View 背景为 android.R.attr.selectableItemBackground

Open
#23 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

 // Attribute array
int[] attrs = new int[] { android.R.attr.selectableItemBackground };
TypedArray a = getTheme().obtainStyledAttributes(attrs);

view.setBackground(a.getDrawable(0));

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

The issue only supplies a Java snippet using Android's selectableItemBackground and names no file, test, or entry point. First locate the relevant blog content and clarify whether this is a documentation addition or correction; it is done only when the intended change and verification steps are specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
documentation, mobile
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.