Mobile Zone is brought to you in partnership with:

Alec is a Content Curator at DZone and lives in Raleigh, North Carolina. He is interested in Java and Android programming, and databases of all types. When he's not writing for the NoSQL and IoT Zones, you might find him playing bass guitar, writing short stories where nothing happens, or making stuff in Java. Alec is a DZone Zone Leader and has posted 579 posts at DZone. You can read more from them at their website. View Full User Profile

Butter Knife: A View "Injection" Library for Android

  • submit to reddit

Android developers may be interested to know that Jake Wharton recently released Butter Knife 4.0, the most recent version of his view "injection" library for Android, which works by dynamically generating and using code to avoid boiler plate and dense helper libraries, and to deal with the fact that, as Wharton puts it in his explanation of Butter Knife, "Android developers, like most developers, are lazy."

According to Wharton's announcement on Google Plus, the new version includes "a slew of new listener callbacks, further optimized generated code, and a sexier class name." You can find the JAR download with complete overview on the Butter Knife website, and all the source code on Github.