Step 1:Add recyclerview library to bulid.gradle. File-project structure-Dependencies-All dependencies- click on + and search for recyclerview library-press ok.

paste below code to inboxavsc.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffff"
    tools:context=".Inbox">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <include layout="@layout/toolbar"/>

        <android.support.v4.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="none">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/recycler_inbox"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content" />

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/recycler_alert"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingLeft="21.6dp"
                    android:clipToPadding="false"
                    android:layout_marginTop="54.9dp"
                    android:paddingRight="20.6dp" />

            </LinearLayout>

        </android.support.v4.widget.NestedScrollView>

    </LinearLayout>


</RelativeLayout>

create first horizontal recyclerview :
step 1:Add cardview dependency to bulid.gradle. File-project structure-Dependencies-All dependencies- click on + and search for cardview library-press ok.

create item_inboxavsc.xml

<android.support.v7.widget.CardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/card"
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:layout_margin="12dp"
    android:background="@drawable/rect_white"
    app:cardCornerRadius="4.8dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:orientation="vertical"
        android:paddingTop="12.7dp"
        android:paddingBottom="12.5dp">

            <ImageView
                android:id="@+id/imgbag"
                android:layout_width="20.2dp"
                android:layout_height="20.2dp"
                android:layout_gravity="center"
                android:scaleType="centerCrop"
                android:src="@drawable/bag" />

            <TextView
                android:id="@+id/txtconversion"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="9.6dp"
                android:text="@string/conversion"
                android:textColor="#6a6a77"
                android:textSize="9.6sp"/>


    </LinearLayout>

</android.support.v7.widget.CardView>

Create Model Class

Step 1: Create package ModelClass.
Step 2: Add Java class – TrafficModel.
Step 3: Add textview id n imageview id.
Step 4: Create Constructor. AND Create getter setter method.

package com.wolfsoft.avsc.model;


public class TrafficModel {

    Integer imgbag;

    String txtconversion;


    public Integer getImgbag() {
        return imgbag;
    }

    public void setImgbag(Integer imgbag) {
        this.imgbag = imgbag;
    }

    public String getTxtconversion() {
        return txtconversion;
    }

    public void setTxtconversion(String txtconversion) {
        this.txtconversion = txtconversion;
    }

    public TrafficModel(Integer imgbag, String txtconversion) {
        this.imgbag = imgbag;
        this.txtconversion = txtconversion;
    }
}

Create Adapter

Step 1: Create package Adapter.
Step 2: Add Java class – TrafficAdapter.
Step 3: Implement Methods.
Step 4:Paste Below Code to tTrafficAdapter.

package com.wolfsoft.avsc.adapter;

import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.wolfsoft.avsc.R;
import com.wolfsoft.avsc.model.TrafficModel;
import java.util.ArrayList;


public class TrafficAdapter extends RecyclerView.Adapter<TrafficAdapter.ViewHolder> {

    int myPos=0;

    Context context;
    private ArrayList<TrafficModel> trafficModelArrayList;

    public TrafficAdapter(Context context, ArrayList<TrafficModel> trafficModelArrayList) {
        this.context = context;
        this.trafficModelArrayList = trafficModelArrayList;
    }

    @NonNull
    @Override
    public TrafficAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_traffic,parent,false);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(@NonNull final TrafficAdapter.ViewHolder holder, final int position) {

        holder.imgbag.setImageResource(trafficModelArrayList.get(position).getImgbag());
        holder.txtconversion.setText(trafficModelArrayList.get(position).getTxtconversion());

        if (position==myPos){
            //  holder.card.setCardElevation(35);
         // holder.card.setOutlineSpotShadowColor(Color.parseColor("#000bff"));
            holder.imgbag.setColorFilter(Color.parseColor("#ffffff"));
            holder.txtconversion.setTextColor(Color.parseColor("#ffffff"));
            holder.card.setBackgroundResource(R.drawable.rect_blue); }

        else {

//            holder.card.setCardElevation(35);
//            holder.card.setOutlineSpotShadowColor(Color.parseColor("#808080"));
            holder.imgbag.setColorFilter(Color.parseColor("#bdc1c9"));
            holder.txtconversion.setTextColor(Color.parseColor("#6a6a77"));
            holder.card.setBackgroundResource(R.drawable.rect_white);
        }
        holder.itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                myPos = position;
                notifyDataSetChanged();
            }
        });
    }

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

    public class ViewHolder extends RecyclerView.ViewHolder {


        ImageView imgbag,one;

        TextView txtconversion;

         CardView card;

        public ViewHolder(View itemView) {

            super(itemView);


            imgbag=itemView.findViewById(R.id.imgbag);
            txtconversion=itemView.findViewById(R.id.txtconversion);
            card=itemView.findViewById(R.id.card);
            one=itemView.findViewById(R.id.one);




        }
    }
}

Inboxavsc.java

paste below code to main activity .

package com.wolfsoft.avsc;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import com.wolfsoft.avsc.adapter.InboxAdapter;
import com.wolfsoft.avsc.adapter.TrafficAdapter;
import com.wolfsoft.avsc.model.InboxModel;
import com.wolfsoft.avsc.model.TrafficModel;

import java.util.ArrayList;

public class Inbox extends AppCompatActivity {

    ImageView backarrow;

    private TrafficAdapter trafficAdapter;
    private ArrayList<TrafficModel> trafficModelArrayList;
    private RecyclerView recyclerView;

    Integer[] imgbag = {R.drawable.ic_done,R.drawable.ic_done
            ,R.drawable.ic_notification,R.drawable.ic_point_of_sale,
            R.drawable.ic_done,R.drawable.ic_clock};

    String[] txtconversion = {"Traffic","Conversion",
            "Alerts", "Points of Sale",
            "Tasks","Meetings"};

   


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inbox);

        backarrow=findViewById(R.id.backarrow);
        backarrow.setVisibility(View.GONE);

        recyclerView = findViewById(R.id.recycler_inbox);
        RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(Inbox.this,LinearLayoutManager.HORIZONTAL,false);
        recyclerView.setLayoutManager(layoutManager);
        recyclerView.setItemAnimator(new DefaultItemAnimator());

        trafficModelArrayList = new ArrayList<>();

        for (int i = 0; i < imgbag.length; i++) {
            TrafficModel view1 = new TrafficModel(imgbag[i],txtconversion[i]);
            trafficModelArrayList.add(view1);
        }

        trafficAdapter = new TrafficAdapter(Inbox.this,trafficModelArrayList);
        recyclerView.setAdapter(trafficAdapter);

}
}

Now create a second recyclerview.

Create item_inbox.xml

Paste below code to item_inbox.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:cardCornerRadius="4.8dp"
    android:elevation="0dp"
    app:cardElevation="2dp"
    android:layout_marginBottom="14.4dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/linear"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="#e7eefc"
            android:orientation="horizontal"
            android:paddingLeft="14.9dp"
            android:paddingTop="11.9dp"
            android:paddingBottom="11dp">

            <ImageView
                android:id="@+id/inbox"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/inbox" />

            <TextView
                android:id="@+id/txtinbox"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="13.9dp"
                android:layout_gravity="center"
                android:fontFamily="@font/helveticaneue_medium"
                android:text="Your Inbox"
                android:textColor="#5679bf"
                android:textSize="11.5sp" />
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:paddingLeft="17.3dp"
            android:paddingTop="14.3dp"
            android:paddingRight="15.6dp">

            <ImageView
                android:id="@+id/ovalblue"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/oval_blue"/>

            <TextView
                android:id="@+id/txtavery"
                android:fontFamily="@font/helveticaneue_medium"
                android:layout_weight="1"
                android:layout_marginLeft="19.2dp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Avery Clayton"
                android:textColor="#6a6a77"
                android:textSize="11.5sp"/>

            <TextView
                android:id="@+id/txttime"
                android:fontFamily="@font/helvetica"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="15:31"
                android:textColor="#6a6a77"
                android:textSize="11.5sp"/>


        </LinearLayout>

        <TextView
            android:id="@+id/txtbank"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="49.4dp"
            android:layout_marginTop="6.5dp"
            android:fontFamily="@font/helveticaneue"
            android:text="IGN Bank Invoice"
            android:textColor="#9ea4af"
            android:textSize="10.6sp" />

        <TextView
            android:id="@+id/txtgotit"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="49.4dp"
            android:layout_marginTop="5.9dp"
            android:fontFamily="@font/helveticaneue_medium"
            android:text="We got it! It wasn’t easy but they agree fo…"
            android:textColor="#9ea4af"
            android:textSize="10.1sp" />

        <View
            android:layout_marginTop="14.4dp"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#e3e3e3"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:paddingLeft="17.3dp"
            android:paddingTop="14.3dp"
            android:paddingRight="15.6dp">

            <ImageView
                android:id="@+id/outline"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_circle_shape_outline"/>

            <TextView
                android:id="@+id/txtmattcross"
                android:fontFamily="@font/helveticaneue_medium"
                android:layout_weight="1"
                android:layout_marginLeft="19.2dp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Matt Cross"
                android:textColor="#6a6a77"
                android:textSize="11.5sp"/>

            <TextView
                android:id="@+id/txtday"
                android:fontFamily="@font/helvetica"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Yesterday"
                android:textColor="#656589"
                android:textSize="10.6sp"/>


        </LinearLayout>

        <TextView
            android:id="@+id/txtcopywriter"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="49.4dp"
            android:layout_marginTop="6.5dp"
            android:fontFamily="@font/helveticaneue"
            android:text="New Copywriter"
            android:textColor="#9ea4af"
            android:textSize="10.6sp" />

        <TextView
            android:id="@+id/txtexample"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="49.4dp"
            android:layout_marginTop="5.9dp"
            android:fontFamily="@font/helveticaneue_medium"
            android:text="I’m sending you few examples of ours new..."
            android:textColor="#9ea4af"
            android:textSize="10.1sp" />

        <View
            android:layout_marginTop="14.4dp"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#e3e3e3"/>

        <TextView
            android:gravity="center"
            android:paddingTop="9.6dp"
            android:paddingBottom="11.8dp"
            android:fontFamily="@font/helveticaneue_medium"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="#4951ff"
            android:text="View all (21)"
            android:textSize="10.6sp"/>


    </LinearLayout>

</android.support.v7.widget.CardView>

Create Model Class- Inbox.java

package com.wolfsoft.avsc.model;

public class InboxModel {

    Integer inbox,ovalblue,outline;


    String txtinbox,txtavery,txttime,txtbank,txtgotit,txtmattcross,txtday,txtcopywriter,txtexample;


    public Integer getInbox() {
        return inbox;
    }

    public void setInbox(Integer inbox) {
        this.inbox = inbox;
    }

    public Integer getOvalblue() {
        return ovalblue;
    }

    public void setOvalblue(Integer ovalblue) {
        this.ovalblue = ovalblue;
    }

    public Integer getOutline() {
        return outline;
    }

    public void setOutline(Integer outline) {
        this.outline = outline;
    }

    public String getTxtinbox() {
        return txtinbox;
    }

    public void setTxtinbox(String txtinbox) {
        this.txtinbox = txtinbox;
    }

    public String getTxtavery() {
        return txtavery;
    }

    public void setTxtavery(String txtavery) {
        this.txtavery = txtavery;
    }

    public String getTxttime() {
        return txttime;
    }

    public void setTxttime(String txttime) {
        this.txttime = txttime;
    }

    public String getTxtbank() {
        return txtbank;
    }

    public void setTxtbank(String txtbank) {
        this.txtbank = txtbank;
    }

    public String getTxtgotit() {
        return txtgotit;
    }

    public void setTxtgotit(String txtgotit) {
        this.txtgotit = txtgotit;
    }

    public String getTxtmattcross() {
        return txtmattcross;
    }

    public void setTxtmattcross(String txtmattcross) {
        this.txtmattcross = txtmattcross;
    }

    public String getTxtday() {
        return txtday;
    }

    public void setTxtday(String txtday) {
        this.txtday = txtday;
    }

    public String getTxtcopywriter() {
        return txtcopywriter;
    }

    public void setTxtcopywriter(String txtcopywriter) {
        this.txtcopywriter = txtcopywriter;
    }

    public String getTxtexample() {
        return txtexample;
    }

    public void setTxtexample(String txtexample) {
        this.txtexample = txtexample;
    }

    public InboxModel(Integer inbox, Integer ovalblue, Integer outline, String txtinbox, String txtavery, String txttime, String txtbank, String txtgotit, String txtmattcross, String txtday, String txtcopywriter, String txtexample) {
        this.inbox = inbox;
        this.ovalblue = ovalblue;
        this.outline = outline;
        this.txtinbox = txtinbox;
        this.txtavery = txtavery;
        this.txttime = txttime;
        this.txtbank = txtbank;
        this.txtgotit = txtgotit;
        this.txtmattcross = txtmattcross;
        this.txtday = txtday;
        this.txtcopywriter = txtcopywriter;
        this.txtexample = txtexample;
    }
}

Create Adapter -InboxAdapter.java

package com.wolfsoft.avsc.adapter;

import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wolfsoft.avsc.R;
import com.wolfsoft.avsc.model.InboxModel;

import java.util.ArrayList;


public class InboxAdapter extends RecyclerView.Adapter<InboxAdapter.ViewHolder> {


    Context context;
    private ArrayList<InboxModel> inboxModelArrayList;

    public InboxAdapter(Context context, ArrayList<InboxModel> inboxModelArrayList) {
        this.context = context;
        this.inboxModelArrayList = inboxModelArrayList;
    }

    @NonNull
    @Override
    public InboxAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_inbox,parent,false);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(@NonNull InboxAdapter.ViewHolder holder, final int position) {

        holder.inbox.setImageResource(inboxModelArrayList.get(position).getInbox());
        holder.ovalblue.setImageResource(inboxModelArrayList.get(position).getOvalblue());
        holder.outline.setImageResource(inboxModelArrayList.get(position).getOutline());
        holder.txtinbox.setText(inboxModelArrayList.get(position).getTxtinbox());
        holder.txtavery.setText(inboxModelArrayList.get(position).getTxtavery());
        holder.txttime.setText(inboxModelArrayList.get(position).getTxttime());
        holder.txtbank.setText(inboxModelArrayList.get(position).getTxtgotit());
        holder.txtgotit.setText(inboxModelArrayList.get(position).getTxtinbox());
        holder.txtmattcross.setText(inboxModelArrayList.get(position).getTxtmattcross());
        holder.txtday.setText(inboxModelArrayList.get(position).getTxtday());
        holder.txtcopywriter.setText(inboxModelArrayList.get(position).getTxtcopywriter());
        holder.txtexample.setText(inboxModelArrayList.get(position).getTxtexample());

        if(position==1){

            holder.txtinbox.setTextColor(Color.parseColor("#7d80b8"));
            holder.linear.setBackgroundColor(Color.parseColor("#e7e8fc"));

        }


    }

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

    public class ViewHolder extends RecyclerView.ViewHolder {


        ImageView inbox,ovalblue,outline;


        TextView txtinbox,txtavery,txttime
                ,txtbank,txtgotit,txtmattcross,
                txtday,txtcopywriter,txtexample;

        LinearLayout linear;


        public ViewHolder(View itemView) {

            super(itemView);


            inbox=itemView.findViewById(R.id.inbox);
            ovalblue=itemView.findViewById(R.id.ovalblue);
            outline=itemView.findViewById(R.id.outline);
            txtinbox=itemView.findViewById(R.id.txtinbox);
            txtavery=itemView.findViewById(R.id.txtavery);
            txttime=itemView.findViewById(R.id.txttime);
            txtbank=itemView.findViewById(R.id.txtbank);
            txtgotit=itemView.findViewById(R.id.txtgotit);
            txtmattcross=itemView.findViewById(R.id.txtmattcross);
            txtday=itemView.findViewById(R.id.txtday);
            txtcopywriter=itemView.findViewById(R.id.txtcopywriter);
            txtexample=itemView.findViewById(R.id.txtexample);

            linear=itemView.findViewById(R.id.linear);




        }
    }
}

Put below code to mainactivity-inbox.java

 package com.wolfsoft.avsc;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import com.wolfsoft.avsc.adapter.InboxAdapter;
import com.wolfsoft.avsc.adapter.TrafficAdapter;
import com.wolfsoft.avsc.model.InboxModel;
import com.wolfsoft.avsc.model.TrafficModel;

import java.util.ArrayList;

public class Inbox extends AppCompatActivity {

    ImageView backarrow;
 private InboxAdapter inboxAdapter;
    private ArrayList<InboxModel> inboxModelArrayList;
    private RecyclerView recyclerView1;

    Integer[] inbox = {R.drawable.inbox,R.drawable.reviews};

    Integer[] ovalblue = {R.drawable.oval_blue,R.drawable.like};

    Integer[] outline = {R.drawable.ic_circle_purple,R.drawable.warning};

    String[] txtinbox = {"Your Inbox","Reviews"};

    String[] txtavery = {"Avery Clayton","Aaron Evans"};

    String[] txttime = {"15:31","12:31"};

    String[] txtbank = {"IGN Bank Invoice","Positive: Dumb Dumb Sunglasses"};

    String[] txtgotit = {"We got it! It wasn’t easy but they agree fo…","The second wrong advice. There should be…"};

    String[] txtmattcross = {"Matt Cross","Dorian Campos"};

    String[] txtday = {"Yesterday","11:51"};

    String[] txtcopywriter = {"New Copywriter","Negative: Crooks Belt"};

    String[] txtexample = {"I’m sending you few examples of ours new...","I’m sending you few examples of ours new..."};



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inbox);

        backarrow=findViewById(R.id.backarrow);
        backarrow.setVisibility(View.GONE);

      

       //recyclerview2:
        recyclerView1 = findViewById(R.id.recycler_alert);
        RecyclerView.LayoutManager layoutManager1 = new LinearLayoutManager(Inbox.this);
        recyclerView1.setLayoutManager(layoutManager1);
        recyclerView1.setItemAnimator(new DefaultItemAnimator());

        inboxModelArrayList = new ArrayList<>();

        for (int i = 0; i < inbox.length; i++) {
            InboxModel view = new InboxModel(inbox[i],ovalblue[i],outline[i],
                    txtinbox[i],txtavery[i],txttime[i], txtbank[i], txtgotit[i],txtmattcross[i],txtday[i],
                    txtcopywriter[i],txtexample[i]);
            inboxModelArrayList.add(view);
        }

        inboxAdapter = new InboxAdapter(Inbox.this,inboxModelArrayList);
        recyclerView1.setAdapter(inboxAdapter);


    }
}