Step 1: Open android studio. Go to File- new -Activity- Empty activity-Tasklongpress.
Step 2: Go to the res folder.
Step 3:Paste below code to MyProfile.xml.
Step 4:Add recyclerview library to bulid.gradle. File-project structure-Dependencies-All dependencies- click on + and search for recyclerview library-press ok.
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 Circleimageview library in buil.gradle.
implementation ‘de.hdodenhof:circleimageview:3.0.0’

Paste below code to myprofile.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="#f9f9f9"
    tools:context=".Myprofile">

    <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.v4.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:overScrollMode="never"
                android:scrollbars="none">

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

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

                        <de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
                            android:id="@+id/profile_image"
                            android:layout_width="50.4dp"
                            android:layout_height="49.9dp"
                            android:src="@drawable/profile" />

                        <LinearLayout
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="19.2dp"
                            android:orientation="vertical">

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:fontFamily=""
                                android:text="Jihun Tae-Hee"
                                android:textColor="#4f4f6f"
                                android:textSize="21.1sp" />

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginTop="6.5dp"
                                android:drawableLeft="@drawable/oval_green"
                                android:drawablePadding="4.2dp"
                                android:fontFamily="@font/helveticaneue"
                                android:text="Manager"
                                android:textColor="#88889c"
                                android:textSize="12sp" />

                        </LinearLayout>

                    </LinearLayout>

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

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="23.2dp"
                        android:orientation="horizontal"
                        android:padding="10dp">

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

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Your sales"
                                android:textColor="#6a6a77"
                                android:textSize="15.4sp" />

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

                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:fontFamily="@font/helvetica_thin"
                                    android:text="€ "
                                    android:textColor="#c0c0cf"
                                    android:textSize="22.1sp" />

                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text="279 300"
                                    android:textColor="#4f4f6f"
                                    android:textSize="22.1sp" />


                            </LinearLayout>

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="17dp"
                                android:fontFamily="@font/helveticaneue"
                                android:text="Sales amount"
                                android:textColor="#c0c0cf"
                                android:textSize="10.6sp" />

                        </LinearLayout>

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

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

                            <ImageView
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:src="@drawable/path_45"
                                android:tint="#4745fa" />

                        </LinearLayout>

                    </LinearLayout>

                    <android.support.v7.widget.RecyclerView
                        android:id="@+id/recycler_profile"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="33.8dp"/>

                </LinearLayout>

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

        </LinearLayout>

    </ScrollView>


</RelativeLayout>

Create item_myprofile.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"
    android:layout_marginRight="16.8dp"
    android:layout_marginBottom="16.8dp"
    android:layout_weight="1"
    app:cardElevation="0dp"
    android:elevation="0dp"
    app:cardCornerRadius="2.4dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingLeft="27dp"
        android:paddingTop="14.4dp"
        android:paddingRight="32dp"
        android:paddingBottom="12.1dp">

        <FrameLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/imgteammember"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:src="@drawable/team_members" />

            <ImageView
                android:id="@+id/one"
                android:visibility="gone"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="top|end"
                android:src="@drawable/ic_number_one_inside_a_circle" />

        </FrameLayout>

        <TextView
            android:id="@+id/txtmember"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="44.4dp"
            android:fontFamily="@font/helveticaneue_medium"
            android:text="Team Members"
            android:textColor="#6a6a77"
            android:textSize="13sp"/>

        <TextView
            android:id="@+id/txtpeople"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4.8dp"
            android:fontFamily="@font/helveticaneue"
            android:text="19 People"
            android:textColor="#88889c"
            android:textSize="10.6sp" />

    </LinearLayout>

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

Create Model Class- MyProfile.java

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

package com.wolfsoft.avsc.model;

public class MyProfileModel {

    Integer imgteammember;

    String txtmember,txtpeople;

    public Integer getImgteammember() {
        return imgteammember;
    }

    public void setImgteammember(Integer imgteammember) {
        this.imgteammember = imgteammember;
    }

    public String getTxtmember() {
        return txtmember;
    }

    public void setTxtmember(String txtmember) {
        this.txtmember = txtmember;
    }

    public String getTxtpeople() {
        return txtpeople;
    }

    public void setTxtpeople(String txtpeople) {
        this.txtpeople = txtpeople;
    }

    public MyProfileModel(Integer imgteammember, String txtmember, String txtpeople) {
        this.imgteammember = imgteammember;
        this.txtmember = txtmember;
        this.txtpeople = txtpeople;
    }
}

Create Adapter -Myprofile.java

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

package com.wolfsoft.avsc.adapter;

import android.content.Context;
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.TextView;

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

import java.util.ArrayList;


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

    Context context;
    private ArrayList<MyProfileModel> myProfileModelArrayList;


    public MyProfileAdapter(Context context, ArrayList<MyProfileModel> myProfileModelArrayList) {
        this.context = context;
        this.myProfileModelArrayList = myProfileModelArrayList;
    }

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

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

        holder.imgteammember.setImageResource(myProfileModelArrayList.get(position).getImgteammember());
        holder.txtmember.setText(myProfileModelArrayList.get(position).getTxtmember());
        holder.txtpeople.setText(myProfileModelArrayList.get(position).getTxtpeople());

        if(position==1){

            holder.one.setVisibility(View.VISIBLE);
        }

    }

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

    public class ViewHolder extends RecyclerView.ViewHolder {

        ImageView imgteammember,one;

        TextView txtmember,txtpeople;

        public ViewHolder(View itemView) {

            super(itemView);

            imgteammember=itemView.findViewById(R.id.imgteammember);
            txtmember=itemView.findViewById(R.id.txtmember);
            txtpeople=itemView.findViewById(R.id.txtpeople);
            one=itemView.findViewById(R.id.one);

        }
    }
}

MyProfile.java

Step 1: Set Linearlayout Manager to GridLayout Manager. and give it Span count.

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.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.Spinner;
import com.wolfsoft.avsc.adapter.MyProfileAdapter;
import com.wolfsoft.avsc.model.MyProfileModel;
import java.util.ArrayList;
import java.util.List;

public class Myprofile extends AppCompatActivity {

    ImageView profile_image;

    private Spinner spinner;

    private MyProfileAdapter myProfileAdapter;
    private ArrayList<MyProfileModel> myProfileModelArrayList;
    private RecyclerView recyclerView;


    Integer[] imgteammember = {R.drawable.team_members,R.drawable.points_of_sale
            ,R.drawable.my_contacts,R.drawable.notes};

    String[] txtmember = {"Team Members","Points of Sale","My Contacts", "Notes"};

    String[] txtpeople = {"19 People","12 Cities","10 New", "17 Open"};



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

        profile_image=findViewById(R.id.profile_image);
        profile_image.setImageResource(R.drawable.ic_settings);

        /*Spinner*/
        spinner = (Spinner) findViewById(R.id.spinner);
        List<String> list = new ArrayList<String>();
        list.add("Last Week");
        list.add("This Week");
        list.add("Last Week");
        list.add("This Week");
        list.add("Last Week");

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


        recyclerView = findViewById(R.id.recycler_profile);
        RecyclerView.LayoutManager layoutManager = new GridLayoutManager(Myprofile.this,2);
        recyclerView.setLayoutManager(layoutManager);
        recyclerView.setItemAnimator(new DefaultItemAnimator());

        myProfileModelArrayList = new ArrayList<>();

        for (int i = 0; i < imgteammember.length; i++) {
            MyProfileModel view1 = new MyProfileModel(imgteammember[i],txtmember[i],txtpeople[i]);
            myProfileModelArrayList.add(view1);
        }

        myProfileAdapter = new MyProfileAdapter(Myprofile.this,myProfileModelArrayList);
        recyclerView.setAdapter(myProfileAdapter);

    }
}