I have disabled the ActionBar from the class with:
getSupportActionBar (). hide ();
And in my activity I have this code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#f4f4f4">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="150dp"
android:background="#18a7af">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
app:srcCompat="@drawable/ic_launcher"
android:id="@+id/logo_app"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginTop="10dp" />
<View
android:background="#ffffffff"
android:id="@+id/linea1"
android:layout_gravity="center"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:layout_width="320dp" />
<TextView
android:text="Texto Prueba"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:textColor="#ffffffff"
android:textAlignment="center"
android:textSize="36sp" />
<View
android:background="#ffffffff"
android:id="@+id/linea2"
android:layout_gravity="center"
android:layout_height="1dp"
android:layout_width="320dp" />
</LinearLayout>
</FrameLayout>
How can I make that FrameLayout have a scroll like for example WhatsApp, I give an example of what I want to do: