RecyclerView после одного ограничения Layout не входит в ограничение Layout с использованием Fragment.Изображение переработчика пересекается с другими - PullRequest
0 голосов
/ 17 февраля 2019

Хочу добавить представление Recycler сразу после использования утилит во Fragment, но оно перекрывается с другими, как я могу получить представление Recycler с прокруткой по вертикали после значка Utitlity согласно изображениям.Я добавляю изображения, которые пересекаются с представлением переработчика, исходящим от других.Как я могу получить правильное отображение с приведенным ниже XML?Пожалуйста, посмотрите два изображения, одно изображение ясно, в котором я хочу добавить изображение переработчика после значка «Утилиты». Но на первом изображении пересекается с представлением переработчика

Отображение переписанного перекрытия с другими объектами, как вы можете видеть на первом изображении

getting Overlaaped recyler view with other items as you can seen in first image

После значков Утилиты хотите добавить вид корзины с прокруткой по вертикали во фрагменте xmml

After Utilities icons want to add recycle view with scrolling vertically in fragment xmml

xml

<?xml version="1.0" encoding="utf-8"?>

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"

    android:orientation="vertical"
    android:layout_height="match_parent">

    <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/lay"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    <android.support.design.widget.AppBarLayout

        android:id="@+id/appbar"     android:layout_width="match_parent"
        android:layout_height="?android:attr/actionBarSize">



        <android.support.constraint.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <android.support.v7.widget.AppCompatImageView
                android:id="@+id/imgLogo"
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:layout_marginStart="@dimen/margin_8"
                android:layout_marginTop="@dimen/margin_16"
                android:layout_marginBottom="@dimen/margin_16"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/fee_logo" />

            <android.support.v7.widget.AppCompatTextView
                style="@style/BoldTitleStyle"
                android:layout_margin="@dimen/margin_8"
                android:text="@string/app_name"
                app:layout_constraintBottom_toBottomOf="@+id/imgLogo"
                app:layout_constraintStart_toEndOf="@id/imgLogo"
                app:layout_constraintTop_toTopOf="@+id/imgLogo" />

            <android.support.v7.widget.AppCompatImageView
                android:id="@+id/imgNotification"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/margin_16"
                android:layout_marginEnd="@dimen/margin_8"
                android:layout_marginBottom="@dimen/margin_16"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/ic_bell_icon" />

            <android.support.v7.widget.AppCompatImageView
                android:id="@+id/imgBadge"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintStart_toStartOf="@id/imgNotification"
                app:layout_constraintTop_toTopOf="@id/imgNotification"
                app:srcCompat="@drawable/badge" />

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/txtBadge"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="@dimen/margin_8"
                android:text="02"
                android:textColor="@color/colorPrimary"
                android:textSize="@dimen/text_tiny_8"
                app:layout_constraintBottom_toBottomOf="@id/imgBadge"
                app:layout_constraintEnd_toEndOf="@id/imgBadge"
                app:layout_constraintStart_toStartOf="@id/imgBadge"
                app:layout_constraintTop_toTopOf="@id/imgBadge" />

        </android.support.constraint.ConstraintLayout>

    </android.support.design.widget.AppBarLayout>

    <android.support.v4.widget.NestedScrollView
        android:id="@+id/nestedScrollView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:padding="@dimen/margin_8"
        android:layout_marginBottom="@dimen/margin_8"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/appbar">

        <android.support.constraint.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/txtMyBankAccounts"
                style="@style/BoldSubTitleStyle"
                android:text="@string/title_my_bank_accounts"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerBankAccounts"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="8dp"
                app:layout_constraintEnd_toEndOf="@+id/cardReceiveMoney"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/txtMyBankAccounts" />

            <android.support.v7.widget.CardView
                android:id="@+id/cardSendMoney"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/margin_8"
                android:layout_marginTop="@dimen/margin_16"
                android:layout_marginRight="@dimen/margin_4"
                android:layout_marginBottom="@dimen/margin_16"
                app:cardCornerRadius="@dimen/margin_16"
                app:layout_constraintEnd_toStartOf="@+id/cardReceiveMoney"
                app:layout_constraintHorizontal_bias="0.5"
                app:layout_constraintHorizontal_chainStyle="packed"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/recyclerBankAccounts">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:orientation="horizontal"
                    android:padding="@dimen/margin_8">

                    <ImageView
                        android:id="@+id/imgSendMoney"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/margin_8"
                        android:layout_marginEnd="@dimen/margin_8"
                        android:background="@drawable/send_money_icon"
                        android:padding="@dimen/margin_8"
                        app:srcCompat="@drawable/ic_arrow_forward" />

                    <android.support.v7.widget.AppCompatTextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/poppins_bold"
                        android:padding="@dimen/margin_8"
                        android:text="@string/msg_send_money"
                        android:textColor="@color/colorSecondary" />

                </LinearLayout>

            </android.support.v7.widget.CardView>

            <android.support.v7.widget.CardView
                android:id="@+id/cardReceiveMoney"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/margin_4"
                android:layout_marginTop="@dimen/margin_16"
                android:layout_marginRight="@dimen/margin_8"
                android:layout_marginBottom="@dimen/margin_16"
                app:cardCornerRadius="@dimen/margin_16"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.5"
                app:layout_constraintHorizontal_chainStyle="packed"
                app:layout_constraintStart_toEndOf="@+id/cardSendMoney"
                app:layout_constraintTop_toBottomOf="@id/recyclerBankAccounts">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:orientation="horizontal"
                    android:padding="@dimen/margin_8">

                    <ImageView
                        android:id="@+id/imgReceiveMoney"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/margin_8"
                        android:layout_marginEnd="@dimen/margin_8"
                        android:background="@drawable/receive_money_icon"
                        android:padding="@dimen/margin_8"
                        app:srcCompat="@drawable/ic_arrow_back" />

                    <android.support.v7.widget.AppCompatTextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/poppins_bold"
                        android:padding="@dimen/margin_8"
                        android:text="@string/msg_receive_money"
                        android:textColor="@color/colorSecondary" />

                </LinearLayout>

            </android.support.v7.widget.CardView>

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/txtSendMoneyTo"
                style="@style/BoldSubTitleStyle"
                android:layout_marginTop="@dimen/margin_22"
                android:text="@string/label_send_money_to"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/cardSendMoney" />

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/txtSendMoneyToViewAll"
                style="@style/BoldSubTitleStyle"
                android:layout_margin="@dimen/margin_8"
                android:fontFamily="@font/poppins_medium"
                android:text="@string/label_view_all"
                android:textSize="@dimen/text_small_14"
                app:layout_constraintBaseline_toBaselineOf="@+id/txtSendMoneyTo"
                app:layout_constraintEnd_toEndOf="@id/cardReceiveMoney" />

            <android.support.v7.widget.CardView
                android:id="@+id/linearSendMoneyTo"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/margin_8"
                app:cardCornerRadius="@dimen/margin_16"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/txtSendMoneyTo">

                <android.support.constraint.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <novumlogic.payment.customview.DashboardContactItem
                        android:id="@+id/imgAddContact"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_margin="@dimen/margin_8"
                        app:contactImage="@drawable/ic_add_circle"
                        app:contactName="Add New"
                        app:hasBackgroundRing="true"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/contactItem1"
                        app:layout_constraintHorizontal_bias="0.5"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <novumlogic.payment.customview.DashboardContactItem
                        android:id="@+id/contactItem1"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_margin="@dimen/margin_8"
                        app:contactImage="@drawable/ic_avatar"
                        app:contactName="Alice"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/contactItem2"
                        app:layout_constraintHorizontal_bias="0.5"
                        app:layout_constraintHorizontal_chainStyle="packed"
                        app:layout_constraintStart_toEndOf="@+id/imgAddContact"
                        app:layout_constraintTop_toTopOf="parent" />

                    <novumlogic.payment.customview.DashboardContactItem
                        android:id="@+id/contactItem2"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_margin="@dimen/margin_8"
                        app:contactImage="@drawable/ic_avatar"
                        app:contactName="Bob"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/contactItem3"
                        app:layout_constraintHorizontal_bias="0.5"
                        app:layout_constraintHorizontal_chainStyle="packed"
                        app:layout_constraintStart_toEndOf="@+id/contactItem1"
                        app:layout_constraintTop_toTopOf="parent" />

                    <novumlogic.payment.customview.DashboardContactItem
                        android:id="@+id/contactItem3"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_margin="@dimen/margin_8"
                        app:contactImage="@drawable/ic_avatar"
                        app:contactName="Emily"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/imgViewMore"
                        app:layout_constraintHorizontal_bias="0.5"
                        app:layout_constraintHorizontal_chainStyle="packed"
                        app:layout_constraintStart_toEndOf="@+id/contactItem2"
                        app:layout_constraintTop_toTopOf="parent" />

                    <android.support.v7.widget.AppCompatImageView
                        android:id="@+id/imgViewMore"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintHorizontal_bias="0.5"
                        app:layout_constraintHorizontal_chainStyle="packed"
                        app:layout_constraintStart_toEndOf="@+id/contactItem3"
                        app:layout_constraintTop_toTopOf="parent"
                        app:srcCompat="@drawable/ic_keyboard_arrow_right" />

                </android.support.constraint.ConstraintLayout>

            </android.support.v7.widget.CardView>



        </android.support.constraint.ConstraintLayout>


    </android.support.v4.widget.NestedScrollView>



</android.support.constraint.ConstraintLayout>

    <android.support.constraint.ConstraintLayout 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_below="@id/lay"
        android:layout_height="match_parent">
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"

    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">
<android.support.design.widget.CollapsingToolbarLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/collaps"
    android:fitsSystemWindows="true"


    app:expandedTitleMarginStart="48dp"

    app:expandedTitleMarginEnd="64dp"
    >

    <FrameLayout
        android:id="@+id/institutions_tab_fragments"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <com.cooltechworks.views.shimmer.ShimmerRecyclerView
            android:id="@+id/recycler_view_institutions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scrollbars="vertical" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:id="@+id/noDataFound"
            android:visibility="invisible"
            >
            <include
                layout="@layout/no_data_found"
                >

            </include>

        </LinearLayout>

    </FrameLayout>

</android.support.design.widget.CollapsingToolbarLayout>
    <android.support.v4.widget.NestedScrollView

    android:id="@+id/scroll"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:clipToPadding="false"

    app:layout_behavior="@string/appbar_scrolling_view_behavior">


</android.support.v4.widget.NestedScrollView>

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