<android.support.constraint.ConstraintLayout
    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:paddingStart="16dp"
    android:paddingEnd="16dp">

    <android.support.constraint.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <View
            android:id="@+id/topView"
            android:layout_width="match_parent"
            android:layout_height="120dp"
            android:layout_marginEnd="0dp"
            android:layout_marginStart="0dp"
            android:layout_marginTop="45dp"
            android:background="@color/colorPrimary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <de.hdodenhof.circleimageview.CircleImageView
            android:id="@+id/user_img"
            android:layout_width="90dp"
            android:layout_height="90dp"
            android:src="@drawable/avatar_placeholder"
            android:transitionName="gravatarTransition"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <ImageView
            android:layout_width="24dp"
            android:layout_height="45dp"
            android:transitionName="lightningTransition"
            app:layout_constraintBottom_toBottomOf="@id/user_img"
            app:layout_constraintStart_toStartOf="@id/user_img"
            app:srcCompat="@drawable/ic_lightning_24dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:text="@string/user_name_placeholder"
            android:textColor="@color/white"
            android:textSize="16sp"
            android:textStyle="bold"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="@id/topView"
            app:layout_constraintEnd_toEndOf="@id/topView"
            app:layout_constraintStart_toStartOf="@id/topView"
            app:layout_constraintTop_toTopOf="@id/topView" />

        <View
            android:id="@+id/secondView"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:background="@color/lightGray"
            app:layout_constraintTop_toBottomOf="@id/topView" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="32dp"
            android:text="@string/my_accounts"
            android:textColor="@color/darkGray"
            android:textSize="16sp"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="@id/secondView"
            app:layout_constraintStart_toStartOf="@id/secondView"
            app:layout_constraintTop_toTopOf="@id/secondView" />

        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fabAddAccount"
            android:layout_width="55dp"
            android:layout_height="55dp"
            android:layout_marginEnd="32dp"
            android:layout_marginTop="12dp"
            android:visibility="visible"
            app:backgroundTint="@color/colorPrimary"
            app:fabSize="normal"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="@id/secondView"
            app:srcCompat="@drawable/ic_add_24dp" />

        <!--<View
            android:id="@+id/thirdView"
            android:layout_width="match_parent"
            android:layout_height="250dp"
            android:background="@color/white"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/secondView" />
        -->
        <cy.agorise.crystalwallet.views.CryptoNetAccountListView
            android:id="@+id/vAccountList"
            android:layout_width="match_parent"
            android:layout_height="250dp"
            android:background="@color/white"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/secondView" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginEnd="64dp"
            android:layout_marginStart="64dp"
            android:text="@string/dont_have_multiple_accounts"
            android:textAlignment="center"
            android:textSize="16sp"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="@id/vAccountList"
            app:layout_constraintEnd_toEndOf="@id/vAccountList"
            app:layout_constraintStart_toStartOf="@id/vAccountList"
            app:layout_constraintTop_toTopOf="@id/vAccountList" />

        <View
            android:id="@+id/forthView"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:background="@color/lightGray"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/vAccountList" />

        <ImageView
            android:id="@+id/ivSettings"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:layout_marginStart="24dp"
            app:layout_constraintBottom_toBottomOf="@id/forthView"
            app:layout_constraintStart_toStartOf="@id/forthView"
            app:layout_constraintTop_toTopOf="@id/forthView"
            app:srcCompat="@drawable/ic_settings_24dp" />

        <TextView
            android:id="@+id/tvSettings"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="8dp"
            android:text="@string/settings"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="@id/forthView"
            app:layout_constraintStart_toEndOf="@id/ivSettings"
            app:layout_constraintTop_toTopOf="@id/forthView" />

        <TextView
            android:id="@+id/tvClose"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="24dp"
            android:text="@string/close"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="@id/forthView"
            app:layout_constraintEnd_toEndOf="@id/forthView"
            app:layout_constraintTop_toTopOf="@id/forthView" />

    </android.support.constraint.ConstraintLayout>

</android.support.constraint.ConstraintLayout>
