# LayoutManager

Published articles for LayoutManager.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Fixing RecyclerView nested scrolling in opposite direction

DevFeed: [Fixing RecyclerView nested scrolling in opposite direction](<https://devfeed.tech/articles/fixing-recyclerview-nested-scrolling-in-opposite-direction-25879.md>)

Original publisher: [Read original article](<https://bladecoder.medium.com/fixing-recyclerview-nested-scrolling-in-opposite-direction-f587be5c1a04?source=rss-54910f05af37------2>)

Author: Christophe Beyls

Published: 2020-03-26T15:24:30Z

Content type: tutorial

Language: en

Sources: [Stories by Christophe Beyls on Medium](<https://devfeed.tech/sources/stories-by-christophe-beyls-on-medium.md>)

Topics: [recyclerview](<https://devfeed.tech/topics/recyclerview.md>), [Android](<https://devfeed.tech/topics/android.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [layoutmanager](<https://devfeed.tech/tags/layoutmanager.md>), [nested-scroll](<https://devfeed.tech/tags/nested-scroll.md>), [recyclerview](<https://devfeed.tech/tags/recyclerview.md>)

### AI overview

This tutorial explains the nested-scrolling behavior of Android RecyclerView, focusing on layouts where horizontally scrolling lists are nested inside a vertically scrolling list. It describes why touch events can be intercepted by the parent and cause unexpected vertical scrolling, with examples such as Netflix-like video interfaces and Google Play Store layouts.

### Source excerpt

Photo by Tabl-trai under Creative Commons licenceand making ViewPager2 usable RecyclerView is one of the main building blocks of Android user interfaces today. It's more capable and flexible than its ListView predecessor but this also leads to more complexity and new problems. One core feature of RecyclerView is the externalization of its layout engine to components called LayoutManagers, which are no longer limited to vertical scrolling only. Most implementations allow to choose between horizontal and vertical scrolling and a LayoutManager could technically support both at the same time. RecyclerView also supports nested scrolling by implementing the NestedScrollingChild3 interface, which means it can cooperate with a parent view implementing NestedScrollingParent3 when both are configured to scroll in the same direction. In a nutshell, the scrolling child intercepts a scroll event and initiates a nested scroll in cooperation with the scrolling parent. Depending on its internal logic, the parent optionally consumes the scroll before or after the child, until they both reach their available scroll distance. A single scroll event may be consumed by both the parent and child with a seamless transition. For example, this mechanism is used when a RecyclerView is placed inside a CoordinatorLayout next to an app bar which will automatically slide up or collapse when a scroll gesture is initiated. Note that RecyclerView doesn't implement NestedScrollingParent3, so using a scrollable child inside a RecyclerView which scrolls in the same direction is not supported. However, Google currently provides a workaround to implement nested scrolling in a ViewPager2.The problem What about nested scrolling in the opposite direction? This should be supported out-of-the-box, since a vertical scrolling view is not supposed to intercept horizontal gestures and vice versa. In practice this works well with the legacy ViewPager which only scrolls horizontally, ignoring vertical gestures. But

## A First Glance at Android's RecyclerView

DevFeed: [A First Glance at Android's RecyclerView](<https://devfeed.tech/articles/a-first-glance-at-android-s-recyclerview-29117.md>)

Original publisher: [Read original article](<https://www.grokkingandroid.com/first-glance-androids-recyclerview/>)

Author: Wolfram Rittmeyer

Published: 2014-08-14T09:59:14Z

Content type: tutorial

Language: en

Sources: [Grokking Android](<https://devfeed.tech/sources/grokking-android.md>)

Topics: [recyclerview](<https://devfeed.tech/topics/recyclerview.md>), [Android](<https://devfeed.tech/topics/android.md>), [releases](<https://devfeed.tech/topics/releases.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [android](<https://devfeed.tech/tags/android.md>), [android-l](<https://devfeed.tech/tags/android-l.md>), [api](<https://devfeed.tech/tags/api.md>), [developer-preview](<https://devfeed.tech/tags/developer-preview.md>), [google](<https://devfeed.tech/tags/google.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [itemanimator](<https://devfeed.tech/tags/itemanimator.md>), [itemdecoration](<https://devfeed.tech/tags/itemdecoration.md>), [l-developer-preview](<https://devfeed.tech/tags/l-developer-preview.md>), [layoutmanager](<https://devfeed.tech/tags/layoutmanager.md>), [onitemtouchlistenerter](<https://devfeed.tech/tags/onitemtouchlistenerter.md>), [recyclerview](<https://devfeed.tech/tags/recyclerview.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>), [viewholder](<https://devfeed.tech/tags/viewholder.md>)

### AI overview

This tutorial introduces Android's RecyclerView, explaining its internal classes and interfaces, how they interact, and how developers can use the component. It describes RecyclerView as a flexible view for displaying large data sets and explains how recycling can reduce CPU and memory use. The article notes that the API was not yet finalized in the Android L Developer Preview.

### Source excerpt

At this year's Google I/O, Google released a preview to the upcoming Android version. The so called L Developer Preview. This is a very big improvement over previous releases and I really love that Google is doing this. I think we all benefit by this decision. As developers and as consumers alike! Part of this [...] Continue Reading "A First Glance at Android's RecyclerView" The post A First Glance at Android's RecyclerView appeared first on Grokking Android.

## RecyclerView in Android: The basics

DevFeed: [RecyclerView in Android: The basics](<https://devfeed.tech/articles/recyclerview-in-android-the-basics-27218.md>)

Original publisher: [Read original article](<https://antonioleiva.com/recyclerview>)

Published: 2014-06-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [recyclerview](<https://devfeed.tech/topics/recyclerview.md>), [Android](<https://devfeed.tech/topics/android.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [android](<https://devfeed.tech/tags/android.md>), [code](<https://devfeed.tech/tags/code.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [itemanimator](<https://devfeed.tech/tags/itemanimator.md>), [layoutmanager](<https://devfeed.tech/tags/layoutmanager.md>), [recyclerview](<https://devfeed.tech/tags/recyclerview.md>), [viewholder](<https://devfeed.tech/tags/viewholder.md>)

### AI overview

This tutorial introduces Android RecyclerView as an adapter-based view intended to succeed ListView and GridView. It explains the roles of RecyclerView.Adapter, LayoutManager, and ItemAnimator, including ViewHolder requirements, data binding, event handling, item updates, and layout management.

### Source excerpt

Everything Android, Kotlin and other random topics