react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Android][ScrollView] Support sticky section headers on Android

Open ide opened this issue 11 years ago • 43 comments

These are just good for UX. Since the iOS RCTScrollView implements sticky headers (instead of using something provided by the system) I imagine it's doable on Android as well.

ide avatar Sep 15 '15 01:09 ide

cc @sahrens heard you were working on ListView. Is this something on FB's roadmap?

ide avatar Sep 15 '15 01:09 ide

Internally, I don't think we'll implement this until we have a client that wants it. I think the cases for sticky headers on android are probably more narrow: e.g. the design of many lists that might have sticky headers on iOS wouldn't on Android in keeping consistent with the platform (e.g. compare the contacts app on the two platforms), but I can see apps on Android (the schedule view in the F8 app comes to mind) where this would be nice.

astreet avatar Sep 15 '15 12:09 astreet

I'd definitely also like to see this. Would it make sense to incorporate something like https://github.com/emilsjolander/StickyScrollViewItems

Or event to implement this as a 3rd party component, if it can't go in core?

ojkelly avatar Sep 16 '15 06:09 ojkelly

@ojkelly Nice find. That's helpful to have an implementation as reference.

I'm usually in favor of standalone npm modules though in this case iOS's RCTScrollView already implements sticky headers and so far we (people I've talked to or have worked with) have found that narrowing the gap between platforms improves the developer experience (<3 Navigator). I think a reasonable first step would be for the component to start as an npm module that offers the same API as the existing ScrollView plus sticky headers, and then backport the implementation into core if it's good.

ide avatar Sep 16 '15 06:09 ide

@ide - I believe @kmagiera is working on ListView too

brentvatne avatar Sep 16 '15 06:09 brentvatne

+1

richarddewit avatar Oct 20 '15 13:10 richarddewit

+1

NormannEiland avatar Nov 05 '15 22:11 NormannEiland

+1

chartrandf avatar Nov 17 '15 21:11 chartrandf

What @ide and @andrews said. Not going to build this ourselves since we have no need for it internally.

On Tuesday, November 17, 2015, Francis Chartrand [email protected] wrote:

+1

— Reply to this email directly or view it on GitHub https://github.com/facebook/react-native/issues/2700#issuecomment-157521966 .

sahrens avatar Nov 18 '15 08:11 sahrens

+1

mhagmajer avatar Dec 20 '15 15:12 mhagmajer

+1

getreup avatar Dec 30 '15 23:12 getreup

Created a ProductPains issue for this: https://productpains.com/post/react-native/scrollview-sticky-section-headers-on-android/

It shouldn't be too hard to build, if you have some Android experience, just check out the iOS implementation in RCTScrollView and try to port it :)

brentvatne avatar Jan 01 '16 02:01 brentvatne

+1

Taakn avatar Feb 18 '16 17:02 Taakn

+1

sam26880 avatar Feb 28 '16 17:02 sam26880

+1

bsinc avatar Apr 08 '16 22:04 bsinc

looking for it

foxcode7 avatar Apr 22 '16 06:04 foxcode7

+1

srikanthkh avatar May 11 '16 18:05 srikanthkh

Still no implementation :( +1

Ehesp avatar Jun 10 '16 13:06 Ehesp

+10086 (funny)

zhongjie-chen avatar Jun 12 '16 02:06 zhongjie-chen

+1

HelloHxz avatar Jun 30 '16 09:06 HelloHxz