Skip to content
Tommy Ettinger edited this page Sep 22, 2015 · 11 revisions

SquidLib is compiled to Java 7 but limits itself to the subset of Java 7 features available on Android. The current master revision here on GitHub is compatible with Android (but only the squidlib-util module, which can be included separately from the display modules), but stable release 2.9.1 is not. Any releases after 2.9.1 should be split up into modules, with the squidlib-util module compatible with Android and Java 7 or higher.

All samples linked on this page are compatible with Java 7. They're probably very out-of-date in regards to the current API, since these were written before SquidLib 2.0.0 and now the version is approaching 3.0.0, with breaking changes in both major version number increases. Going from 2.9.1 to the master revision (or 3.0.0 when it comes out) will entail many small breaking changes, the most common of which can be nearly-automatic search-and-replace-all changes.

You should prefer looking at the more involved samples in the repository, going to the "tag" corresponding to the version of SquidLib you are using. For 2.9.1, there are two samples here that go through most features in the library, particularly EverythingDemo. The launchers for those classes are in the desktop sub-folder, and if you use Maven or Gradle to build (there's a Maven pom.xml project provided), it should download any dependencies automatically.

These Are Old

Simple Example shows very basic initialization in Java and Scala.

SquidBridges uses slightly more complex interactions with the panel and also features mouse interaction. The mouse interaction is not yet part of the library itself, but rather coded into the SquidBridges class.

Clone this wiki locally