CheckerboardDrawable
A custom Drawable to use as background which embody "transparent", AKA checkerboard grid.
Install / Use
/learn @duanhong169/CheckerboardDrawableREADME
CheckerboardDrawable
<a target="_blank" href="https://android-arsenal.com/api?level=14"><img src="https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat"></a> 
A custom Drawable to use as background which embody "transparent", AKA checkerboard grid.
<img src='art/screen-shot.png' height='500px'/>Gradle
dependencies {
implementation 'com.github.duanhong169:checkerboarddrawable:${latestVersion}'
...
}
Replace
${latestVersion}with the latest version code. See releases.
Usage
Use CheckerboardDrawable.create() and set as background drawable
yourView.setBackgroundDrawable(CheckerboardDrawable.create());
Custom
CheckerboardDrawable drawable = new CheckerboardDrawable.Builder()
.colorOdd(Color.LTGRAY)
.colorEven(Color.DKGRAY)
.size(20)
.build();
yourView.setBackgroundDrawable(drawable);
License
See the LICENSE file.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
