Button doesn't get focus in Recyclerview item
<p>am trying to click button in Recyclerview item but it not receive onclick event.but it worked for double tap to respond onclick listener</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="5dp"
android:descendantFocusability="blocksDescendants"
android:layout_width="match_parent"
android:layout_height="wrap_content"&gt;
&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"&gt;
&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"&gt;
&lt;ImageView
android:layout_width="62dp"
android:layout_height="62dp"
android:layout_marginRight="5dp"
android:focusableInTouchMode="false"
android:scaleType="fitXY"
android:layout_marginLeft="5dp"
android:id="@+id/calllog_contact_img"
android:src="@mipmap/ic_launcher"/&gt;
&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"&gt;
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/calllog_contact_name"
        android:layout_marginBottom="2dp"
        android:text="Pounkumar Purushothaman"
        android:textSize="18dp"/&gt;
    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"&gt;
        &lt;ImageView
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginRight="20dp"
            android:focusableInTouchMode="false"
            android:src="@android:drawable/sym_call_incoming"
            android:layout_marginBottom="10dp"
            android:id="@+id/calllog_call_type"/&gt;
        &lt;LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:orientation="vertical"&gt;
            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/calllog_no"
                android:text="+919043974134"/&gt;
           &lt;LinearLayout
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:orientation="horizontal"&gt;
               &lt;TextView
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:text="10:20"
                   android:layout_marginRight="20dp"
                   android:id="@+id/calllog_call_duration"/&gt;
               &lt;TextView
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:text="10:20"
                   android:id="@+id/calllog_call_timing"/&gt;
           &lt;/LinearLayout&gt;
        &lt;/LinearLayout&gt;
     &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
    &lt;LinearLayout
        android:id="@+id/llExpandArea"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:visibility="visible"
        android:gravity="center"
        android:orientation="horizontal"&gt;

        &lt;Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="6dp"
            android:id="@+id/call_txt"
            android:text="Call" /&gt;

        &lt;Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="6dp"
            android:paddingLeft="15dp"
            android:id="@+id/block_txt"
            android:text="Msg" /&gt;
&lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;
&lt;/android.support.v7.widget.CardView&gt;
</code></pre>

<p>am trying to click button in Recyclerview item but it not receive onclick event.but it worked for double tap to respond onclick listener</p>

<p>Adapter:</p>

<pre><code>public class calllog_customadapter extends RecyclerView.Adapter&lt;calllog_customadapter.RecordHolder&gt; {
private List&lt;calllog_item&gt; calllog_items;
Context c;
RecyclerView list;
private int expandedPosition = -1;
@Override
public RecordHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View itemView = LayoutInflater.from(parent.getContext())
            .inflate(R.layout.calllog_item, parent, false);
    return new RecordHolder(itemView);
}
calllog_customadapter(Context context, RecyclerView list, final List&lt;calllog_item&gt; calllog_item){
    this.c=context;
    this.list=list;
    this.calllog_items=calllog_item;
    list.addOnItemTouchListener(new RecyclerItemClickListener(c, list ,new RecyclerItemClickListener.OnItemClickListener() {
        @Override
        public void onItemClick(View view, int position) {
            Button call= (Button) view.findViewById(R.id.call_txt);
            Button block= (Button) view.findViewById(R.id.block_txt);
            call.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Toast.makeText(c, "call", Toast.LENGTH_SHORT).show();
                }
            });
            block.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Toast.makeText(c, "blockbbb222", Toast.LENGTH_SHORT).show();
                }
            });
            if (expandedPosition &gt;= 0) {
                int prev = expandedPosition;
                notifyItemChanged(prev);
            }
            expandedPosition = position;
            notifyItemChanged(expandedPosition);
        }

        @Override
        public void onLongItemClick(View view, int position) {
            // do whatever
        }
    }));
}

@Override
public void onBindViewHolder(RecordHolder holder, int position) {
    calllog_item list=calllog_items.get(position);
    holder.contact_name.setText(list.getContact_name());
    holder.contact_img.setImageBitmap(list.getContact_img());
    holder.call_type.setImageBitmap(list.getCall_type());
    holder.call_duration.setText(list.getCall_duration());
    holder.call_timing.setText(list.call_timing);
    holder.contact_no.setText(list.getCall_no());
    if (position == expandedPosition) {
        holder.llExpandArea.setVisibility(View.VISIBLE);
    } else {
        holder.llExpandArea.setVisibility(View.GONE);
    }
}

@Override
public int getItemCount() {
    return calllog_items.size();
}



public class RecordHolder extends RecyclerView.ViewHolder  {
    TextView contact_name,call_timing,call_duration,contact_no;
    ImageView contact_img,call_type;
    LinearLayout llExpandArea;
    public RecordHolder(View itemView) {
        super(itemView);
        contact_img= (ImageView) itemView.findViewById(R.id.calllog_contact_img);
        call_type= (ImageView) itemView.findViewById(R.id.calllog_call_type);
        call_duration= (TextView) itemView.findViewById(R.id.calllog_call_duration);
        call_timing= (TextView) itemView.findViewById(R.id.calllog_call_timing);
        contact_name= (TextView) itemView.findViewById(R.id.calllog_contact_name);
        contact_no= (TextView) itemView.findViewById(R.id.calllog_no);
        llExpandArea=(LinearLayout)itemView.findViewById(R.id.llExpandArea);
    }
  }
}
</code></pre>