


Let’s explore the steps involved to integrate the Butter Knife library. In the sample project of this tutorial, you can see a sample application with one activity and one fragment with an implementation using the Butter Knife library and a regular implementation. It also has annotations to handle events like onClick(), onLongClick(), etc. The Butter Knife library, developer and maintained by Jake Wharton (Square Inc.), has annotations that help developers to instantiate the views from our activity or fragment. But as applications’ designs get more complex layouts, the call to this method becomes repetitive and this is where the Butter Knife library comes in.

Method for each view in the layout that you want to use in your application’s code. In every Android application, you have to use the findViewById() In this quick uang lelah, you’ll learn how to integrate the Butter Knife library in your projects to easily instantiate the views in your layout in your application’s code.
