app/src/main/res/layout/fragment_my_questions.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/fragment_my_questions_layout"
android:layout_width= "match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/course_title_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="20sp"
android:textStyle="bold"
android:text="My Questions"
android:textColor="@android:color/white"
android:background="@color/main_highlight"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:layout_gravity="center_horizontal"
/>
<TextView
android:id="@+id/not_connected_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/you_are_not_connected_my_question"
android:textSize="18sp"
android:padding="16dp"
android:visibility="gone" />
<TextView
android:id="@+id/no_question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/you_still_haven_t_asked_any_question"
android:textSize="18sp"
android:padding="16dp"
android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_my_questions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/my_questions_item"
android:clickable="true"
android:layout_marginBottom="10dp"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>