A pure Java implementation of the Cassowary constraint algorithm, and an Android ViewGroup layout manager that uses it.