Creating code can sometimes be frustrating. Developers have to deal with redundant coding that is visually unattractive. In this article, I will introduce an injection library for Android development that can help create more beautiful code and recent updates introduced with version 8. Android Butter Knife is an open source view "injection" library for Android created by Jake Wharton.
Butter Knife is small, simple and lightweight, and it makes life as a developer easier. It allows developers to perform injection on arbitrary objects
, views
and OnClickListeners
so they can focus on writing useful code. Consider Android Butter Knife a reduction library. It replaces findViewById
with @Bind()
and set^^^^Listener
calls with @onClick()
making code cleaner and more understandable. Butter Knife enables focus on logic instead of glue code and reduces development time by reducing redundant coding.
Continue reading %Tidy and Optimize Your Java Code with Android Butter Knife%
by Valdio Veliu via SitePoint
No comments:
Post a Comment