finds.dev← search

// the find

singwhatiwanna/PinnedHeaderExpandableListView

★ 896 · Java · NOASSERTION · updated Dec 2019

PinnedHeaderExpandableListView

A custom Android view that combines a pinned-header ExpandableListView with a collapsible top section — the group header sticks as you scroll, and there's a pullable header above the whole list. Targets Android developers who needed this specific UI pattern around 2014.

The two-component decomposition (PinnedHeaderExpandableListView + StickyLayout) is clean — each does one thing and you assemble them. The touch event delegation via giveUpTouchEvent is a reasonable solution to the nested-scroll conflict problem that plagued pre-NestedScrollingChild Android. MIT license, no ceremony.

Dead since 2019, built against Eclipse ADT project structure (.classpath, .project files), which hasn't been a viable toolchain for close to a decade. The bundled APK checked into the repo is a red flag. ListView and ExpandableListView are themselves deprecated — RecyclerView with ConcatAdapter and sticky headers has entirely replaced this pattern. No Gradle build, so you can't drop this into a modern Android project without rewriting it.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →