Unable to place CardView above RecyclerView in ConstraintLayout












0















In my ConstraintLayout I have a RecyclerView inside the SwipeRefreshLayout and a CardView which is placed below the SwipeRefreshLayout as shown below:



<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/backgroundPrescriptionFragment">

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srlActivePrescription"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintVertical_weight="100"
app:layout_constraintBottom_toTopOf="@id/cvRequestRefills"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvActivePrescription"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivNoActivePresc"
android:layout_width="@dimen/prescription_empty_view"
android:layout_height="@dimen/prescription_empty_view"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/tvNoActivePresc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
/>


<TextView
android:id="@+id/tvNoActivePresc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/text_no_active_prescription"
android:textAlignment="center"
android:textColor="@color/dark_gray"
android:textSize="20sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ivNoActivePresc" />

<com.google.android.material.card.MaterialCardView
android:id="@+id/cvRequestRefills"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:cardElevation="4dp"
android:visibility="gone"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/tvDrugSelected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="@string/text_drug_selected"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="@string/text_request_refills"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/ivRequestRefills"
app:layout_constraintEnd_toStartOf="@+id/ivRequestRefills"
app:layout_constraintTop_toTopOf="@+id/ivRequestRefills" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivRequestRefills"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:tint="@android:color/white"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow_forward"
tools:ignore="KeyboardInaccessibleWidget"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>




Based on certain conditions, I have to show the CardView which should appear at the bottom of the screen but the problem is that when the visibility of the CardView is set to Visible, it shows a little below the screen and I have a scroll a bit to see the CardView.



Also, on scrolling down the CardView gets hidden and comes back on scrolling up. I want the CardView to remain visible always and at a fixed position at the bottom.










share|improve this question

























  • In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

    – Android Geek
    yesterday
















0















In my ConstraintLayout I have a RecyclerView inside the SwipeRefreshLayout and a CardView which is placed below the SwipeRefreshLayout as shown below:



<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/backgroundPrescriptionFragment">

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srlActivePrescription"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintVertical_weight="100"
app:layout_constraintBottom_toTopOf="@id/cvRequestRefills"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvActivePrescription"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivNoActivePresc"
android:layout_width="@dimen/prescription_empty_view"
android:layout_height="@dimen/prescription_empty_view"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/tvNoActivePresc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
/>


<TextView
android:id="@+id/tvNoActivePresc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/text_no_active_prescription"
android:textAlignment="center"
android:textColor="@color/dark_gray"
android:textSize="20sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ivNoActivePresc" />

<com.google.android.material.card.MaterialCardView
android:id="@+id/cvRequestRefills"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:cardElevation="4dp"
android:visibility="gone"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/tvDrugSelected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="@string/text_drug_selected"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="@string/text_request_refills"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/ivRequestRefills"
app:layout_constraintEnd_toStartOf="@+id/ivRequestRefills"
app:layout_constraintTop_toTopOf="@+id/ivRequestRefills" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivRequestRefills"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:tint="@android:color/white"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow_forward"
tools:ignore="KeyboardInaccessibleWidget"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>




Based on certain conditions, I have to show the CardView which should appear at the bottom of the screen but the problem is that when the visibility of the CardView is set to Visible, it shows a little below the screen and I have a scroll a bit to see the CardView.



Also, on scrolling down the CardView gets hidden and comes back on scrolling up. I want the CardView to remain visible always and at a fixed position at the bottom.










share|improve this question

























  • In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

    – Android Geek
    yesterday














0












0








0








In my ConstraintLayout I have a RecyclerView inside the SwipeRefreshLayout and a CardView which is placed below the SwipeRefreshLayout as shown below:



<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/backgroundPrescriptionFragment">

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srlActivePrescription"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintVertical_weight="100"
app:layout_constraintBottom_toTopOf="@id/cvRequestRefills"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvActivePrescription"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivNoActivePresc"
android:layout_width="@dimen/prescription_empty_view"
android:layout_height="@dimen/prescription_empty_view"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/tvNoActivePresc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
/>


<TextView
android:id="@+id/tvNoActivePresc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/text_no_active_prescription"
android:textAlignment="center"
android:textColor="@color/dark_gray"
android:textSize="20sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ivNoActivePresc" />

<com.google.android.material.card.MaterialCardView
android:id="@+id/cvRequestRefills"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:cardElevation="4dp"
android:visibility="gone"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/tvDrugSelected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="@string/text_drug_selected"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="@string/text_request_refills"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/ivRequestRefills"
app:layout_constraintEnd_toStartOf="@+id/ivRequestRefills"
app:layout_constraintTop_toTopOf="@+id/ivRequestRefills" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivRequestRefills"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:tint="@android:color/white"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow_forward"
tools:ignore="KeyboardInaccessibleWidget"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>




Based on certain conditions, I have to show the CardView which should appear at the bottom of the screen but the problem is that when the visibility of the CardView is set to Visible, it shows a little below the screen and I have a scroll a bit to see the CardView.



Also, on scrolling down the CardView gets hidden and comes back on scrolling up. I want the CardView to remain visible always and at a fixed position at the bottom.










share|improve this question
















In my ConstraintLayout I have a RecyclerView inside the SwipeRefreshLayout and a CardView which is placed below the SwipeRefreshLayout as shown below:



<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/backgroundPrescriptionFragment">

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srlActivePrescription"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintVertical_weight="100"
app:layout_constraintBottom_toTopOf="@id/cvRequestRefills"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvActivePrescription"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivNoActivePresc"
android:layout_width="@dimen/prescription_empty_view"
android:layout_height="@dimen/prescription_empty_view"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/tvNoActivePresc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
/>


<TextView
android:id="@+id/tvNoActivePresc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/text_no_active_prescription"
android:textAlignment="center"
android:textColor="@color/dark_gray"
android:textSize="20sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ivNoActivePresc" />

<com.google.android.material.card.MaterialCardView
android:id="@+id/cvRequestRefills"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:cardElevation="4dp"
android:visibility="gone"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/tvDrugSelected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="@string/text_drug_selected"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="@string/text_request_refills"
android:textColor="@android:color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/ivRequestRefills"
app:layout_constraintEnd_toStartOf="@+id/ivRequestRefills"
app:layout_constraintTop_toTopOf="@+id/ivRequestRefills" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivRequestRefills"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:tint="@android:color/white"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow_forward"
tools:ignore="KeyboardInaccessibleWidget"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>




Based on certain conditions, I have to show the CardView which should appear at the bottom of the screen but the problem is that when the visibility of the CardView is set to Visible, it shows a little below the screen and I have a scroll a bit to see the CardView.



Also, on scrolling down the CardView gets hidden and comes back on scrolling up. I want the CardView to remain visible always and at a fixed position at the bottom.







android android-layout android-constraintlayout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







Mehul Kanzariya

















asked 2 days ago









Mehul KanzariyaMehul Kanzariya

347728




347728













  • In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

    – Android Geek
    yesterday



















  • In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

    – Android Geek
    yesterday

















In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

– Android Geek
yesterday





In constraint layout, for adding CardView, you must add ConstraintLayout outside the CardView

– Android Geek
yesterday












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252808%2funable-to-place-cardview-above-recyclerview-in-constraintlayout%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252808%2funable-to-place-cardview-above-recyclerview-in-constraintlayout%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre