roubachof / Sharpnado.Tabs

Pure MAUI and Xamarin.Forms Tabs, including fixed tabs, scrollable tabs, bottom tabs, badge, segmented control, custom tabs, button tabs, bendable tabs...
MIT License
468 stars 60 forks source link

How to swipe between tabs #27

Open MoeHamdan opened 5 years ago

MoeHamdan commented 5 years ago

Is your feature request related to a problem? Please describe. I want the TabHostView and ViewSwitcher to have the carousel effect? In other words make it work just like a tabstrip works on Android.[...]

Thank you very much for this amazing library.

roubachof commented 5 years ago

You can already :) Use a TabHostView with the HorizontalList (with Carousel Layout) instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.

MoeHamdan commented 5 years ago

Oh! You are awesome!!! That worked perfectly!

I have 1 more small question, how would I make the underlined part of the tab header to have the carousel effect? is that possible?

roubachof commented 5 years ago

unfortunately it would require a new implementation of the tabs for this...

MoeHamdan commented 5 years ago

I see thank you! I will try implementing the tab.

roubachof commented 5 years ago

You can create a feature request for this. I will have time to improve tabs this summer :)

MoeHamdan commented 5 years ago

If I was successful I will pull request it. If not I will feature request it.

Again, Than you so much for this library!

TienNK1987 commented 4 years ago

You can already :) Use a TabHostView with the HorizontalList (with Carousel Layout) instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.

Hi @roubachof, How to use HorizontalList (with Carousel Layout) instead of ViewSwitcher with different content in each tab? As I know, HorizontalListView has only one DataTemplate to declare its content.

Thank you for your amazing lib.

roubachof commented 4 years ago

With a DataTemplateSelector :)

TienNK1987 commented 4 years ago

With a DataTemplateSelector :) Could you please give me a sample? Thank you @roubachof,

roubachof commented 4 years ago

https://docs.microsoft.com/en/xamarin/xamarin-forms/app-fundamentals/templates/data-templates/selector

dpjha84 commented 1 year ago

Shouldn't this be the default behaviour. If not, is it planned in the future?

roubachof commented 1 year ago

Use a TabHostView with the HorizontalList (or even with CardsView instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.

eyeveye commented 11 months ago

If we use the horizontalist, can we still use the delayed view? I found the delayed view is very useful.

mpapadis commented 3 months ago

I'm looking to divide a view into tabs, allowing users to navigate without scrolling by organizing properties into context-specific tabs (for instance, one tab for credentials and another for notification preferences in a profile view). As a collection view isn't suitable for this, I'd like to implement a way to swipe between tabs. I've experimented with SwipeGestureRecognizers, but the outcome wasn't ideal.