sprites

Android support for Sprites

License

License

MIT
GroupId

GroupId

ch.poole.android
ArtifactId

ArtifactId

sprites
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

aar
Description

Description

sprites
Android support for Sprites
Project URL

Project URL

https://github.com/simonpoole/Sprites
Source Code Management

Source Code Management

https://github.com/simonpoole/Sprites.git

Download sprites

How to add to project

<!-- https://jarcasting.com/artifacts/ch.poole.android/sprites/ -->
<dependency>
    <groupId>ch.poole.android</groupId>
    <artifactId>sprites</artifactId>
    <version>0.0.4</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/ch.poole.android/sprites/
implementation 'ch.poole.android:sprites:0.0.4'
// https://jarcasting.com/artifacts/ch.poole.android/sprites/
implementation ("ch.poole.android:sprites:0.0.4")
'ch.poole.android:sprites:aar:0.0.4'
<dependency org="ch.poole.android" name="sprites" rev="0.0.4">
  <artifact name="sprites" type="aar" />
</dependency>
@Grapes(
@Grab(group='ch.poole.android', module='sprites', version='0.0.4')
)
libraryDependencies += "ch.poole.android" % "sprites" % "0.0.4"
[ch.poole.android/sprites "0.0.4"]

Dependencies

compile (3)

Group / Artifact Type Version
androidx.annotation » annotation jar 1.0.0
androidx.core » core jar 1.0.0
com.google.code.gson : gson jar 2.8.6

Project Modules

There are no modules declared in this project.

Android Sprite Library

Tiny library that provides sprite support.

Usage

    ...
	Sprites sprites = new Sprites(context, sheetInputStream, imageInputStream);
	....
	Bitmap icon = sprites.get("an icon");

Including in your project

Add the following to your build.gradle file(s):

repositories {
    mavenCentral()
}
dependencies {
    implementation 'ch.poole.android:sprites:0.0.4'
}

Legal

Sources used for testing: Maki icons are from https://labs.mapbox.com/maki-icons/, the sprite icon sheet and image are from https://github.com/maputnik/osm-liberty

Versions

Version
0.0.4
0.0.3