package org.wikipedia.feed.searchbar;

import android.content.Context;
import android.view.View;

import org.wikipedia.R;
import org.wikipedia.feed.view.DefaultFeedCardView;
import org.wikipedia.util.FeedbackUtil;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SearchCardView extends DefaultFeedCardView<SearchCard> {
    @BindView(R.id.search_container) View searchContainer;
    @BindView(R.id.voice_search_button) View voiceSearchButton;

    public SearchCardView(Context context) {
        super(context);

        inflate(getContext(), R.layout.view_search_bar, this);
        ButterKnife.bind(this);
        FeedbackUtil.setToolbarButtonLongPressToast(voiceSearchButton);

        searchContainer.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                if (getCallback() != null) {
                    getCallback().onSearchRequested();
                }
            }
        });

        voiceSearchButton.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                if (getCallback() != null) {
                    getCallback().onVoiceSearchRequested();
                }
            }
        });
    }
}
@@ -67,34 +67,8 @@
 ext;
-%0Aimport android.view.View;
 %0A%0Aim
@@ -186,37 +186,8 @@
 l;%0A%0A
-import butterknife.BindView;%0A
 impo
@@ -213,16 +213,44 @@
 erKnife;
+%0Aimport butterknife.OnClick;
 %0A%0Apublic
@@ -317,132 +317,8 @@
 %3E %7B%0A
-    @BindView(R.id.search_container) View searchContainer;%0A    @BindView(R.id.voice_search_button) View voiceSearchButton;%0A%0A
     
@@ -382,17 +382,16 @@
 ntext);%0A
-%0A
         
@@ -533,168 +533,115 @@
 ast(
+findViewById(R.id.
 voice
-S
+_s
 earch
-B
+_b
 utton)
+)
 ;
-%0A
 %0A    
+%7D%0A%0A
     
-searchContainer.setOnClickListener(new OnClickListe
+@OnClick(R.id.search_contai
 ner
-(
 ) 
-%7B%0A            @Override%0A            public void onClick(View v) %7B%0A        
+void onSearchClick() %7B%0A
     
@@ -681,32 +681,24 @@
             
-        
 getCallback(
@@ -732,192 +732,92 @@
     
-   
-     
 %7D%0A    
-        %7D%0A        %7D);%0A%0A        
+%7D%0A%0A    @OnClick(R.id.
 voice
-S
+_s
 earch
-B
+_b
 utton
-.setOnClickListener(new OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A      
+) void onVoiceSearchClick() %7B%0A
         
   if
@@ -808,26 +808,24 @@
 ) %7B%0A        
-  
 if (getCallb
@@ -837,32 +837,24 @@
  != null) %7B%0A
-        
             
@@ -905,43 +905,9 @@
     
-        %7D%0A            %7D%0A        %7D);
+%7D
 %0A   

convert SearchCardView to Butter Knife