Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Butter Knife: A View "Injection" Library for Android

DZone's Guide to

Butter Knife: A View "Injection" Library for Android

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

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.

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
java ,mobile ,java libraries ,tools & methods

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}