cheesebaron / sgtabbedpager Goto Github PK
View Code? Open in Web Editor NEWPort of https://github.com/graetzer/SGViewPager
License: Apache License 2.0
Port of https://github.com/graetzer/SGViewPager
License: Apache License 2.0
Currently the tabs size themselves according to HeaderFont
. However, SelectedHeaderFont
can be bigger, I.e. Bold. Which means the text in the tab will be truncated.
Is it possible to place in on the bottom of the screen?
Is it possible to integrate with Xamarin Forms, creating custon render?
The view that inherits from the SGTabbedPager class doesn't get disposed correctly when it disappears from the UI e.g. when the user navigates to another view.
Apparently the reason are some references that prevent the GC to collect the view. With the following changes in SGTabbedPager.cs I could achieve that the view gets disposed correctly.
If desired I can create a pull request.
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
this.TitleScrollView.Delegate = this;
this.ContentScrollView.Delegate = this;
ReloadData();
}
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappear(animated);
foreach (var btn in this._tabButtons)
{
btn.RemoveTarget(ReceivedButtonTab, UIControlEvent.TouchUpInside);
}
this.TitleScrollView.Delegate = null;
this.ContentScrollView.Delegate = null;
}
Thanks for creating/porting this over! It works great. One thing that I haven't figured out yet - is there a way to change the background color of the tab header area?
Will this work with MvvmCross CreateBindingSet() etc?
Requested in #4
I would like to have the possibility to add a icon / image next to the header.
Left or right to the text. Maybe even a badge with a numeric value
This could be implemented by adding GetTitleColor
or similar to ISGTabbedPagerDatasource
.
This would allow to have different colors for each selected header.
I want custom the leading and trailing space on titlescrollview, so titlescrollview content more compact, where should I change?
How can we put the tab below the Top navigation bar if using storyboards
Any plans to add a sample project showing how to use it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.