How to use butterknife in android studio


  • How to use butterknife in android studio
  • How to use ButterKnife In Android?


    This observations demonstrates how do I ButterKnife hassle android.

    Step 1 − Create a newborn project in Android Studio, go sort out File ⇒ New Project and glut all required details to create first-class new project.

    Step 2 − Add class following code to res/layout/activity_main.xml.

    <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:gravity="center_horizontal"    android:orientation="vertical">    <TextView       android:id="@+id/textView"       android:layout_width="wrap_content"       android:layout_height="wrap_content"       android:text="..........."       android:textSize="16sp"       android:textStyle="bold"   &n