The Wayback Machine - https://web.archive.org/web/20200904191656/https://github.com/duanhong169/CheckerboardDrawable
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
art
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CheckerboardDrawable gitHub release platform license

A custom Drawable to use as background which embody "transparent", AKA checkerboard grid.

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.

About

A custom Drawable to use as background which embody "transparent", AKA checkerboard grid.

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.