<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:showIn="@layout/activity_main"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    <de.hdodenhof.circleimageview.CircleImageView
            android:id="@+id/profile_img_icon"
            android:src="@drawable/ic_insta_profile_thin"
            app:civ_circle_background_color="@color/gray_border"
            app:civ_border_color="@color/gray"
            app:civ_border_width="1dp"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:layout_marginTop="16dp"
            android:layout_marginStart="16dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <de.hdodenhof.circleimageview.CircleImageView
            android:src="@drawable/ic_insta_add_profile"
            app:civ_circle_background_color="@color/blue_enabled"
            app:civ_border_color="@color/white"
            app:civ_border_width="1dp"
            app:layout_constraintEnd_toEndOf="@id/profile_img_icon"
            app:layout_constraintBottom_toBottomOf="@id/profile_img_icon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_posts_count"
            android:textStyle="bold"
            android:text="0"
            app:layout_constraintStart_toEndOf="@id/profile_img_icon"
            app:layout_constraintTop_toTopOf="@id/profile_img_icon"
            app:layout_constraintEnd_toStartOf="@id/profile_txt_followers_count"
            />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_followers_count"
            android:textStyle="bold"
            android:text="0"
            app:layout_constraintTop_toTopOf="@id/profile_img_icon"
            app:layout_constraintStart_toEndOf="@id/profile_txt_posts_count"
            app:layout_constraintEnd_toStartOf="@id/profile_txt_following_count"
            />


        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_following_count"
            android:textStyle="bold"
            android:text="0"
            app:layout_constraintTop_toTopOf="@id/profile_img_icon"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/profile_txt_followers_count"
            />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_posts"
            android:textStyle="bold"
            android:text="@string/posts"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_posts_count"
            app:layout_constraintStart_toEndOf="@id/profile_img_icon"
            app:layout_constraintEnd_toStartOf="@id/profile_txt_followers"
            />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_followers"
            android:textStyle="bold"
            android:text="@string/followers"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_posts_count"
            app:layout_constraintStart_toEndOf="@id/profile_txt_posts"
            app:layout_constraintEnd_toStartOf="@id/profile_txt_following"
            />


        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_following"
            android:textStyle="bold"
            android:text="@string/following"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_posts_count"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/profile_txt_followers"
            />

        <Button
            style="@style/Theme.Instagram.Button.White"
            android:layout_width="0dp"
            app:layout_constraintStart_toEndOf="@id/profile_img_icon"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_posts"
            app:layout_constraintEnd_toEndOf="parent"
            android:text="@string/edit_profile"
            android:id="@+id/profile_btn_edit_profile"
            android:layout_height="wrap_content" />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_username"
            android:textStyle="bold"
            android:text="@string/username"
            app:layout_constraintStart_toStartOf="@id/profile_img_icon"
            app:layout_constraintTop_toBottomOf="@id/profile_img_icon"
            android:layout_marginTop="32dp"
            />

        <TextView
            style="@style/Theme.Instagram.TextViewProfile"
            android:id="@+id/profile_txt_bio"
            android:text="@string/username"
            app:layout_constraintStart_toStartOf="@id/profile_img_icon"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_username"
            app:layout_constraintEnd_toEndOf="@id/profile_btn_edit_profile"
            tools:text="Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste Teste "
            android:textAlignment="textStart"
            android:maxLines="3"
            android:ellipsize="marquee"
            />

        <com.google.android.material.bottomnavigation.BottomNavigationView
            android:id="@+id/profile_nav_tabs"
            app:menu="@menu/menu_profile_bottom_nav"
            app:labelVisibilityMode="unlabeled"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toBottomOf="@id/profile_txt_bio"
            android:layout_marginTop="8dp"
            android:background="@drawable/top_bottom_border"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/profile_rv"
            app:layout_constraintTop_toBottomOf="@id/profile_nav_tabs"
            app:layout_constraintBottom_toBottomOf="parent"
            android:layout_width="match_parent"
            tools:listitem="@layout/item_profile_grid"
            android:layout_height="wrap_content" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.core.widget.NestedScrollView>