Skip to content

Instantly share code, notes, and snippets.

@GeorgCantor
Created March 12, 2021 20:18
Show Gist options
  • Save GeorgCantor/ea3834d22cec3b37e17e1699a038cc63 to your computer and use it in GitHub Desktop.
Save GeorgCantor/ea3834d22cec3b37e17e1699a038cc63 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/header_recycler"
android:layout_width="0dp"
android:layout_height="100dp"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/item_header" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/feed_recycler"
android:layout_width="0dp"
android:layout_height="match_parent"
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/header_recycler"
tools:listitem="@layout/item_feed" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment