ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat: Swipeable tabs for Android

Open Sturgelose opened this issue 10 years ago • 83 comments

Type: feat

Ionic Version: 2.x

Platform: android 4.4 webview

It would be great to have a swipeable tabs directive, or at least allow swipeable tabs option in the ion-tabs directive so we can swipe through tabs.

This is implemented in Android's Material Design by default (http://developer.android.com/design/patterns/swipe-views.html#between-tabs), so maybe this should be only applied to the Android platform. I'm requesting it in Ionic 2.x as I've seen that Material Design has been integrated into Ionic.

An example of it would be this one: SlideTabs Gif

I found out that there is a trial of implementation here: https://github.com/JKnorr91/ion-slide-box-tabs, however, it has lots of flaws.

I'm sure that this could be implemented using the ion-slide-box directive, but according to documentation it will be deprecated and I'm not sure about the new API (can't be found anywhere)

Sturgelose avatar Jan 20 '16 12:01 Sturgelose

there was a PR to demonstrate how to do that in ionic v2 with ion-slides and ion-segment, the sample code is in the source code test folder: https://github.com/driftyco/ionic/pull/4970

3dd13 avatar Jan 21 '16 11:01 3dd13

@3dd13, thanks a lot, I'll take a look at it! I was doing searches in the issues but I wasn't able to find this commit!

Also, I hope it works well, as the usual problem is that there is no tabs animation when changing tabs

Sturgelose avatar Jan 22 '16 14:01 Sturgelose

Just released my Ionic 2 app GitNinja yesterday for Android, and got three comments from users wanting to be able to swipe between tabs. This is what people are used to on Android, so I think this feature would be great.

jgw96 avatar Jan 31 '16 06:01 jgw96

+1

lordgreg avatar Feb 03 '16 19:02 lordgreg

+1

nicobytes avatar Feb 11 '16 16:02 nicobytes

It would be great (and logical) if the tabs itself are also swipable:

ionic

GoNode5 avatar Feb 24 '16 08:02 GoNode5

At least page transitions between tabs are needed for Android (Windows Phone). It is the standard behavior of an Android app. Switching without page transitions looks very strange actually - especially as the tab change in the tab bar is nicely animated. Swipe support would of course be perfect.

rdesimone avatar Apr 29 '16 06:04 rdesimone

+1 This is a core native ux on Android

pantonis avatar May 17 '16 08:05 pantonis

+1 This feature is the most frequent request I receive from my users

hlehmann avatar May 17 '16 09:05 hlehmann

+1 Here this feature is the most frequent request too

ghost avatar May 17 '16 09:05 ghost

+1 (also for iOS)

cosemansp avatar May 27 '16 09:05 cosemansp

I'm surprised this wasn't in v1. I guess it's because UI has been focused more on iOS? (or at least I got that impression)

dasilvacontin avatar Jun 06 '16 09:06 dasilvacontin

@dasilvacontin that is correct. In Ionic 2 we are making material design a focus along with ios design (:

jgw96 avatar Jun 06 '16 14:06 jgw96

My app is ready for production but I cannot take it live without swipeable tabs.

pantonis avatar Jun 07 '16 06:06 pantonis

+1 My app too... :+1:

ghost avatar Jun 07 '16 06:06 ghost

+1

MateuszG avatar Jun 08 '16 17:06 MateuszG

My first ever +1 comment on github 😄

ladmerc avatar Jun 09 '16 12:06 ladmerc

+1

kingstakh avatar Jun 17 '16 11:06 kingstakh

+1

chocolei avatar Jun 18 '16 11:06 chocolei

Also here is a UX requirement... +1

dgroh avatar Jun 26 '16 03:06 dgroh