У меня есть приложение со структурой изображения ниже (1) в моем XML. Мне нужно, чтобы вы выполняли прокрутку, приложение остается таким же, как на изображении (2). Я не знаю, как это работает красиво. КоординаторLayout, NestedScrollView ...Android - Прокрутка содержимого к верхней части экрана
Какие изменения мне нужны в моем xml, чтобы получить его? Спасибо
XML
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/color_primary_dark">
<include
android:id="@+id/fondo_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/toolbar" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="@color/black">
<com.example.HackyViewPager
android:id="@+id/home_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey_dark"/>
<com.viewpagerindicator.CirclePageIndicator
android:id="@+id/home_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:padding="15dp"/>
</RelativeLayout>
<include
android:id="@+id/home_footer"
layout="@layout/home_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<android.support.design.widget.TabLayout
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/color_primary_dark"
android:elevation="0dp"
app:tabMode="scrollable"
app:tabGravity="center"/>
<android.support.v4.view.ViewPager
android:id="@+id/tabpager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/grey_dark" />
</LinearLayout>
</LinearLayout>
Вы пробовали ScrollView? И что именно вы хотите прокрутить? – Stanojkovic
Мне нужно RelativeLayout сверху, не исчезая – IMS