Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ViewPagerIndicator

$
0
0

I am have worked a little with the ViewPagerIndicator. In my own app I have fragments that change with button.click events, but I want to add the functionality to change them with the slide of the finger. So I tried to check the ViewPagerIndicator of @Cheesebaron‌, but it is a little complicated and it seems that it is using activities. My code is looking like the following:

_btnDetails.Click += (sender, e) => {
fragment = new MyFragment(Resource.Layout.DetailsLayout);
FragmentManager
.BeginTransaction()
.SetCustomAnimations (Android.Resource.Animator.FadeIn,Android.Resource.Animator.FadeOut)
.Replace(Resource.Id.frameContent, fragment)
.AddToBackStack (null)
.Commit();
};

How can I add this feature to it?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>