This is basically the idea that I have as I can make the lower layout (below the image) be slidable by the lateral movement of the finger. I have thought that in this game that I am developing allow the player to invest with money or values by choosing one of the two layouts first and then carrying out the insertion of data that the layout requests.
Enclosed code: '
<LinearLayout
android:id="@+id/saldoLinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/saldoTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/saldo"
android:textAlignment="center"
android:textColor="@color/letra"
android:textSize="24sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/activityStockLinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/saldoLinearLayout"
android:layout_weight="1"
android:orientation="horizontal"
android:paddingLeft="7dp"
android:paddingTop="5dp">
<LinearLayout
android:id="@+id/activityStockLinearLayoutLeft"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/activityStockValue_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="10.763,30"
android:textSize="30sp"
android:textStyle="bold" />
<TextView
android:id="@+id/activityStockName_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="15sp"
android:textStyle="bold"
tools:text="IBEX 35" />
<TextView
android:id="@+id/activityStockIniciales_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="^IBEX"
android:textSize="15sp"
android:textStyle="bold" />
<TextView
android:id="@+id/activityStockApertura_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Valor Apertura:" />
<TextView
android:id="@+id/activityStockValorTop_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Maximo:" />
<TextView
android:id="@+id/activityStockValorLow_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Minimo:" />
<TextView
android:id="@+id/activityStockValorAnoTop_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Maximo Anual:" />
<TextView
android:id="@+id/activityStockValorAnoLow_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Minimo Anual:" />
</LinearLayout>
<LinearLayout
android:id="@+id/activityStockLinearLayoutRight"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/activityStockLogoLinearLayoutRight"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/ibexlogo"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/graphLinearLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/activityStockLinearLayout"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/graph" />
</LinearLayout>
</RelativeLayout>'