Как показать свернутый элемент внизу определенного элемента? - PullRequest
0 голосов
/ 20 января 2019

В моей активности xml у меня есть slideUpPanelLayout. Я хочу показать свернутый вид макета в верхней части нижнего навигационного представления в основных элементах упражнения.Однако по какой-то причине он всегда отображается под нижним навигационным представлением. Я также не хочу, чтобы нижнее навигационное представление находилось сверху при развертывании свернутого макета

Это мой XML:

<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    android:fitsSystemWindows="true"
    android:layoutDirection="rtl">


    <com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"
        android:id="@+id/sliding_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="bottom"
        sothree:umanoOverlay="true"
        sothree:umanoPanelHeight="@dimen/slideup_panel_height"
        sothree:umanoParallaxOffset="@dimen/slideup_paralax_offset"
        sothree:umanoShadowHeight="@dimen/slideup_shadow_height">

        <!-- MAIN CONTENT -->
        <android.support.constraint.ConstraintLayout
            android:id="@+id/player_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <!-- Toolbar -->
            <include
                android:id="@+id/appbar"
                layout="@layout/app_bar_main"
                sothree:layout_constraintLeft_toLeftOf="parent"
                sothree:layout_constraintLeft_toRightOf="parent"
                sothree:layout_constraintTop_toTopOf="parent" />

            <android.support.design.widget.BottomNavigationView
                android:id="@+id/navigationView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/white"
                app:itemBackground="@color/white"
                app:itemIconTint="@color/nav_selector"
                app:itemTextColor="@color/nav_selector"
                app:layout_constraintBottom_toBottomOf="parent"
                app:menu="@menu/bottom_navigation" />

        </android.support.constraint.ConstraintLayout>

        <!-- SLIDING LAYOUT -->
        <LinearLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"
            android:id="@+id/dragView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true"
            android:layoutDirection="rtl"
            android:orientation="vertical">

            <android.support.constraint.ConstraintLayout
                android:id="@+id/collapsed_layout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/slideup_panel_height"
                android:background="@color/colorPlayerBackground">

            </android.support.constraint.ConstraintLayout>

            <LinearLayout
                android:id="@+id/expanded_layout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/colorPlayerBackground"
                android:gravity="center"
                android:orientation="vertical"
                sothree:layout_constraintEnd_toEndOf="parent"
                sothree:layout_constraintStart_toStartOf="parent">

            </LinearLayout>
        </LinearLayout>

    </com.sothree.slidinguppanel.SlidingUpPanelLayout>

</android.support.v4.widget.DrawerLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...