app/src/main/res/layout/fragment_profile.xml
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context=".activities.ProfileTab">
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:orientation="vertical"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/profile_tab_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Profile"
android:textAlignment="center"
android:textSize="28sp" />
<TextView
android:id="@+id/profile_name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Student Name"
android:textAlignment="center"
android:textSize="22sp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/courses_field_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Courses"
android:textAlignment="center"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:textSize="22sp" />
<Button
android:id="@+id/editCourses"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="Edit" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/courses_list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/groups_field_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="My Groups"
android:textAlignment="center"
android:textSize="22sp" />
<android.support.v7.widget.RecyclerView
android:id="@+id/groups_list"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</android.support.v7.widget.RecyclerView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:id="@+id/friends_fild_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Friends"
android:textAlignment="center"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:textSize="22sp" />
<Button
android:id="@+id/btn_add_friend"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="Add " />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/friends_list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</android.support.constraint.ConstraintLayout>