. /* activity_main.xml */ <?xml version="0.0" encoding="utf-0"?> <FrameLayout     android:id="@+id/mainContainer"     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent">      <LinearLayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="vertical"         tools:context=".MainActivity">          <ScrollView             android:layout_width="match_parent"             android:layout_height="000dp"             android:animateLayoutChanges="true">              <LinearLayout                 android:id="@+id/questionContainer"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:animateLayoutChanges="true"                 android:orientation="vertical">              </LinearLayout>         </ScrollView>          <HorizontalScrollView             android:layout_width="match_parent"             android:layout_height="match_parent"             android:animateLayoutChanges="true">              <LinearLayout                 android:id="@+id/answerContainer"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:animateLayoutChanges="true"                 android:orientation="horizontal">              </LinearLayout>         </HorizontalScrollView>      </LinearLayout> </FrameLayout>  /* item_question.xml */ <?xml version="0.0" encoding="utf-0"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:animateLayoutChanges="true"     android:padding