Step 1: Open android studio. Go to File- new -Activity- Empty activity-Team avsc.
Step 2: Go to the res folder.
Step 3:Paste below code to teamavsc.xml.
Step 4:Create Background gradient drawable.
Step 5:Add cardview library to bulid.gradle. File-project structure-Dependencies-All dependencies- click on + and search for cardview library-press ok.
Step 6:Add recyclerview library to bulid.gradle. File-project structure-Dependencies-All dependencies- click on + and search for recyclerview library-press ok.
Step 7:Add makerman library to bulid.gradle.
implementation ‘com.makeramen:roundedimageview:2.3.0’

Paste Below Code to teamavsc.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"
    android:overScrollMode="never"
    tools:context=".ViewPagerActivity">

    <ScrollView
        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">

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

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

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="#eaeaea" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:orientation="horizontal">

                <Spinner
                    android:id="@+id/designteam"
                    android:layout_width="wrap_content"
                    android:layout_height="50dp"
                    android:layout_marginTop="12dp"
                    android:layout_marginBottom="12dp"
                    android:background="@drawable/custom_spinner"
                    android:dropDownVerticalOffset="50dp"
                    android:paddingHorizontal="0dp" />

                <View
                    android:layout_width="0.5dp"
                    android:layout_height="match_parent"
                    android:background="#e3e3e3" />

                <Spinner
                    android:id="@+id/project"
                    android:layout_width="wrap_content"
                    android:layout_height="50dp"
                    android:layout_marginTop="12dp"
                    android:layout_marginBottom="12dp"
                    android:background="@drawable/custom_spinner"
                    android:dropDownVerticalOffset="50dp"
                    android:paddingHorizontal="0dp" />

            </LinearLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="#eaeaea" />

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/rv_tasks_date"
                    android:gravity="center"
                    android:layout_marginTop="27.4dp"
                    android:layout_width="match_parent"
                    android:layout_gravity="center"
                    android:layout_height="106dp"/>



            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:orientation="horizontal">

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/helveticaneue_medium"
                        android:text="35"
                        android:textColor="#6a6a77"
                        android:textSize="13.5sp" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/helveticaneue_medium"
                        android:text="tasks"
                        android:textColor="#6a6a77"
                        android:textSize="10.6sp" />

                </LinearLayout>

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/helveticaneue_medium"
                        android:text="Terrence Morin"
                        android:textColor="#6a6a77"
                        android:textSize="15.4sp" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/helveticaneue_medium"
                        android:text="UX Designer"
                        android:textColor="#6a6a77"
                        android:textSize="10.6sp" />

                </LinearLayout>

                <ImageView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="13dp"
                    android:layout_weight="1"
                    android:src="@drawable/plus_green" />


            </LinearLayout>

            <android.support.v7.widget.CardView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="39.8dp"
                android:layout_marginRight="38.9dp"
                android:layout_marginBottom="15dp"
                app:cardCornerRadius="4.8dp"
                app:cardElevation="0dp">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="18.2dp"
                    android:layout_marginTop="15.4dp"
                    android:layout_marginRight="17.7dp"
                    android:orientation="vertical"
                    android:paddingBottom="15dp">

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

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:fontFamily="@font/helveticaneue_medium"
                            android:text="Product page UX research"
                            android:textColor="#6a6a77"
                            android:textSize="13.4sp" />

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:fontFamily="@font/helveticaneue_medium"
                            android:text="12.07.16"
                            android:textColor="#6a6a77"
                            android:textSize="8.6sp" />

                    </LinearLayout>

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="11.4dp"
                        android:fontFamily="@font/helveticaneue"
                        android:lineSpacingExtra="5dp"
                        android:text="A good way to start the design of any page is to list its\nelements in order of importance. Ordering the page\nelements based on solid user research guarantees the\npage will not only..."
                        android:textColor="#9ea4af"
                        android:textSize="10.1sp" />

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="17.8dp"
                        android:orientation="horizontal">

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:drawableLeft="@drawable/comment"
                            android:drawablePadding="6.7dp"
                            android:fontFamily="@font/helveticaneue_medium"
                            android:text="2"
                            android:textColor="#88889c"
                            android:textSize="10.6sp" />

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="16.1dp"
                            android:layout_weight="1"
                            android:drawableLeft="@drawable/list"
                            android:drawablePadding="6.7dp"
                            android:fontFamily="@font/helveticaneue_medium"
                            android:text="7/12"
                            android:textColor="#88889c"
                            android:textSize="10.6sp" />

                        <com.makeramen.roundedimageview.RoundedImageView
                            android:layout_width="24.3dp"
                            android:layout_height="24.5dp"
                            android:src="@drawable/profile"
                            app:riv_corner_radius="4.8dp" />

                        <com.makeramen.roundedimageview.RoundedImageView
                            android:layout_width="24.3dp"
                            android:layout_height="24.5dp"
                            android:layout_marginLeft="3.4dp"
                            android:src="@drawable/profile"
                            app:riv_corner_radius="4.8dp" />


                    </LinearLayout>

                </LinearLayout>

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

        </LinearLayout>

    </ScrollView>

</RelativeLayout>

Create first horizontal recyclerview.

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-TraffiCAdapter.java

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);




        }
    }
}

Teamavsc.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 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_teamavsc);


 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 second recyclerview on position selected recycler. Go to the main activity and paste below second recyclerview code. and spinner code.

Create item.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:orientation="vertical"
    android:gravity="center"
    android:layout_marginRight="7.7dp">


    <com.makeramen.roundedimageview.RoundedImageView
        android:id="@+id/imgprofile"
        android:layout_width="170dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:adjustViewBounds="true"
        app:riv_corner_radius="4.8dp"/>


</LinearLayout>

Now Paste the below code to mainactivity teamavsc.java

 private View view;

    private static final String TAG = ViewPagerActivity.class.getSimpleName();

    public float firstItemWidthDate;
    public float paddingDate;
    public float itemWidthDate;
    public int allPixelsDate;
    public int finalWidthDate;

    private DateAdapter dateAdapter;
    private ArrayList<LabelerDate> labelerDates = new ArrayList<>();

   int image[]={R.drawable.profile1,R.drawable.profile2,R.drawable.profile1,
           R.drawable.profile1,R.drawable.profile2,R.drawable.profile1,
           R.drawable.profile1,R.drawable.profile2};


    private Spinner spinner;


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


        getRecyclerviewDate();

 /*Spinner- DESIGN TEAM*/
        spinner = (Spinner) findViewById(R.id.designteam);
        List<String> list = new ArrayList<String>();
        list.add("Design Team");
        list.add("Design Team");
        list.add("Design Team");
        list.add("Design Team");
        list.add("Design Team");

        ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(ViewPagerActivity.this, R.layout.item_country,
                R.id.textCountry, list);
        spinner.setAdapter(dataAdapter);


        /*SPINNER-projecty*/
        spinner = (Spinner) findViewById(R.id.project);
        List<String> list1 = new ArrayList<String>();
        list1.add("Project Y");
        list1.add("Project X");
        list1.add("Project Y");
        list1.add("Project X");
        list1.add("Project Y");

        ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(ViewPagerActivity.this, R.layout.item_country,
                R.id.textCountry, list1);
        spinner.setAdapter(dataAdapter1);
    }



    public void getRecyclerviewDate() {
        final RecyclerView recyclerViewDate = (RecyclerView) findViewById(R.id.rv_tasks_date);
        if (recyclerViewDate != null) {
            recyclerViewDate.postDelayed(new Runnable() {
                @Override
                public void run() {
                    setDateValue();
                }
            }, 000);
            recyclerViewDate.postDelayed(new Runnable() {
                @Override
                public void run() {
//                    recyclerViewDate.smoothScrollToPosition(102);
                    setDateValue();
                }
            }, 0000);
        }
        ViewTreeObserver vtoDate = recyclerViewDate.getViewTreeObserver();
        vtoDate.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {


            @Override
            public boolean onPreDraw() {
                recyclerViewDate.getViewTreeObserver().removeOnPreDrawListener(this);
                finalWidthDate = recyclerViewDate.getMeasuredWidth();
                itemWidthDate = getResources().getDimension(R.dimen.item_dob_width);
                paddingDate = (finalWidthDate - itemWidthDate) / 2;
                firstItemWidthDate = paddingDate;
                allPixelsDate = 0;

                final LinearLayoutManager dateLayoutManager = new LinearLayoutManager(ViewPagerActivity.this.getApplicationContext());
                dateLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
                recyclerViewDate.setLayoutManager(dateLayoutManager);
                recyclerViewDate.addOnScrollListener(new RecyclerView.OnScrollListener() {
                    @Override
                    public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
                        super.onScrollStateChanged(recyclerView, newState);
                        synchronized (this) {
                            if (newState == RecyclerView.SCROLL_STATE_IDLE) {
                                calculatePositionAndScrollDate(recyclerView);
                            }
                        }

                    }

                    @Override
                    public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
                        super.onScrolled(recyclerView, dx, dy);
                        allPixelsDate += dx;
                    }
                });
                if (labelerDates == null) {
                    labelerDates = new ArrayList<>();
                }
                genLabelerDate();
                dateAdapter = new DateAdapter(labelerDates, (int) firstItemWidthDate);
                recyclerViewDate.setAdapter(dateAdapter);
                dateAdapter.setSelecteditem(dateAdapter.getItemCount() - 1);
                return true;
            }
        });
    }

    private void genLabelerDate() {
        for (int i = 0; i < image.length; i++) {
            LabelerDate labelerDate = new LabelerDate();
            labelerDate.setImgprofile(image[i]);
            labelerDates.add(labelerDate);

            if (i == 0|| i == image.length-1) {
                labelerDate.setType(DateAdapter.VIEW_TYPE_PADDING);
            } else {
                labelerDate.setType(DateAdapter.VIEW_TYPE_ITEM);
            }
        }
    }


    /* this if most important, if expectedPositionDate < 0 recyclerView will return to nearest item*/
    private void calculatePositionAndScrollDate(RecyclerView recyclerView) {
        int expectedPositionDate = Math.round((allPixelsDate + paddingDate - firstItemWidthDate) / itemWidthDate);

        if (expectedPositionDate == -1) {
            expectedPositionDate = 0;
        } else if (expectedPositionDate >= recyclerView.getAdapter().getItemCount() - 2) {
            expectedPositionDate--;
        }
        scrollListToPositionDate(recyclerView, expectedPositionDate);

    }

    /* this if most important, if expectedPositionDate < 0 recyclerView will return to nearest item*/
    private void scrollListToPositionDate(RecyclerView recyclerView, int expectedPositionDate) {
        float targetScrollPosDate = expectedPositionDate * itemWidthDate + firstItemWidthDate - paddingDate;
        float missingPxDate = targetScrollPosDate - allPixelsDate;
        if (missingPxDate != 0) {
            recyclerView.smoothScrollBy((int) missingPxDate, 0);
        }
        setDateValue();
    }


    private void setDateValue() {
        int expectedPositionDateColor = Math.round((allPixelsDate + paddingDate - firstItemWidthDate) / itemWidthDate);
        int setColorDate = expectedPositionDateColor + 1;
//        set color here
        dateAdapter.setSelecteditem(setColorDate);
    }


    public class DateAdapter extends RecyclerView.Adapter<DateAdapter.DateViewHolder> {
        private ArrayList<LabelerDate> dateDataList;


        private static final int VIEW_TYPE_PADDING = 1;
        private static final int VIEW_TYPE_ITEM =  2;
        private int paddingWidthDate = 0;

        private int selectedItem = -1;

        public DateAdapter(ArrayList<LabelerDate> dateData, int paddingWidthDate) {

            this.dateDataList = dateData;
            this.paddingWidthDate = paddingWidthDate;

        }

        @Override
        public DateViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

            if (viewType == VIEW_TYPE_ITEM) {
                final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item,
                        parent, false);
                return new DateViewHolder(view);
            } else {
                View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item,
                        parent, false);

                RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
                layoutParams.width = paddingWidthDate;
                view.setLayoutParams(layoutParams);
                return new DateViewHolder(view);

            }
        }

        @Override
        public void onBindViewHolder(DateViewHolder holder, int position) {
            LabelerDate labelerDate = dateDataList.get(position);

            if (getItemViewType(position) == VIEW_TYPE_ITEM) {

                holder.imgprofile.setImageResource(labelerDate.getImgprofile());

                holder.imgprofile.setVisibility(View.VISIBLE);

                Log.d(TAG, "default " + position + ", selected " + selectedItem);
                if (position == selectedItem) {

                    Log.d(TAG, "center" + position);

                    holder.imgprofile.getLayoutParams().height = 275;
                    holder.imgprofile.getLayoutParams().width = 275;
                    holder.imgprofile.setAdjustViewBounds(true);
                    holder.imgprofile.setImageResource(labelerDate.getImgprofile());

                } else {
                    holder.imgprofile.getLayoutParams().height = 250;
                    holder.imgprofile.getLayoutParams().width = 250;
                    holder.imgprofile.setAdjustViewBounds(true);
                    holder.imgprofile.setImageResource(labelerDate.getImgprofile());
                }
            } else {
                holder.imgprofile.setAdjustViewBounds(true);
                holder.imgprofile.setVisibility(View.INVISIBLE);
            }
        }

        public void setSelecteditem(int selecteditem) {
            this.selectedItem = selecteditem;
            notifyDataSetChanged();
        }

        @Override
        public int getItemCount() {

            return dateDataList.size();
        }

        @Override
        public int getItemViewType(int position) {
            LabelerDate labelerDate = dateDataList.get(position);

            if (labelerDate.getType() == VIEW_TYPE_PADDING) {
                return VIEW_TYPE_PADDING;
            }
            else {

                return VIEW_TYPE_ITEM;
            }
        }

        public class DateViewHolder extends RecyclerView.ViewHolder {

            public ImageView imgprofile;

            public DateViewHolder(View itemView) {
                super(itemView);

                imgprofile = (ImageView) itemView.findViewById(R.id.imgprofile);
            }
        }
    }

    private class LabelerDate {

        private int type;

        private Integer imgprofile;

        public Integer getImgprofile() {
            return imgprofile;
        }

        public void setImgprofile(Integer imgprofile) {
            this.imgprofile = imgprofile;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }

}

Create Spinner item_country file in layout folder.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_vertical">

    <TextView
        android:id="@+id/textCountry"
        android:fontFamily="@font/helveticaneue"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:padding="10dp"
        android:letterSpacing="0.043"
        android:textColor="#6a6a77"
        android:textSize="11.5sp"
        android:text="Last week"/>

</LinearLayout>

Also add custom_spinner file in drawable folder. and add only PNG down arrow in custom_spinner folder.

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <item>
        <shape>
            <solid android:color="@android:color/transparent" />
            <!--<padding
                android:bottom="10dp"
                android:left="2dp"
                android:right="10dp"
                android:top="10dp" />-->
            <padding android:left="10dp"
                android:right="10dp"/>

        </shape>
    </item>
    <item>
        <bitmap
            android:gravity="right"
            android:src="@drawable/ic_down_arrow" />
    </item>

</layer-list>